QKnxDeviceControl Class

The QKnxDeviceControl class is a datapoint type for device control. More...

Header: #include <QKnxDeviceControl>
qmake: QT += knx
Inherits: QKnx8BitSet

Public Types

enum Attribute { UserStopped, OwnIA, VerifyMode, SafeState }
flags Attributes

Public Functions

QKnxDeviceControl(QKnxDeviceControl::Attributes attributes)
bool isSet(QKnxDeviceControl::Attribute attribute) const
bool removeAttribute(QKnxDeviceControl::Attribute attribute)
bool setAttribute(QKnxDeviceControl::Attribute attribute)
bool setValue(QKnxDeviceControl::Attributes attributes)
QKnxDeviceControl::Attributes value() const

Detailed Description

This is a fixed size datapoint type with the length of 1 byte.

The possible values are combinations of the attributes specified by QKnxGeneralStatus::Attribute.

See also QKnx8BitSet, QKnxDatapointType, and Qt KNX Datapoint Type Classes.

Member Type Documentation

enum QKnxDeviceControl::Attribute
flags QKnxDeviceControl::Attributes

This enum type holds the control attributes.


The Attributes type is a typedef for QFlags<Attribute>. It stores an OR combination of Attribute values.

Member Function Documentation

QKnxDeviceControl::QKnxDeviceControl(QKnxDeviceControl::Attributes attributes)

Creates a fixed size datapoint type with the attributes attributes.


Creates a fixed size datapoint type with an empty list of attributes.

bool QKnxDeviceControl::isSet(QKnxDeviceControl::Attribute attribute) const

Returns whether the attribute attribute is set in the datapoint type.

bool QKnxDeviceControl::removeAttribute(QKnxDeviceControl::Attribute attribute)

Removes the attribute attribute from the value of the datapoint type.

Returns true if the value was removed; otherwise returns false.

bool QKnxDeviceControl::setAttribute(QKnxDeviceControl::Attribute attribute)

Sets the attribute attribute within the value of the datapoint type.

Returns true if the value was set; otherwise returns false.

bool QKnxDeviceControl::setValue(QKnxDeviceControl::Attributes attributes)

Sets the value of the datapoint type to the list of attributes specified by attributes.

Returns true if the value was set; otherwise returns false.

See also value().

QKnxDeviceControl::Attributes QKnxDeviceControl::value() const

Returns the value stored in the datapoint type as a list of attributes.

See also setValue().

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.