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 class Id { Control, Char, UnsignedChar, Int, UnsignedInt, …, Invalid }
enum class Unit { Array, Single }

Public Functions

QKnxInterfaceObjectPropertyDataType(QKnxInterfaceObjectPropertyDataType &&other)
QKnxInterfaceObjectPropertyDataType(const QKnxInterfaceObjectPropertyDataType &o)
QKnxInterfaceObjectPropertyDataType(QKnxInterfaceObjectPropertyDataType::Id id, QKnxDatapointType::Type type = QKnxDatapointType::Type::Unknown, QKnxInterfaceObjectPropertyDataType::Unit unit = Unit::Single)
QKnxInterfaceObjectPropertyDataType()
QKnxInterfaceObjectPropertyDataType &operator=(QKnxInterfaceObjectPropertyDataType &&other)
QKnxInterfaceObjectPropertyDataType &operator=(const QKnxInterfaceObjectPropertyDataType &o)
~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
bool operator==(const QKnxInterfaceObjectPropertyDataType &other) const

Static Public Members

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

Detailed Description

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 class QKnxInterfaceObjectPropertyDataType::Id

This enum holds the ID of an interface object property.

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

enum class QKnxInterfaceObjectPropertyDataType::Unit

This enum holds the unit of an interface object property.

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

Member Function Documentation

QKnxInterfaceObjectPropertyDataType::QKnxInterfaceObjectPropertyDataType(QKnxInterfaceObjectPropertyDataType &&other)

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

QKnxInterfaceObjectPropertyDataType::QKnxInterfaceObjectPropertyDataType(const QKnxInterfaceObjectPropertyDataType &o)

Creates the interface object property data type o.

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

Creates a KNX interface object property data type.

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

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

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

Assigns o to this object.

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.

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

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