|
| QSharedPointer< T > | bestMatch (const QString md5, const QString filename, const QString name) |
| | bestMatch retrieves a resource, preferably by md5, but with filename and name as fallback for older files that do not store the md5sum. If the resource is not found by md5 and the md5 isn't empty, then it will try to fallback to searching by filename, but will show a warning in case sanity checks are enabled.
|
| |
| KoResourceLoadResult | bestMatchLoadResult (const QString md5, const QString filename, const QString name) |
| |
| QSharedPointer< T > | exactMatch (const QString md5, const QString filename, const QString name) |
| | exactMatch retrieves a resource, preferably by md5, but with filename and name as fallback for older files that do not store the md5sum. If the resource is not found by md5 and the md5 isn't empty, then nullptr is returned (that is the difference to bestMatch).
|
| |
| QSharedPointer< T > | fallbackResource () const |
| |
| | TypedResourceSourceAdapter (ResourceSourceAdapter *adapter) |
| |
template<typename T>
class KisResourcesInterface::TypedResourceSourceAdapter< T >
Definition at line 99 of file KisResourcesInterface.h.
bestMatch retrieves a resource, preferably by md5, but with filename and name as fallback for older files that do not store the md5sum. If the resource is not found by md5 and the md5 isn't empty, then it will try to fallback to searching by filename, but will show a warning in case sanity checks are enabled.
If multiple resources with the same md5 exist, then it prefers the one with the same filename and name.
- Returns
- a resource, or 0 of the resource doesn't exist.
Definition at line 146 of file KisResourcesInterface.h.
146 {
148 }
KoResourceSP bestMatch(const QString md5, const QString filename, const QString name)
bestMatch retrieves a resource, preferably by md5, but with filename and name as fallback for older f...