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:
authorvng <viktor.govako@gmail.com>2012-07-09 22:48:08 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:40:49 +0300
commit6347a629357622082a9028a30840cf591761139a (patch)
tree6a291763179bf0cfbfa306de1add6e750c5f022f /platform/platform.hpp
parentdac15d8d8634a10da66569917c348bf6ede47ecf (diff)
Add flag for PRO version in Platform. Return meta server url for downloading due to this flag.
Diffstat (limited to 'platform/platform.hpp')
-rw-r--r--platform/platform.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/platform/platform.hpp b/platform/platform.hpp
index d14acc2595..ab9e8e98b6 100644
--- a/platform/platform.hpp
+++ b/platform/platform.hpp
@@ -26,6 +26,8 @@ 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;
class PlatformImpl;
/// Used only on those platforms where needed
@@ -121,9 +123,13 @@ public:
string UniqueClientId() const;
+ inline bool IsPro() const { return m_isPro; }
+
/// @return url for clients to download maps
+ //@{
string MetaServerUrl() const;
string ResourcesMetaServerUrl() const;
+ //@}
/// @return JSON-encoded list of urls if metaserver is unreachable
string DefaultUrlsJSON() const;