25 #ifndef DIGIKAM_FILTER_ACTION_H
26 #define DIGIKAM_FILTER_ACTION_H
56 ReproducibleFilter = 0,
69 DocumentedHistory = 2,
71 CategoryFirst = ReproducibleFilter,
72 CategoryLast = DocumentedHistory
81 ExplicitBranch = 1 << 0
83 Q_DECLARE_FLAGS(Flags, Flag)
100 QString identifier()
const;
113 QString description()
const;
114 void setDescription(
const QString& description);
116 QString displayableName()
const;
117 void setDisplayableName(
const QString& displayableName);
120 void setFlags(Flags flags);
121 void addFlag(Flags flags);
122 void removeFlag(Flags flags);
129 bool hasParameters()
const;
130 const QHash<QString,QVariant>& parameters()
const;
131 QHash<QString, QVariant>& parameters();
133 bool hasParameter(
const QString& key)
const;
134 const QVariant parameter(
const QString& key)
const;
135 QVariant& parameter(
const QString& key);
140 template <
typename T>
143 return parameter(key).value<
T>();
152 template <
typename T>
155 QVariant var = parameter(key);
157 (var.isValid()) ? var.value<
T>()
163 void addParameter(
const QString& key,
const QVariant&
value);
166 void removeParameters(
const QString& key);
169 void clearParameters();
172 void setParameters(
const QHash<QString, QVariant>& params);
189 Q_DECLARE_OPERATORS_FOR_FLAGS(Digikam::FilterAction::Flags)
Definition: filteraction.h:43
T parameter(const QString &key) const
Definition: filteraction.h:141
Flag
Definition: filteraction.h:76
T parameter(const QString &key, const T &defaultValue) const
Definition: filteraction.h:153
Flags m_flags
Definition: filteraction.h:178
QString m_description
Definition: filteraction.h:181
QString m_identifier
Definition: filteraction.h:179
QString m_displayableName
Definition: filteraction.h:182
int m_version
Definition: filteraction.h:180
Category m_category
NOTE: Value class, do not create a d-pointer.
Definition: filteraction.h:177
QHash< QString, QVariant > m_params
Definition: filteraction.h:183
Category
Definition: filteraction.h:47
qulonglong value
Definition: itemviewutilities.cpp:592
Category
Definition: coredbconstants.h:95
Definition: datefolderview.cpp:43
bool operator==(const SearchTextSettings &a, const SearchTextSettings &b)
Definition: searchtextbar.cpp:49