24 #ifndef DIGIKAM_DIMG_FILTER_GENERATOR_H
25 #define DIGIKAM_DIMG_FILTER_GENERATOR_H
31 #include <QStringList>
40 class DImgThreadedFilter;
59 virtual bool isSupported(
const QString& filterIdentifier);
60 virtual bool isSupported(
const QString& filterIdentifier,
int version);
93 if (filterIdentifier == T::FilterIdentifier())
95 return T::SupportedVersions();
103 if ((filterIdentifier == T::FilterIdentifier()) &&
104 T::SupportedVersions().contains(version))
107 t->setFilterVersion(version);
117 if (filterIdentifier == T::FilterIdentifier())
119 return T::DisplayableName();
Definition: dimgfiltergenerator.h:74
DImgThreadedFilter * createFilter(const QString &filterIdentifier, int version) override
Create the filter for the given combination of identifier and version.
Definition: dimgfiltergenerator.h:101
QList< int > supportedVersions(const QString &filterIdentifier) override
Returns a list with the supported versions for the given identifier.
Definition: dimgfiltergenerator.h:91
BasicDImgFilterGenerator()
Definition: dimgfiltergenerator.h:82
QStringList supportedFilters() override
Returns a list with identifiers of supported filters.
Definition: dimgfiltergenerator.h:86
QString displayableName(const QString &filterIdentifier) override
Returns a QString with filter name for displaying in views.
Definition: dimgfiltergenerator.h:115
Definition: dimgfiltergenerator.h:43
virtual ~DImgFilterGenerator()
Definition: dimgfiltergenerator.h:47
virtual QString displayableName(const QString &filterIdentifier)=0
Returns a QString with filter name for displaying in views.
virtual QList< int > supportedVersions(const QString &filterIdentifier)=0
Returns a list with the supported versions for the given identifier.
virtual QStringList supportedFilters()=0
Returns a list with identifiers of supported filters.
virtual DImgThreadedFilter * createFilter(const QString &filterIdentifier, int version)=0
Create the filter for the given combination of identifier and version.
DImgFilterGenerator()
Definition: dimgfiltergenerator.h:46
Definition: dimgthreadedfilter.h:41
Definition: datefolderview.cpp:43