QKnxTimeDelay Class
The QKnxTimeDelay class is a datapoint type for storing a time delay. More...
Header: | #include <QKnxTimeDelay> |
qmake: | QT += knx |
Inherits: | QKnx1Byte |
Public Types
enum class | Delay { NotActive, OneSecond, TwoSecond, ThreeSecond, FiveSecond, …, Invalid } |
Public Functions
QKnxTimeDelay(QKnxTimeDelay::Delay delay) | |
QKnxTimeDelay() | |
QKnxTimeDelay::Delay | delay() const |
bool | setDelay(QKnxTimeDelay::Delay delay) |
Detailed Description
The range for the Delay value is from Not active, 0
to Twenty four hours, 2
.
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 class QKnxTimeDelay::Delay
This enum holds the time delay stored in the datapoint type.
Constant | Value | Description |
---|---|---|
QKnxTimeDelay::Delay::NotActive | 0x00 | No time delay was set. |
QKnxTimeDelay::Delay::OneSecond | 0x01 | |
QKnxTimeDelay::Delay::TwoSecond | 0x02 | |
QKnxTimeDelay::Delay::ThreeSecond | 0x03 | |
QKnxTimeDelay::Delay::FiveSecond | 0x04 | |
QKnxTimeDelay::Delay::TenSecond | 0x05 | |
QKnxTimeDelay::Delay::FifteenSecond | 0x06 | |
QKnxTimeDelay::Delay::TwentySecond | 0x07 | |
QKnxTimeDelay::Delay::ThirtySecond | 0x08 | |
QKnxTimeDelay::Delay::FortyFiveSecond | 0x09 | |
QKnxTimeDelay::Delay::OneMinute | 0x0a | |
QKnxTimeDelay::Delay::OneMinuteOneQuarter | 0x0b | |
QKnxTimeDelay::Delay::OneMinuteAndHaft | 0x0c | |
QKnxTimeDelay::Delay::TwoMinute | 0x0d | |
QKnxTimeDelay::Delay::TwoMinuteAndHalf | 0x0e | |
QKnxTimeDelay::Delay::ThreeMinute | 0x0f | |
QKnxTimeDelay::Delay::FiveMinute | 0x10 | |
QKnxTimeDelay::Delay::FifteenMinute | 0x11 | |
QKnxTimeDelay::Delay::TwentyMinute | 0x12 | |
QKnxTimeDelay::Delay::ThirtyMinute | 0x13 | |
QKnxTimeDelay::Delay::OneHour | 0x14 | |
QKnxTimeDelay::Delay::TwoHour | 0x015 | |
QKnxTimeDelay::Delay::ThreeHour | 0x16 | |
QKnxTimeDelay::Delay::FiveHour | 0x17 | |
QKnxTimeDelay::Delay::TwelveHour | 0x18 | |
QKnxTimeDelay::Delay::TwentyFourHour | 0x19 | |
QKnxTimeDelay::Delay::Invalid | 0xff | The value is invalid. |
Member Function Documentation
QKnxTimeDelay::QKnxTimeDelay(QKnxTimeDelay::Delay delay)
Creates a fixed size datapoint type with the time delay set to delay.
QKnxTimeDelay::QKnxTimeDelay()
Creates a fixed size datapoint type with the time delay set to NotActive
.
QKnxTimeDelay::Delay QKnxTimeDelay::delay() const
Returns the time delay stored in the datapoint type.
See also setDelay().
bool QKnxTimeDelay::setDelay(QKnxTimeDelay::Delay delay)
Sets the time delay stored in the datapoint type to delay.
Returns true
if the byte was set; otherwise returns false
.
See also delay().
© 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.