|
Krita Source Code Documentation
|
#include <KisResourcesInterface.h>
Public Member Functions | |
| QSharedPointer< T > | bestMatch (const QString md5, const QString filename, const QString name) |
| resource retrieves a resource, preferably by md5, but with filename and name as fallback for older files that do not store the md5sum. Note that if the resource is not found by md5 if the md5 isn't empty, we do NOT then look by filename. | |
| KoResourceLoadResult | bestMatchLoadResult (const QString md5, const QString filename, const QString name) |
| QSharedPointer< T > | fallbackResource () const |
| TypedResourceSourceAdapter (ResourceSourceAdapter *adapter) | |
Protected Attributes | |
| ResourceSourceAdapter * | m_source |
Private Member Functions | |
| QVector< QSharedPointer< T > > | resourcesForFilename (const QString &filename) const |
| QVector< QSharedPointer< T > > | resourcesForMD5 (const QString &md5) const |
| QVector< QSharedPointer< T > > | resourcesForName (const QString &name) const |
Definition at line 84 of file KisResourcesInterface.h.
|
inline |
Definition at line 87 of file KisResourcesInterface.h.
|
inline |
resource retrieves a resource, preferably by md5, but with filename and name as fallback for older files that do not store the md5sum. Note that if the resource is not found by md5 if the md5 isn't empty, we do NOT then look by filename.
If multiple resources with the same md5 exist, then it prefers the one with the same filename and name.
Definition at line 130 of file KisResourcesInterface.h.
|
inline |
Same as bestMatch(), but returns KoResourceLoadResult. In case the resource is not found in the backend storage, the load-result will be set in FailedLink state
Definition at line 140 of file KisResourcesInterface.h.
|
inline |
Definition at line 144 of file KisResourcesInterface.h.
|
inlineprivate |
Definition at line 92 of file KisResourcesInterface.h.
|
inlineprivate |
Definition at line 110 of file KisResourcesInterface.h.
|
inlineprivate |
Definition at line 101 of file KisResourcesInterface.h.
|
protected |
Definition at line 150 of file KisResourcesInterface.h.