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 Delay { NotActive, OneSecond, TwoSecond, ThreeSecond, ..., Invalid }

Public Functions

QKnxTimeDelay()
QKnxTimeDelay(QKnxTimeDelay::Delay delay)
QKnxTimeDelay::Delay delay() const
bool setDelay(QKnxTimeDelay::Delay delay)

Additional Inherited Members

Detailed Description

The QKnxTimeDelay class is a datapoint type for storing a time 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.

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

Member Type Documentation

enum QKnxTimeDelay::Delay

This enum holds the time delay stored in the datapoint type.

ConstantValueDescription
QKnxTimeDelay::NotActive0x00No time delay was set.
QKnxTimeDelay::OneSecond0x01 
QKnxTimeDelay::TwoSecond0x02 
QKnxTimeDelay::ThreeSecond0x03 
QKnxTimeDelay::FiveSecond0x04 
QKnxTimeDelay::TenSecond0x05 
QKnxTimeDelay::FifteenSecond0x06 
QKnxTimeDelay::TwentySecond0x07 
QKnxTimeDelay::ThirtySecond0x08 
QKnxTimeDelay::FortyFiveSecond0x09 
QKnxTimeDelay::OneMinute0x0a 
QKnxTimeDelay::OneMinuteOneQuarter0x0b 
QKnxTimeDelay::OneMinuteAndHaft0x0c 
QKnxTimeDelay::TwoMinute0x0d 
QKnxTimeDelay::TwoMinuteAndHalf0x0e 
QKnxTimeDelay::ThreeMinute0x0f 
QKnxTimeDelay::FiveMinute0x10 
QKnxTimeDelay::FifteenMinute0x11 
QKnxTimeDelay::TwentyMinute0x12 
QKnxTimeDelay::ThirtyMinute0x13 
QKnxTimeDelay::OneHour0x14 
QKnxTimeDelay::TwoHour0x015 
QKnxTimeDelay::ThreeHour0x16 
QKnxTimeDelay::FiveHour0x17 
QKnxTimeDelay::TwelveHour0x18 
QKnxTimeDelay::TwentyFourHour0x19 
QKnxTimeDelay::Invalid0xffThe value is invalid.

Member Function Documentation

QKnxTimeDelay::QKnxTimeDelay()

Creates a fixed size datapoint type with the time delay set to NotActive.

QKnxTimeDelay::QKnxTimeDelay(QKnxTimeDelay::Delay delay)

Creates a fixed size datapoint type with the time delay set to delay.

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().

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