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(Control control, NumberOfIntervals interval)
QKnxControlDimming()
Control control() const
void setControl(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(Control control, 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.

Control QKnxControlDimming::control() const

Returns the control stored in the datapoint type.

See also setControl().

void QKnxControlDimming::setControl(Control control)

Sets the control part of the datapoint type to control.

See also control().