 |
LeechCraft
0.6.70-13605-g8cd066ad6a
Modular cross-platform feature rich live environment.
|
Go to the documentation of this file.
35 #include <QStringList>
122 const QString& description,
124 const QStringList& events,
125 const QVariantList& values = {})
138 struct ANBoolFieldValue
159 struct ANIntFieldValue
200 return left.Boundary_ == right.Boundary_ &&
201 left.Ops_ == right.Ops_;
227 , Contains_ { contains }
243 ANStringFieldValue (
const QString& str,
bool contains =
true)
244 : Rx_ { str, Qt::CaseSensitive, QRegExp::FixedString }
245 , Contains_ { contains }
257 inline bool operator== (
const ANStringFieldValue& left,
const ANStringFieldValue& right)
259 return left.Contains_ == right.Contains_ &&
260 left.Rx_ == right.Rx_;
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)
int Boundary_
The boundary of the field.
Q_DECLARE_FLAGS(TabFeatures, LC::TabFeature)
Describes a field with QString values.
std::variant< ANBoolFieldValue, ANIntFieldValue, ANStringFieldValue > ANFieldValue
A combination of all possible descriptions.
Describes a field with boolean values.
Operation
Describes the elementary semantics of Boundary_.
QString Name_
The name of the field.
Interface for plugins emitting AdvancedNotifications entries.
Operations Ops_
Describe the semantics of Boundary_.
Type
Describes the various types of XDG .desktop files.
ANFieldData()
Constructs an empty field info.
QVariant::Type Type_
The type of this field.
The value should be equal to Boundary_.
QVariantList AllowedValues_
The allowed values of this field.
Q_DECLARE_METATYPE(QVariantList *)
Describes a field with integer values.
bool IsSet_
Whether the field should be set.
QStringList EventTypes_
The types of the event that contain this field.
The value should be greater than Boundary_.
QString Description_
The description of the field.
bool operator==(const ANBoolFieldValue &left, const ANBoolFieldValue &right)
Compares two fields with boolean values.
The value should be less than Boundary_.