14 #include <QStringList> 137 QRegularExpression Compiled_ = QRegularExpression::fromWildcard (Pattern_);
142 struct StringMatcher : std::variant<Substring, Wildcard, QRegularExpression>
144 using variant::variant;
169 : Rx_ { std::move (rx) }
170 , Contains_ { contains }
186 , Contains_ { contains }
190 bool operator== (
const StringFieldValue&)
const =
default;
195 using FieldValue = std::variant<BoolFieldValue, IntFieldValue, StringFieldValue>;
235 Q_DECLARE_INTERFACE (
IANEmitter,
"org.Deviant.LeechCraft.IANEmitter/1.0")
240 Q_DECLARE_OPERATORS_FOR_FLAGS (
LC::AN::IntFieldValue::Operations)
bool IsSet_
Whether the field should be set.
QString Name_
The name of the field.
QVariantList AllowedValues_
The allowed values of this field.
Describes a field with boolean values.
bool operator==(const IntFieldValue &) const =default
Operations Ops_
Describe the semantics of Boundary_.
Type
Describes the various types of XDG .desktop files.
StringFieldValue(const QString &str, bool contains=true)
Constructs the field matcher for the given str.
Operation
Describes the elementary semantics of Boundary_.
The value should be greater than Boundary_.
StringFieldValue(QRegularExpression rx, bool contains)
Constructs the field matcher.
Interface for plugins emitting AdvancedNotifications entries.
Q_DECLARE_METATYPE(QVariantList *)
Describes a field with QString values.
The value should be less than Boundary_.
Q_DECLARE_FLAGS(NotifyFlags, NotifyFlag)
QString Description_
The description of the field.
QStringList EventTypes_
The types of the event that contain this field.
Describes a field with integer values.
QMetaType::Type Type_
The type of this field.
bool Contains_
Whether the values should match or not match Rx_.
The value should be equal to Boundary_.
StringMatcher Rx_
The pattern the values should (not) match.
std::variant< BoolFieldValue, IntFieldValue, StringFieldValue > FieldValue
A combination of all possible descriptions.
A single additional AdvancedNotifications field.
int Boundary_
The boundary of the field.