Solid
predicate.cpp
Go to the documentation of this file.
bool isReadable() const
static QString typeToString(Type type)
Definition: deviceinterface.cpp:50
bool isEnumType() const
Type type() const
Retrieves the predicate type, used to determine how to handle the predicate.
Definition: predicate.cpp:336
ComparisonOperator
The comparison operator which can be used for matching within the predicate.
Definition: predicate.h:54
Predicate firstOperand() const
A smaller, inner predicate which is the first to appear and is compared with the second one...
Definition: predicate.cpp:361
This class allows applications to deal with devices available in the underlying system.
Definition: device.h:48
Definition: predicate.h:54
virtual const QMetaObject * metaObject() const
T value() const
QSet< DeviceInterface::Type > usedTypes() const
Retrieves the device interface types used in this predicate.
Definition: predicate.cpp:242
bool matches(const Device &device) const
Checks if a device matches the predicate.
Definition: predicate.cpp:189
Definition: predicate.h:64
T value(int i) const
Type
This enum type defines the type of device interface that a Device can have.
Definition: deviceinterface.h:67
int toInt(bool *ok) const
Definition: predicate.h:64
bool isEmpty() const
DeviceInterface::Type interfaceType() const
Retrieves the interface type.
Definition: predicate.cpp:341
QVariant matchingValue() const
Retrieves the value used when comparing a devices property to see if it matches the predicate...
Definition: predicate.cpp:351
ComparisonOperator comparisonOperator() const
Retrieves the comparison operator used to compare a property's value.
Definition: predicate.cpp:356
QVariant read(const QObject *object) const
Predicate secondOperand() const
A smaller, inner predicate which is the second to appear and is compared with the first one...
Definition: predicate.cpp:369
int keysToValue(const char *keys) const
iterator end()
bool isDeviceInterface(const DeviceInterface::Type &type) const
Tests if a device interface is available from the device.
Definition: device.cpp:151
static Type stringToType(const QString &type)
Definition: deviceinterface.cpp:57
QMetaEnum enumerator() const
QString propertyName() const
Retrieves the property name used when retrieving the value to compare against.
Definition: predicate.cpp:346
int indexOfProperty(const char *name) const
DeviceInterface * asDeviceInterface(const DeviceInterface::Type &type)
Retrieves a specialized interface to interact with the device corresponding to a particular device in...
Definition: device.cpp:159
typedef ConstIterator
Type type() const
iterator begin()
QMetaProperty property(int index) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.