The QKnxLightApplicationMode class is a datapoint type for storing the light application mode. 更多...
| 头: | #include <QKnxLightApplicationMode> | 
| qmake: | QT += knx | 
| 继承: | QKnx1Byte | 
| enum class | Mode { Normal, PresenceSimulation, NightRound, Invalid } | 
| QKnxLightApplicationMode (QKnxLightApplicationMode::Mode mode ) | |
| QKnxLightApplicationMode () | |
| QKnxLightApplicationMode::Mode | mode () const | 
| bool | setMode (QKnxLightApplicationMode::Mode mode ) | 
						The range for the
						Mode
						value is from
						
Normal, 0
						
						to
						
Night round, 2
						
						.
					
This is a fixed size datapoint type with the length of 1 byte.
另请参阅 QKnxDatapointType , QKnx1Byte ,和 Qt KNX Datapoint Type Classes .
This enum holds the light application mode stored in the datapoint type.
| 常量 | 值 | 描述 | 
|---|---|---|
								
QKnxLightApplicationMode::Mode::Normal
								
							 | 
							
								
0x00
								
							 | 
							Normal | 
								
QKnxLightApplicationMode::Mode::PresenceSimulation
								
							 | 
							
								
0x01
								
							 | 
							Presence simulation | 
								
QKnxLightApplicationMode::Mode::NightRound
								
							 | 
							
								
0x02
								
							 | 
							Night round | 
								
QKnxLightApplicationMode::Mode::Invalid
								
							 | 
							
								
0xff
								
							 | 
							The value is invalid. | 
Creates a fixed size datapoint type with the mode set to mode .
						Creates a fixed size datapoint type with the mode set to
						
Normal
						
						.
					
Returns the mode stored in the datapoint type.
另请参阅 setMode ().
Sets the mode stored in the datapoint type to mode .
						返回
						
true
						
						if the byte was set; otherwise returns
						
false
						
						.
					
另请参阅 mode ().