QKnxControlDimming Class

The QKnxControlDimming class is a datapoint type for controlling dimming. More...

Header: #include <QKnxControlDimming>
qmake: QT += knx
Inherits: QKnx3BitControlled

Public Types

enum Control { Decrease, Increase }

Public Functions

QKnxControlDimming(QKnxControlDimming::Control control, QKnx3BitControlled::NumberOfIntervals interval)
QKnxControlDimming()
QKnxControlDimming::Control control() const
void setControl(QKnxControlDimming::Control control)

Detailed Description

To set this datapoint type, Control and NumberOfIntervals have to be set.

See also QKnx3BitControlled and Qt KNX Datapoint Type Classes.

Member Type Documentation

enum QKnxControlDimming::Control

This enum type holds whether dimming decreases or increases.

ConstantValue
QKnxControlDimming::Decrease0x00
QKnxControlDimming::Increase0x01

Member Function Documentation

QKnxControlDimming::QKnxControlDimming(QKnxControlDimming::Control control, QKnx3BitControlled::NumberOfIntervals interval)

Creates a fixed size datapoint type with the control control and the number of intervals interval.

QKnxControlDimming::QKnxControlDimming()

Creates a fixed size datapoint type with the control set to Decrease and the number of intervals set to QKnx3BitControlled::Break.

QKnxControlDimming::Control QKnxControlDimming::control() const

Returns the control stored in the datapoint type.

See also setControl().

void QKnxControlDimming::setControl(QKnxControlDimming::Control control)

Sets the control part of the datapoint type to control.

See also control().