Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Grechuhin <i.grechuhin@gmail.com>2017-06-02 12:00:30 +0300
committerIlya Grechuhin <i.grechuhin@gmail.com>2017-06-02 15:48:53 +0300
commit722d3dd58c6f8aa60c1f22a4e966c5659f7c339e (patch)
tree684db66231cbd6a6c6cc64816232cebafa0b1840 /platform/platform.hpp
parent2e0b8733590fe003fa6c236af752b42608fc6f74 (diff)
[cherry] [MAPSME-4641] Added ChargingStatus to Platform.
Diffstat (limited to 'platform/platform.hpp')
-rw-r--r--platform/platform.hpp10
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);