QKnxOccupyMode Class

The QKnxOccupyMode class is a datapoint type for storing the occupy mode. 更多...

頭: #include <QKnxOccupyMode>
qmake: QT += knx
繼承: QKnx1Byte

公共類型

枚舉類 Mode { Occupied, Standby, NotOccupied, Invalid }

公共函數

QKnxOccupyMode (QKnxOccupyMode::Mode mode )
QKnxOccupyMode ()
QKnxOccupyMode::Mode mode () const
bool setMode (QKnxOccupyMode::Mode mode )

詳細描述

This datapoint type stores information about room occupancy.

The range for the value is from Occupied, 0 to Not occupied, 2 .

This is a fixed size datapoint type with the length of 1 byte.

另請參閱 QKnxDatapointType , QKnx1Byte ,和 Qt KNX Datapoint Type Classes .

成員類型文檔編製

enum class QKnxOccupyMode:: Mode

This enum holds the mode stored in the datapoint type.

常量 描述
QKnxOccupyMode::Mode::Occupied 0x00 The room is occupied.
QKnxOccupyMode::Mode::Standby 0x01 Stand-by
QKnxOccupyMode::Mode::NotOccupied 0x02 The room is not occupied.
QKnxOccupyMode::Mode::Invalid 0xff The value is invalid.

成員函數文檔編製

QKnxOccupyMode:: QKnxOccupyMode ( QKnxOccupyMode::Mode mode )

Creates a fixed size datapoint type with the mode set to mode .

QKnxOccupyMode:: QKnxOccupyMode ()

Creates a fixed size datapoint type with the mode set to Occupied .

QKnxOccupyMode::Mode QKnxOccupyMode:: mode () const

Returns the mode stored in the datapoint type.

另請參閱 setMode ().

bool QKnxOccupyMode:: setMode ( QKnxOccupyMode::Mode mode )

Sets the mode stored in the datapoint type to mode .

返迴 true if the byte was set; otherwise returns false .

另請參閱 mode ().