86 :
Type_ (QVariant::Invalid)
101 const QString& description,
103 const QStringList& events,
104 const QVariantList& values = {})
179 return left.Boundary_ == right.Boundary_ &&
180 left.Ops_ == right.Ops_;
206 , Contains_ { contains }
223 : Rx_ { str, Qt::CaseSensitive, QRegExp::FixedString }
224 , Contains_ { contains }
244 typedef std::variant<ANBoolFieldValue, ANIntFieldValue, ANStringFieldValue>
ANFieldValue;
284Q_DECLARE_INTERFACE (
IANEmitter,
"org.Deviant.LeechCraft.IANEmitter/1.0")
289Q_DECLARE_OPERATORS_FOR_FLAGS (
LC::ANIntFieldValue::Operations)
Interface for plugins emitting AdvancedNotifications entries.
virtual QList< LC::ANFieldData > GetANFields() const =0
Returns the list of additional fields.
std::variant< ANBoolFieldValue, ANIntFieldValue, ANStringFieldValue > ANFieldValue
A combination of all possible descriptions.
Q_DECLARE_FLAGS(TabFeatures, LC::TabFeature)
bool operator==(const ANBoolFieldValue &left, const ANBoolFieldValue &right)
Compares two fields with boolean values.
Describes a field with boolean values.
bool IsSet_
Whether the field should be set.
A single additional AdvancedNotifications field.
ANFieldData()
Constructs an empty field info.
QString Name_
The name of the field.
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.
QString Description_
The description of the field.
QVariantList AllowedValues_
The allowed values of this field.
QStringList EventTypes_
The types of the event that contain this field.
QVariant::Type Type_
The type of this field.
Describes a field with integer values.
Operation
Describes the elementary semantics of Boundary_.
@ OEqual
The value should be equal to Boundary_.
@ OLess
The value should be less than Boundary_.
@ OGreater
The value should be greater than Boundary_.
Operations Ops_
Describe the semantics of Boundary_.
int Boundary_
The boundary of the field.
Describes a field with QString values.
bool Contains_
Whether the values should match or not match Rx_.
QRegExp Rx_
The regular expression the values should (not) match.
ANStringFieldValue(const QRegExp &rx, bool contains)
Constructs the field matcher.
ANStringFieldValue(const QString &str, bool contains=true)
Constructs the field matcher for the given str.
Q_DECLARE_METATYPE(QVariantList *)