ProgrammingMode Class

class QKnxNetIpSrpProxy ::ProgrammingMode

The QKnxNetIpSrpProxy::ProgrammingMode class provides the means to create the Select By Programming Mode SRP for the extended search request. 更多...

该类在 Qt 5.12 引入。

公共函数

ProgrammingMode (const ProgrammingMode & other )
ProgrammingMode ()
ProgrammingMode & operator= (const ProgrammingMode & other )
~ProgrammingMode ()
QKnxNetIpSrp create () const
ProgrammingMode & setMandatory (bool value )

详细描述

The client includes this SRP to indicate that it is interested only in responses from KNXnet/IP servers in which Programming Mode is currently enabled. If Programming Mode is not enabled in a KNXnet/IP server, then the server does not respond to this search request.

注意: By default the mandatory flag is set to true .

The common way to create this SRP is:

auto srpMode = QKnxNetIpSrpProxy::programmingModeBuilder()
    .setMandatory(true)
    .create();
					

另请参阅 QKnxNetIpSearchRequestProxy .

成员函数文档编制

ProgrammingMode:: ProgrammingMode (const ProgrammingMode & other )

构造副本为 other .

ProgrammingMode:: ProgrammingMode ()

Constructs a builder for SRPs of the type Select By Programming Mode.

ProgrammingMode &ProgrammingMode:: operator= (const ProgrammingMode & other )

赋值 other to this Programming Mode builder and returns a reference.

ProgrammingMode:: ~ProgrammingMode ()

Destroys a Select By Programming Mode SRP.

QKnxNetIpSrp ProgrammingMode:: create () const

Creates a Select By Programming Mode SRP.

ProgrammingMode &ProgrammingMode:: setMandatory ( bool value )

Sets the mandatory bit to value .

注意: The mandatory bit is the first significant bit of the Type Code field.