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
path: root/editor
diff options
context:
space:
mode:
authorSergey Magidovich <mgsergio@mapswithme.com>2016-05-30 19:03:40 +0300
committerSergey Magidovich <mgsergio@mapswithme.com>2016-05-30 19:03:40 +0300
commite0b17934baa7c0d18e404eec2ca18a967eca7e81 (patch)
treee974d523033372fc9fd6ffab5a5f168dbe84ab2b /editor
parent82821e1ed30d9e923a08ea5a1fecaeabaac382ce (diff)
Change interface for gui. Haven't been tested yet.
Diffstat (limited to 'editor')
-rw-r--r--editor/user_stats.cpp5
-rw-r--r--editor/user_stats.hpp1
2 files changed, 6 insertions, 0 deletions
diff --git a/editor/user_stats.cpp b/editor/user_stats.cpp
index 76788e0e75..cad45ce733 100644
--- a/editor/user_stats.cpp
+++ b/editor/user_stats.cpp
@@ -24,6 +24,11 @@ UserStats::UserStats(string const & userName)
m_updateStatus = Update();
}
+UserStats::UserStats(string const & userName, uint32_t rating, uint32_t changesCount)
+ : m_userName(userName), m_changesCount(changesCount), m_rank(rating), m_updateStatus(true)
+{
+}
+
bool UserStats::IsChangesCountInitialized() const
{
return m_changesCount != kUninitialized;
diff --git a/editor/user_stats.hpp b/editor/user_stats.hpp
index 38f714bdcd..91c1dc8410 100644
--- a/editor/user_stats.hpp
+++ b/editor/user_stats.hpp
@@ -9,6 +9,7 @@ class UserStats
{
public:
explicit UserStats(string const & userName);
+ explicit UserStats(string const & userName, uint32_t rating, uint32_t changesCount);
bool IsChangesCountInitialized() const;
bool IsRankInitialized() const;