diff options
| author | Tomasz Sterna <tomek@xiaoka.com> | 2015-06-19 13:54:36 +0200 |
|---|---|---|
| committer | Tomasz Sterna <tomek@xiaoka.com> | 2015-06-19 13:54:36 +0200 |
| commit | 0366d22c53a9b2f78bb500f75644fe9d8c94b01a (patch) | |
| tree | 232281bea890d03999ca77e478df0dd64eb61d1d /daemon/watchconnector.h | |
| parent | 98aaa3a2292989f05f5c3e683e2dd4f20bb145e3 (diff) | |
Support HardwarePlatform dependant features
Diffstat (limited to 'daemon/watchconnector.h')
| -rw-r--r-- | daemon/watchconnector.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/daemon/watchconnector.h b/daemon/watchconnector.h index 1bedb4a..4369d87 100644 --- a/daemon/watchconnector.h +++ b/daemon/watchconnector.h @@ -152,7 +152,7 @@ public: }; enum HardwareRevision { - UNKNOWN = 0, + HR_UNKNOWN = 0, TINTIN_EV1 = 1, TINTIN_EV2 = 2, TINTIN_EV2_3 = 3, @@ -167,7 +167,13 @@ public: SNOWY_BB = 0xFD, SNOWY_BB2 = 0xFC }; - QMap<HardwareRevision, QString> firmwareMapping; + enum HardwarePlatform { + HP_UNKNOWN = 0, + APLITE, + BASALT + }; + typedef QPair<HardwarePlatform,QString> HWMap; + QMap<HardwareRevision, HWMap> hardwareMapping; struct SoftwareVersion { QDateTime build; @@ -273,6 +279,7 @@ private: int currentPebble; quint64 _last_address; WatchVersions _versions; + HardwarePlatform platform; }; QDebug operator<< (QDebug d, const WatchConnector::SoftwareVersion &ver); |
