QKnxPriority Class

The QKnxPriority class is a datapoint type for storing priority. More...

Header: #include <QKnxPriority>
qmake: QT += knx
Inherits: QKnx1Byte

Public Types

enum Priority { High, Medium, Low, Void, Invalid }

Public Functions

QKnxPriority()
QKnxPriority(QKnxPriority::Priority priority)
QKnxPriority::Priority priority() const
bool setPriority(QKnxPriority::Priority priority)

Additional Inherited Members

Detailed Description

The QKnxPriority class is a datapoint type for storing priority.

This datapoint type is used for parameters, not for runtime interworking. For example, it can be used to store the alarm priority of a configurable digital alarm input in a device.

The range for the value is from High, 0 to Void, 3.

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

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

Member Type Documentation

enum QKnxPriority::Priority

This enum holds the priority stored in the datapoint type.

ConstantValueDescription
QKnxPriority::High0x00High
QKnxPriority::Medium0x01Medium
QKnxPriority::Low0x02Low
QKnxPriority::Void0x03Void
QKnxPriority::Invalid0xffThe value is invalid.

Member Function Documentation

QKnxPriority::QKnxPriority()

Creates a fixed size datapoint type with the priority set to High.

QKnxPriority::QKnxPriority(QKnxPriority::Priority priority)

Creates a fixed size datapoint type with the priority set to priority.

QKnxPriority::Priority QKnxPriority::priority() const

Returns the priority stored in the datapoint type.

See also setPriority().

bool QKnxPriority::setPriority(QKnxPriority::Priority priority)

Sets the priority stored in the datapoint type to priority.

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

See also priority().

© 2018 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.