QKnxDateTime Class

The QKnxDateTime class is a datapoint type for the date and time. More...

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

Public Types

enum Attribute { Fault, WorkingDay, WorkingDayInvalid, YearInvalild, ..., StandardSummerTime }
flags Attributes
enum ClockQuality { WithoutExtendedSyncSignal, WithExtendedSyncSignal }

Public Functions

QKnxDateTime()
QKnxDateTime(const QDate &date, const QKnxTime24 &time, Attributes attr, ClockQuality quality)
Attributes attributes() const
ClockQuality clockQuality() const
QDate date() const
void setAttributes(Attributes attributes)
void setClockQuality(ClockQuality quality)
bool setDate(const QDate &date)
bool setTime(const QKnxTime24 &time)
bool setValue(const QDate &date, const QKnxTime24 &time, Attributes attr, ClockQuality quality)
QKnxTime24 time() const

Reimplemented Public Functions

virtual bool isValid() const override

Additional Inherited Members

Detailed Description

The QKnxDateTime class is a datapoint type for the date and time.

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

Valid dates are from Monday 1990-01-01 to Wednesday 2155-12-31.

See also QKnxDatapointType.

Member Type Documentation

enum QKnxDateTime::Attribute
flags QKnxDateTime::Attributes

The Attributes type is a typedef for QFlags<Attribute>. It stores an OR combination of Attribute values.

enum QKnxDateTime::ClockQuality

Member Function Documentation

QKnxDateTime::QKnxDateTime()

Default constructs an instance of QKnxDateTime.

QKnxDateTime::QKnxDateTime(const QDate &date, const QKnxTime24 &time, Attributes attr, ClockQuality quality)

Default constructs an instance of QKnxDateTime.

Attributes QKnxDateTime::attributes() const

See also setAttributes().

ClockQuality QKnxDateTime::clockQuality() const

See also setClockQuality().

QDate QKnxDateTime::date() const

See also setDate().

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

Reimplemented from QKnxDatapointType::isValid().

void QKnxDateTime::setAttributes(Attributes attributes)

See also attributes().

void QKnxDateTime::setClockQuality(ClockQuality quality)

See also clockQuality().

bool QKnxDateTime::setDate(const QDate &date)

See also date().

bool QKnxDateTime::setTime(const QKnxTime24 &time)

See also time().

bool QKnxDateTime::setValue(const QDate &date, const QKnxTime24 &time, Attributes attr, ClockQuality quality)

QKnxTime24 QKnxDateTime::time() const

See also setTime().

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