Solid
predicate.cpp
52Solid::Predicate::Predicate(const DeviceInterface::Type &ifaceType, const QString &property, const QVariant &value, ComparisonOperator compOperator)
62Solid::Predicate::Predicate(const QString &ifaceName, const QString &property, const QVariant &value, ComparisonOperator compOperator)
Base class of all the device interfaces.
static QString typeToString(Type type)
Definition frontend/deviceinterface.cpp:35
Type
This enum type defines the type of device interface that a Device can have.
Definition frontend/deviceinterface.h:50
static Type stringToType(const QString &type)
Definition frontend/deviceinterface.cpp:42
This class allows applications to deal with devices available in the underlying system.
bool isDeviceInterface(const DeviceInterface::Type &type) const
Tests if a device interface is available from the device.
Definition frontend/device.cpp:119
DeviceInterface * asDeviceInterface(const DeviceInterface::Type &type)
Retrieves a specialized interface to interact with the device corresponding to a particular device in...
Definition frontend/device.cpp:126
This class implements predicates for devices.
bool matches(const Device &device) const
Checks if a device matches the predicate.
Definition predicate.cpp:169
ComparisonOperator comparisonOperator() const
Retrieves the comparison operator used to compare a property's value.
Definition predicate.cpp:334
Predicate secondOperand() const
A smaller, inner predicate which is the second to appear and is compared with the first one.
Definition predicate.cpp:347
QString propertyName() const
Retrieves the property name used when retrieving the value to compare against.
Definition predicate.cpp:324
ComparisonOperator
The comparison operator which can be used for matching within the predicate.
Definition predicate.h:75
QVariant matchingValue() const
Retrieves the value used when comparing a devices property to see if it matches the predicate.
Definition predicate.cpp:329
Predicate firstOperand() const
A smaller, inner predicate which is the first to appear and is compared with the second one.
Definition predicate.cpp:339
DeviceInterface::Type interfaceType() const
Retrieves the interface type.
Definition predicate.cpp:319
QSet< DeviceInterface::Type > usedTypes() const
Retrieves the device interface types used in this predicate.
Definition predicate.cpp:234
Type type() const
Retrieves the predicate type, used to determine how to handle the predicate.
Definition predicate.cpp:314
bool isEmpty() const const
T value(qsizetype i) const const
int keysToValue(const char *keys, bool *ok) const const
int indexOfProperty(const char *name) const const
QMetaProperty property(int index) const const
QMetaEnum enumerator() const const
bool isEnumType() const const
bool isReadable() const const
QMetaType metaType() const const
QVariant read(const QObject *object) const const
QString
virtual const QMetaObject * metaObject() const const
QString arg(Args &&... args) const const
bool isEmpty() const const
QString join(QChar separator) const const
bool canConvert() const const
int toInt(bool *ok) const const
int userType() const const
T value() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:46:20 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:46:20 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.