diff options
author | Ilya Grechuhin <i.grechuhin@gmail.com> | 2017-06-02 12:00:30 +0300 |
---|---|---|
committer | Ilya Grechuhin <i.grechuhin@gmail.com> | 2017-06-02 15:48:53 +0300 |
commit | 722d3dd58c6f8aa60c1f22a4e966c5659f7c339e (patch) | |
tree | 684db66231cbd6a6c6cc64816232cebafa0b1840 /platform/platform.hpp | |
parent | 2e0b8733590fe003fa6c236af752b42608fc6f74 (diff) |
[cherry] [MAPSME-4641] Added ChargingStatus to Platform.
Diffstat (limited to 'platform/platform.hpp')
-rw-r--r-- | platform/platform.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/platform/platform.hpp b/platform/platform.hpp index 6d0ee17094..d79201a10c 100644 --- a/platform/platform.hpp +++ b/platform/platform.hpp @@ -55,6 +55,13 @@ public: CONNECTION_WWAN }; + enum class ChargingStatus : uint8_t + { + Unknown, + Plugged, + Unplugged + }; + using TFilesWithType = vector<pair<string, EFileType>>; protected: @@ -226,6 +233,8 @@ public: static EConnectionType ConnectionStatus(); static bool IsConnected() { return ConnectionStatus() != EConnectionType::CONNECTION_NONE; } + static ChargingStatus GetChargingStatus(); + void SetupMeasurementSystem() const; MarketingService & GetMarketingService() { return m_marketingService; } @@ -237,3 +246,4 @@ private: extern Platform & GetPlatform(); string DebugPrint(Platform::EError err); +string DebugPrint(Platform::ChargingStatus status); |