The QKnxAlarmReaction class is a fixed size datapoint type for storing the alarm reaction. 更多...
| 头: | #include <QKnxAlarmReaction> | 
| qmake: | QT += knx | 
| 继承: | QKnx2BitSet | 
| enum class | 闹钟 { NoAlarm, AlarmUp, AlarmDown } | 
| QKnxAlarmReaction (QKnxAlarmReaction::Alarm alarm ) | |
| QKnxAlarmReaction () | |
| QKnxAlarmReaction::Alarm | alarm () const | 
| bool | setAlarm (QKnxAlarmReaction::Alarm alarm ) | 
						The range for the
						
							alarm
						
						value is from
						
No alarm is used, 0
						
						to
						
Alarm position is down, 2
						
						.
					
This is a fixed size datapoint type with the length of 2 bits.
另请参阅 QKnxDatapointType , QKnxOnOffAction , QKnxUpDownAction ,和 Qt KNX Datapoint Type Classes .
This enum holds the alarm reaction stored in the datapoint type.
| 常量 | 值 | 描述 | 
|---|---|---|
								
QKnxAlarmReaction::Alarm::NoAlarm
								
							 | 
							
								
0x00
								
							 | 
							No alarm is used. | 
								
QKnxAlarmReaction::Alarm::AlarmUp
								
							 | 
							
								
0x01
								
							 | 
							Alarm position is up. | 
								
QKnxAlarmReaction::Alarm::AlarmDown
								
							 | 
							
								
0x02
								
							 | 
							Alarm position is down. | 
Creates a fixed size datapoint type with the alarm reaction set to alarm .
						Creates a fixed size datapoint type with the alarm reaction set to
						
NoAlarm
						
						.
					
Returns the alarm reaction stored in the datapoint type.
另请参阅 setAlarm ().
Sets the alarm reaction stored in the datapoint type to alarm .
						返回
						
true
						
						if the value was set; otherwise returns
						
false
						
						.
					
另请参阅 alarm ().