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.

ConstantValueDescription
QKnxTimeDelay::Delay::NotActive0x00No time delay was set.
QKnxTimeDelay::Delay::OneSecond0x01 
QKnxTimeDelay::Delay::TwoSecond0x02 
QKnxTimeDelay::Delay::ThreeSecond0x03 
QKnxTimeDelay::Delay::FiveSecond0x04 
QKnxTimeDelay::Delay::TenSecond0x05 
QKnxTimeDelay::Delay::FifteenSecond0x06 
QKnxTimeDelay::Delay::TwentySecond0x07 
QKnxTimeDelay::Delay::ThirtySecond0x08 
QKnxTimeDelay::Delay::FortyFiveSecond0x09 
QKnxTimeDelay::Delay::OneMinute0x0a 
QKnxTimeDelay::Delay::OneMinuteOneQuarter0x0b 
QKnxTimeDelay::Delay::OneMinuteAndHaft0x0c 
QKnxTimeDelay::Delay::TwoMinute0x0d 
QKnxTimeDelay::Delay::TwoMinuteAndHalf0x0e 
QKnxTimeDelay::Delay::ThreeMinute0x0f 
QKnxTimeDelay::Delay::FiveMinute0x10 
QKnxTimeDelay::Delay::FifteenMinute0x11 
QKnxTimeDelay::Delay::TwentyMinute0x12 
QKnxTimeDelay::Delay::ThirtyMinute0x13 
QKnxTimeDelay::Delay::OneHour0x14 
QKnxTimeDelay::Delay::TwoHour0x015 
QKnxTimeDelay::Delay::ThreeHour0x16 
QKnxTimeDelay::Delay::FiveHour0x17 
QKnxTimeDelay::Delay::TwelveHour0x18 
QKnxTimeDelay::Delay::TwentyFourHour0x19 
QKnxTimeDelay::Delay::Invalid0xffThe 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.