QKnxInterfaceObjectPropertyDataType Class

The QKnxInterfaceObjectPropertyDataType class holds information about the data type of the properties of a KNX interface object. More...

Header: #include <QKnxInterfaceObjectPropertyDataType>
qmake: QT += knx

Public Types

enum Id { Control, Char, UnsignedChar, Int, ..., Invalid }
enum Unit { Array, Single }

Public Functions

QKnxInterfaceObjectPropertyDataType()
QKnxInterfaceObjectPropertyDataType(QKnxInterfaceObjectPropertyDataType::Id id, QKnxDatapointType::Type type = QKnxDatapointType::Type::Unknown, QKnxInterfaceObjectPropertyDataType::Unit unit = Unit::Single)
QKnxInterfaceObjectPropertyDataType(const QKnxInterfaceObjectPropertyDataType &o)
QKnxInterfaceObjectPropertyDataType(QKnxInterfaceObjectPropertyDataType &&other)
~QKnxInterfaceObjectPropertyDataType()
QKnxDatapointType::Type datapointType() const
QKnxInterfaceObjectPropertyDataType::Id id() const
bool isValid() const
quint8 size(bool read = false) const
void swap(QKnxInterfaceObjectPropertyDataType &other)
QKnxInterfaceObjectPropertyDataType::Unit unit() const
bool operator!=(const QKnxInterfaceObjectPropertyDataType &other) const
QKnxInterfaceObjectPropertyDataType &operator=(const QKnxInterfaceObjectPropertyDataType &o)
QKnxInterfaceObjectPropertyDataType &operator=(QKnxInterfaceObjectPropertyDataType &&other)
bool operator==(const QKnxInterfaceObjectPropertyDataType &other) const

Static Public Members

QVector<QKnxInterfaceObjectPropertyDataType> fromProperty(QKnxInterfaceObjectProperty property)
quint8 size(QKnxInterfaceObjectPropertyDataType::Id id, bool read = false)

Detailed Description

The QKnxInterfaceObjectPropertyDataType class holds information about the data type of the properties of a KNX interface object.

A KNX interface object holds information about device functionality. This class represents the properties of interface objects, such as:

See also Qt KNX Device Management Classes.

Member Type Documentation

enum QKnxInterfaceObjectPropertyDataType::Id

This enum holds the ID of an interface object property.

ConstantValue
QKnxInterfaceObjectPropertyDataType::Control0x00
QKnxInterfaceObjectPropertyDataType::Char0x01
QKnxInterfaceObjectPropertyDataType::UnsignedChar0x02
QKnxInterfaceObjectPropertyDataType::Int0x03
QKnxInterfaceObjectPropertyDataType::UnsignedInt0x04
QKnxInterfaceObjectPropertyDataType::KnxFloat0x05
QKnxInterfaceObjectPropertyDataType::Date0x06
QKnxInterfaceObjectPropertyDataType::Time0x07
QKnxInterfaceObjectPropertyDataType::Long0x08
QKnxInterfaceObjectPropertyDataType::UnsignedLong0x09
QKnxInterfaceObjectPropertyDataType::Float0x0a
QKnxInterfaceObjectPropertyDataType::Double0x0b
QKnxInterfaceObjectPropertyDataType::CharBlock0x0c
QKnxInterfaceObjectPropertyDataType::PollGroupSettings0x0d
QKnxInterfaceObjectPropertyDataType::ShortCharBlock0x0e
QKnxInterfaceObjectPropertyDataType::DateTime0x0f
QKnxInterfaceObjectPropertyDataType::VariableLength0x10
QKnxInterfaceObjectPropertyDataType::Generic010x11
QKnxInterfaceObjectPropertyDataType::Generic020x12
QKnxInterfaceObjectPropertyDataType::Generic030x13
QKnxInterfaceObjectPropertyDataType::Generic040x14
QKnxInterfaceObjectPropertyDataType::Generic050x15
QKnxInterfaceObjectPropertyDataType::Generic060x16
QKnxInterfaceObjectPropertyDataType::Generic070x17
QKnxInterfaceObjectPropertyDataType::Generic080x18
QKnxInterfaceObjectPropertyDataType::Generic090x19
QKnxInterfaceObjectPropertyDataType::Generic100x1a
QKnxInterfaceObjectPropertyDataType::Generic110x1b
QKnxInterfaceObjectPropertyDataType::Generic120x1c
QKnxInterfaceObjectPropertyDataType::Generic130x1d
QKnxInterfaceObjectPropertyDataType::Generic140x1e
QKnxInterfaceObjectPropertyDataType::Generic150x1f
QKnxInterfaceObjectPropertyDataType::Generic160x20
QKnxInterfaceObjectPropertyDataType::Generic170x21
QKnxInterfaceObjectPropertyDataType::Generic180x22
QKnxInterfaceObjectPropertyDataType::Generic190x23
QKnxInterfaceObjectPropertyDataType::Generic200x24
QKnxInterfaceObjectPropertyDataType::Reserved010x25
QKnxInterfaceObjectPropertyDataType::Reserved020x26
QKnxInterfaceObjectPropertyDataType::Reserved030x27
QKnxInterfaceObjectPropertyDataType::Reserved040x28
QKnxInterfaceObjectPropertyDataType::Reserved050x29
QKnxInterfaceObjectPropertyDataType::Reserved060x2a
QKnxInterfaceObjectPropertyDataType::Reserved070x2b
QKnxInterfaceObjectPropertyDataType::Reserved080x2c
QKnxInterfaceObjectPropertyDataType::Reserved090x2d
QKnxInterfaceObjectPropertyDataType::Reserved100x2e
QKnxInterfaceObjectPropertyDataType::Utf80x2f
QKnxInterfaceObjectPropertyDataType::Version0x30
QKnxInterfaceObjectPropertyDataType::AlarmInfo0x31
QKnxInterfaceObjectPropertyDataType::BinaryInformation0x32
QKnxInterfaceObjectPropertyDataType::Bitset80x33
QKnxInterfaceObjectPropertyDataType::Bitset160x34
QKnxInterfaceObjectPropertyDataType::Enum80x35
QKnxInterfaceObjectPropertyDataType::Scaling0x36
QKnxInterfaceObjectPropertyDataType::Reserved110x37
QKnxInterfaceObjectPropertyDataType::Reserved120x38
QKnxInterfaceObjectPropertyDataType::Reserved130x39
QKnxInterfaceObjectPropertyDataType::Reserved140x3a
QKnxInterfaceObjectPropertyDataType::Reserved150x3b
QKnxInterfaceObjectPropertyDataType::NeVl0x3c
QKnxInterfaceObjectPropertyDataType::NeFl0x3d
QKnxInterfaceObjectPropertyDataType::Function0x3e
QKnxInterfaceObjectPropertyDataType::Escape0x3f
QKnxInterfaceObjectPropertyDataType::Invalid0x40

enum QKnxInterfaceObjectPropertyDataType::Unit

This enum holds the unit of an interface object property.

ConstantValueDescription
QKnxInterfaceObjectPropertyDataType::Array0An array of values.
QKnxInterfaceObjectPropertyDataType::Single1A single value.

Member Function Documentation

QKnxInterfaceObjectPropertyDataType::QKnxInterfaceObjectPropertyDataType()

Creates a KNX interface object property data type.

QKnxInterfaceObjectPropertyDataType::QKnxInterfaceObjectPropertyDataType(QKnxInterfaceObjectPropertyDataType::Id id, QKnxDatapointType::Type type = QKnxDatapointType::Type::Unknown, QKnxInterfaceObjectPropertyDataType::Unit unit = Unit::Single)

Creates a KNX interface object property data type with the ID id, type type, and unit unit.

QKnxInterfaceObjectPropertyDataType::QKnxInterfaceObjectPropertyDataType(const QKnxInterfaceObjectPropertyDataType &o)

Creates the interface object property data type o.

QKnxInterfaceObjectPropertyDataType::QKnxInterfaceObjectPropertyDataType(QKnxInterfaceObjectPropertyDataType &&other)

Move-constructs an object instance, making it point to the same object that other was pointing to.

QKnxInterfaceObjectPropertyDataType::~QKnxInterfaceObjectPropertyDataType()

Destroys a KNX interface object property data type.

QKnxDatapointType::Type QKnxInterfaceObjectPropertyDataType::datapointType() const

Returns the datapoint type of a KNX interface object property data type.

See also QKnxDatapointType::Type.

[static] QVector<QKnxInterfaceObjectPropertyDataType> QKnxInterfaceObjectPropertyDataType::fromProperty(QKnxInterfaceObjectProperty property)

Creates a KNX interface object property data type from the property property.

QKnxInterfaceObjectPropertyDataType::Id QKnxInterfaceObjectPropertyDataType::id() const

Returns the ID of the KNX interface object property data type.

bool QKnxInterfaceObjectPropertyDataType::isValid() const

Returns true if this a valid KNX interface object property data type; otherwise returns false.

quint8 QKnxInterfaceObjectPropertyDataType::size(bool read = false) const

Returns the size of the KNX interface object property data type.

If read is false, the property is a write property. Only the object property data type PDT_CONTROL, which is used as type indication for properties controlling the standard load state machine, can be either a read property or a write property.

[static] quint8 QKnxInterfaceObjectPropertyDataType::size(QKnxInterfaceObjectPropertyDataType::Id id, bool read = false)

Returns the size of the KNX interface object property data type with the ID id.

If read is false, the property is a write property. Only the object property data type PDT_CONTROL, which is used as type indication for properties controlling the standard load state machine, can be either a read property or a write property.

void QKnxInterfaceObjectPropertyDataType::swap(QKnxInterfaceObjectPropertyDataType &other)

Swaps the interface object property data type other with this data type.

QKnxInterfaceObjectPropertyDataType::Unit QKnxInterfaceObjectPropertyDataType::unit() const

Returns the unit of a KNX interface object property data type.

bool QKnxInterfaceObjectPropertyDataType::operator!=(const QKnxInterfaceObjectPropertyDataType &other) const

Returns true if this object and the given other are not equal; otherwise returns false.

QKnxInterfaceObjectPropertyDataType &QKnxInterfaceObjectPropertyDataType::operator=(const QKnxInterfaceObjectPropertyDataType &o)

Assigns o to this object.

QKnxInterfaceObjectPropertyDataType &QKnxInterfaceObjectPropertyDataType::operator=(QKnxInterfaceObjectPropertyDataType &&other)

Move-constructs an object instance, making it point to the same object that other was pointing to.

bool QKnxInterfaceObjectPropertyDataType::operator==(const QKnxInterfaceObjectPropertyDataType &other) const

Returns true if this object and the given other are equal; otherwise returns false.

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