Add connection state

This commit is contained in:
Tim Gromeyer
2025-03-23 21:49:27 +01:00
parent cb625d0889
commit 06f7b6bdb8
4 changed files with 49 additions and 0 deletions

View File

@@ -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
};