QKnxTimeOfDay Class

The QKnxTimeOfDay class is a datapoint type for the time of day. More...

Header: #include <QKnxTimeOfDay>
qmake: QT += knx
Inherits: QKnxFixedSizeDatapointType

Public Functions

QKnxTimeOfDay()
QKnxTimeOfDay(const QKnxTime &time)
QKnxTimeOfDay(quint8 hour, quint8 minute, quint8 second = 0, QKnxTime::DayOfWeek day = QKnxTime::DayOfWeek::Ignore)
QKnxTime::DayOfWeek dayOfDay() const
quint8 hour() const
quint8 minute() const
quint8 second() const
bool setDayOfWeek(QKnxTime::DayOfWeek day)
bool setHour(quint8 hour)
bool setMinute(quint8 minute)
bool setSecond(quint8 second)
bool setValue(const QKnxTime &time)
QKnxTime value() const

Reimplemented Public Functions

virtual bool isValid() const override

Additional Inherited Members

Detailed Description

The QKnxTimeOfDay class is a datapoint type for the time of day.

This is a fixed size datapoint type with the length of 3 bytes.

The left byte of the data holds the day as 3 bits and the hour as 5 bits, the middle byte holds the minutes as 5 bits, and the right byte holds the seconds as 5 bits.

See also QKnxDatapointType.

Member Function Documentation

QKnxTimeOfDay::QKnxTimeOfDay()

Default constructs an instance of QKnxTimeOfDay.

QKnxTimeOfDay::QKnxTimeOfDay(const QKnxTime &time)

Default constructs an instance of QKnxTimeOfDay.

QKnxTimeOfDay::QKnxTimeOfDay(quint8 hour, quint8 minute, quint8 second = 0, QKnxTime::DayOfWeek day = QKnxTime::DayOfWeek::Ignore)

Default constructs an instance of QKnxTimeOfDay.

QKnxTime::DayOfWeek QKnxTimeOfDay::dayOfDay() const

quint8 QKnxTimeOfDay::hour() const

See also setHour().

[override virtual] bool QKnxTimeOfDay::isValid() const

Reimplemented from QKnxDatapointType::isValid().

quint8 QKnxTimeOfDay::minute() const

See also setMinute().

quint8 QKnxTimeOfDay::second() const

See also setSecond().

bool QKnxTimeOfDay::setDayOfWeek(QKnxTime::DayOfWeek day)

bool QKnxTimeOfDay::setHour(quint8 hour)

See also hour().

bool QKnxTimeOfDay::setMinute(quint8 minute)

See also minute().

bool QKnxTimeOfDay::setSecond(quint8 second)

See also second().

bool QKnxTimeOfDay::setValue(const QKnxTime &time)

See also value().

QKnxTime QKnxTimeOfDay::value() const

See also setValue().

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