The QKnxTimeDelay class is a datapoint type for storing a time delay. 更多...
头: | #include <QKnxTimeDelay> |
qmake: | QT += knx |
继承: | QKnx1Byte |
enum class | Delay { NotActive, OneSecond, TwoSecond, ThreeSecond, FiveSecond, …, Invalid } |
QKnxTimeDelay (QKnxTimeDelay::Delay delay ) | |
QKnxTimeDelay () | |
QKnxTimeDelay::Delay | delay () const |
bool | setDelay (QKnxTimeDelay::Delay delay ) |
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.
另请参阅 QKnxDatapointType , QKnx1Byte ,和 Qt KNX Datapoint Type Classes .
This enum holds the time delay stored in the datapoint type.
常量 | 值 | 描述 |
---|---|---|
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. |
Creates a fixed size datapoint type with the time delay set to delay .
Creates a fixed size datapoint type with the time delay set to
NotActive
.
Returns the time delay stored in the datapoint type.
另请参阅 setDelay ().
Sets the time delay stored in the datapoint type to delay .
返回
true
if the byte was set; otherwise returns
false
.
另请参阅 delay ().