mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-02-23 17:34:03 +00:00
Add connection state
This commit is contained in:
@@ -45,6 +45,19 @@ public:
|
||||
};
|
||||
LidState lidState = LidState::UNKNOWN;
|
||||
|
||||
// Connection state enumeration
|
||||
enum class ConnectionState : uint8_t
|
||||
{
|
||||
DISCONNECTED = 0x00,
|
||||
IDLE = 0x04,
|
||||
MUSIC = 0x05,
|
||||
CALL = 0x06,
|
||||
RINGING = 0x07,
|
||||
HANGING_UP = 0x09,
|
||||
UNKNOWN = 0xFF // Using 0xFF for representing null in the original
|
||||
};
|
||||
ConnectionState connectionState = ConnectionState::UNKNOWN;
|
||||
|
||||
QDateTime lastSeen; // Timestamp of last detection
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user