34 #include <QStringList> 35 #include <boost/variant/variant.hpp> 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 boost::variant<ANBoolFieldValue, ANIntFieldValue, ANStringFieldValue>
ANFieldValue;
305 Q_DECLARE_INTERFACE (
IANEmitter,
"org.Deviant.LeechCraft.IANEmitter/1.0")
310 Q_DECLARE_OPERATORS_FOR_FLAGS (
LeechCraft::ANIntFieldValue::Operations)
QRegExp Rx_
The regular expression the values should (not) match.
The value should be greater than Boundary_.
A single additional AdvancedNotifications field.
bool Contains_
Whether the values should match or not match Rx_.
QVariant::Type Type_
The type of this field.
The value should be equal to Boundary_.
bool IsSet_
Whether the field should be set.
Operations Ops_
Describe the semantics of Boundary_.
QString Name_
The name of the field.
QVariantList AllowedValues_
The allowed values of this field.
Type
Describes the various types of XDG .desktop files.
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.
int Boundary_
The boundary of the field.
Interface for plugins emitting AdvancedNotifications entries.
Q_DECLARE_METATYPE(QVariantList *)
QString Description_
The description of the field.
Operation
Describes the elementary semantics of Boundary_.
Describes a field with integer values.
The value should be less than Boundary_.
QStringList EventTypes_
The types of the event that contain this field.
ANStringFieldValue(const QString &str, bool contains=true)
Constructs the field matcher for the given str.
Describes a field with QString values.
Describes a field with boolean values.
Q_DECLARE_FLAGS(TabFeatures, LeechCraft::TabFeature)
ANStringFieldValue(const QRegExp &rx, bool contains)
Constructs the field matcher.
bool operator==(const ANBoolFieldValue &left, const ANBoolFieldValue &right)
Compares two fields with boolean values.
ANFieldData()
Constructs an empty field info.
boost::variant< ANBoolFieldValue, ANIntFieldValue, ANStringFieldValue > ANFieldValue
A combination of all possible descriptions.