59 QVariant::Type
Type_ = QVariant::Invalid;
168 :
Rx_ { str, Qt::CaseSensitive, QRegExp::FixedString }
178 using ANFieldValue = std::variant<ANBoolFieldValue, ANIntFieldValue, ANStringFieldValue>;
218Q_DECLARE_INTERFACE (
IANEmitter,
"org.Deviant.LeechCraft.IANEmitter/1.0")
223Q_DECLARE_OPERATORS_FOR_FLAGS (
LC::ANIntFieldValue::Operations)
Interface for plugins emitting AdvancedNotifications entries.
virtual ~IANEmitter()=default
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)
Describes a field with boolean values.
bool IsSet_
Whether the field should be set.
auto operator<=>(const ANBoolFieldValue &) const =default
A single additional AdvancedNotifications field.
QString Name_
The name of the field.
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.
bool operator==(const ANIntFieldValue &) const =default
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.
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 *)