14 #include <QStringList> 151 , Contains_ { contains }
168 : Rx_ { str, Qt::CaseSensitive, QRegExp::FixedString }
169 , Contains_ { contains }
173 bool operator== (
const ANStringFieldValue&)
const =
default;
178 using ANFieldValue = std::variant<ANBoolFieldValue, ANIntFieldValue, ANStringFieldValue>;
218 Q_DECLARE_INTERFACE (
IANEmitter,
"org.Deviant.LeechCraft.IANEmitter/1.0")
223 Q_DECLARE_OPERATORS_FOR_FLAGS (
LC::ANIntFieldValue::Operations)
Describes a field with boolean values.
The value should be greater than Boundary_.
QString Name_
The name of the field.
Operation
Describes the elementary semantics of Boundary_.
ANStringFieldValue(const QString &str, bool contains=true)
Constructs the field matcher for the given str.
The value should be equal to Boundary_.
QVariant::Type Type_
The type of this field.
Operations Ops_
Describe the semantics of Boundary_.
QRegExp Rx_
The regular expression the values should (not) match.
A single additional AdvancedNotifications field.
ANStringFieldValue(const QRegExp &rx, bool contains)
Constructs the field matcher.
Type
Describes the various types of XDG .desktop files.
std::variant< ANBoolFieldValue, ANIntFieldValue, ANStringFieldValue > ANFieldValue
A combination of all possible descriptions.
Describes a field with integer values.
Describes a field with QString values.
Interface for plugins emitting AdvancedNotifications entries.
Q_DECLARE_METATYPE(QVariantList *)
bool IsSet_
Whether the field should be set.
bool Contains_
Whether the values should match or not match Rx_.
The value should be less than Boundary_.
bool operator==(const ANIntFieldValue &) const =default
QVariantList AllowedValues_
The allowed values of this field.
QStringList EventTypes_
The types of the event that contain this field.
Q_DECLARE_FLAGS(TabFeatures, LC::TabFeature)
QString Description_
The description of the field.
int Boundary_
The boundary of the field.