Holds the description of a Device. More...
Header: | #include <DeviceDescriptor> |
DeviceDescriptor() | |
DeviceDescriptor(const DeviceClassId & deviceClassId, const QString & title = QString(), const QString & description = QString(), const DeviceId & parentDeviceId = DeviceId()) | |
DeviceDescriptor(const DeviceDescriptorId & id, const DeviceClassId & deviceClassId, const QString & title = QString(), const QString & description = QString(), const DeviceId & parentDeviceId = DeviceId()) | |
QString | description() const |
DeviceClassId | deviceClassId() const |
DeviceId | deviceId() const |
DeviceDescriptorId | id() const |
bool | isValid() const |
ParamList | params() const |
DeviceId | parentDeviceId() const |
void | setDescription(const QString & description) |
void | setDeviceId(const DeviceId & deviceId) |
void | setParams(const ParamList & params) |
void | setParentDeviceId(const DeviceId & parentDeviceId) |
void | setTitle(const QString & title) |
QString | title() const |
Holds the description of a Device.
An DeviceDescriptor describes an Device in order to match it with a nymeaserver::Rule.
See also Device.
Construct a DeviceDescriptor.
Construct a DeviceDescriptor with the given deviceClassId, title, description and parentDeviceId.
Construct a DeviceDescriptor with the given id, deviceClassId, title, description and parentDeviceId.
Returns the description of this DeviceDescriptor.
See also setDescription().
Returns the deviceClassId of this DeviceDescriptor.
Returns the deviceId of the device matching this descriptor.
See also setDeviceId().
Returns the id of this DeviceDescriptor.
Returns true, if this DeviceDescriptor is valid. A DeviceDescriptor is valid, if the id and the deviceClassId are set.
See also id() and deviceClassId().
Returns the list of Params of this DeviceDescriptor.
See also setParams().
Returns the parent device id for devices created from this DeviceDescriptor.
See also setParentDeviceId().
Sets the description of this DeviceDescriptor.
See also description().
Set the deviceId of the device matching this device descriptor.
See also deviceId().
Sets the list of Params of this DeviceDescriptor with the given params.
See also params().
Sets the parent device Id parentDeviceId for devices created from this DeviceDescriptor.
See also parentDeviceId().
Sets the title of this DeviceDescriptor.
See also title().
Returns the name of this DeviceDescriptor.
See also setTitle().