diff options
author | vng <viktor.govako@gmail.com> | 2013-09-12 17:58:47 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:01:17 +0300 |
commit | 1f7f812d6a150a2b47b37941ab343f3888ac3d6a (patch) | |
tree | 02285a37585dce1b4d61d7cf43a2ed08176e3a64 /platform/platform.hpp | |
parent | 211646b49c2d814df17b4689b0069c583537043f (diff) |
Bookmarks support for MWM Lite in Yota devices.
Diffstat (limited to 'platform/platform.hpp')
-rw-r--r-- | platform/platform.hpp | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/platform/platform.hpp b/platform/platform.hpp index 5bc1899fa6..9c24c7e92d 100644 --- a/platform/platform.hpp +++ b/platform/platform.hpp @@ -8,9 +8,11 @@ #include "../std/vector.hpp" #include "../std/utility.hpp" #include "../std/function.hpp" +#include "../std/bitset.hpp" #include "../defines.hpp" + DECLARE_EXCEPTION(FileAbsentException, RootException); DECLARE_EXCEPTION(NotImplementedException, RootException); @@ -26,8 +28,16 @@ protected: string m_tmpDir; /// Writable directory to store persistent application data string m_settingsDir; - /// Flag that it's a paid PRO version of app. - bool m_isPro; + + enum + { + PRO_URL, + HAS_BOOKMARKS, + HAS_ROTATION, + FLAGS_COUNT // should always be the last one + }; + + bitset<FLAGS_COUNT> m_flags; /// Extended resource files. /// Used in Android only (downloaded zip files as a container). @@ -123,7 +133,9 @@ public: string UniqueClientId() const; - inline bool IsPro() const { return m_isPro; } + inline bool IsPro() const { return m_flags[PRO_URL]; } + inline bool HasBookmarks() const { return m_flags[HAS_BOOKMARKS]; } + inline bool HasRotation() const { return m_flags[HAS_ROTATION]; } /// @return url for clients to download maps //@{ |