35 #include <QStringList> 107 :
Type_ (QVariant::Invalid)
122 const QString& description,
124 const QStringList& events,
125 const QVariantList& values = {})
200 return left.Boundary_ == right.Boundary_ &&
201 left.Ops_ == right.Ops_;
227 , Contains_ { contains }
244 : Rx_ { str, Qt::CaseSensitive, QRegExp::FixedString }
245 , Contains_ { contains }
265 typedef std::variant<ANBoolFieldValue, ANIntFieldValue, ANStringFieldValue>
ANFieldValue;
305 Q_DECLARE_INTERFACE (
IANEmitter,
"org.Deviant.LeechCraft.IANEmitter/1.0")
310 Q_DECLARE_OPERATORS_FOR_FLAGS (
LC::ANIntFieldValue::Operations)
Describes a field with boolean values.
std::variant< ANBoolFieldValue, ANIntFieldValue, ANStringFieldValue > ANFieldValue
A combination of all possible descriptions.
ANFieldData(const QString &id, const QString &name, const QString &description, QVariant::Type type, const QStringList &events, const QVariantList &values={})
Constructs field with the given info variables.
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.
ANFieldData()
Constructs an empty field info.
ANStringFieldValue(const QRegExp &rx, bool contains)
Constructs the field matcher.
Type
Describes the various types of XDG .desktop files.
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 ANBoolFieldValue &left, const ANBoolFieldValue &right)
Compares two fields with boolean values.
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.