- added ExtensionBatteryState to ScStw and renamed ReadyStates in timer
This commit is contained in:
parent
02b51e54ee
commit
172ba0d1a0
2 changed files with 26 additions and 2 deletions
|
@ -142,6 +142,9 @@ public:
|
|||
Q_ENUM(ExtensionType);
|
||||
|
||||
|
||||
/*!
|
||||
* \brief The ExtensionState enum contains all possible states of an extension
|
||||
*/
|
||||
enum ExtensionState {
|
||||
Disconnected = 0,
|
||||
Connecting = 1,
|
||||
|
@ -151,6 +154,26 @@ public:
|
|||
Q_ENUM(ExtensionState);
|
||||
|
||||
|
||||
/*!
|
||||
* \brief The ExtensionBatteryState enum contains all possible battery states of an extension
|
||||
*/
|
||||
enum ExtensionBatteryState {
|
||||
BatteryUnknown = -1,
|
||||
BatteryFine = 1,
|
||||
BatteryCritical = 0
|
||||
};
|
||||
Q_ENUM(ExtensionBatteryState);
|
||||
|
||||
/*!
|
||||
* \brief The PadState enum contains whether a pad is currently pressed or not
|
||||
*/
|
||||
enum PadState {
|
||||
PadNotPressed = 0,
|
||||
PadPressed = 1
|
||||
};
|
||||
Q_ENUM(PadState);
|
||||
|
||||
|
||||
/*!
|
||||
* \brief SOCKET_MESSAGE_START_KEY contains the key, a message is supposed to start with
|
||||
*/
|
||||
|
|
|
@ -105,8 +105,9 @@ public:
|
|||
IsReady = 0, /*!< Timer is ready for start */
|
||||
NotInIdleState, /*!< Timer is not in IDLE state */
|
||||
IsDisabled, /*!< Timer is disabled */
|
||||
NotAllExtensionsConnected, /*!< Not all extension of the timer are conneted */
|
||||
NotAllClimbersReady /*!< The startpad of the timer is not triggered */
|
||||
ExtensionIsNotConnected, /*!< Not all extension of the timer are conneted */
|
||||
ExtensionBatteryNotFine, /*!< The battery level of one or more extension is critical or unknown */
|
||||
ClimberIsNotReady /*!< The startpad of the timer is not triggered */
|
||||
};
|
||||
|
||||
protected:
|
||||
|
|
Reference in a new issue