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:
authorSergey Magidovich <mgsergio@mapswithme.com>2016-04-28 16:28:01 +0300
committerVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2016-05-12 10:19:15 +0300
commit6e58ba0abc25d4737036c3efe8ac80ee74ea5c4b (patch)
tree1c56b5d7cf55594720b027cbb8cdd58b19ff5559 /indexer/osm_editor.hpp
parent8ac15533c0d5a518e27b9f2f652ef2cefc7bc1ac (diff)
Make editor a field of Framework.
Diffstat (limited to 'indexer/osm_editor.hpp')
-rw-r--r--indexer/osm_editor.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/indexer/osm_editor.hpp b/indexer/osm_editor.hpp
index 62c71ddf07..c1738912e2 100644
--- a/indexer/osm_editor.hpp
+++ b/indexer/osm_editor.hpp
@@ -24,8 +24,6 @@ namespace osm
{
class Editor final
{
- Editor();
-
public:
using TFeatureTypeFn = function<void(FeatureType &)>; // Mimics Framework::TFeatureTypeFn.
@@ -52,7 +50,10 @@ public:
Created
};
+ Editor();
+
static Editor & Instance();
+ static void SetInstance(Editor * editor);
void SetMwmIdByNameAndVersionFn(TMwmIdByMapNameFn const & fn) { m_mwmIdByMapNameFn = fn; }
void SetInvalidateFn(TInvalidateFn const & fn) { m_invalidateFn = fn; }
@@ -202,6 +203,8 @@ private:
/// Notes to be sent to osm.
shared_ptr<editor::Notes> m_notes;
+
+ static Editor * s_instance;
}; // class Editor
string DebugPrint(Editor::FeatureStatus fs);