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-05-26 18:06:31 +0300
committerSergey Magidovich <mgsergio@mapswithme.com>2016-06-02 11:51:57 +0300
commit27444c4d8cf1b59a879f928ebe5d92179ef8e7e9 (patch)
tree8a004327f74242be9be237387e94263c737a260a /indexer/osm_editor.hpp
parentc5b15e1af26d0d5b989fa47ffea32ced368787ac (diff)
Make features as deleted when place doesn't exist is sent.
Diffstat (limited to 'indexer/osm_editor.hpp')
-rw-r--r--indexer/osm_editor.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indexer/osm_editor.hpp b/indexer/osm_editor.hpp
index 8098ea077d..e3d3070493 100644
--- a/indexer/osm_editor.hpp
+++ b/indexer/osm_editor.hpp
@@ -48,6 +48,7 @@ public:
{
Untouched,
Deleted,
+ Obsolete, // The feature is obsolete when is marked for deletion via note.
Modified,
Created
};
@@ -157,6 +158,9 @@ public:
};
Stats GetStats() const;
+ // Don't use this function to determine if a feature in editor was created.
+ // Use GetFeatureStatus(fid) instead. This function is used when a feature is
+ // not yet saved and we have to know if it was modified or created.
static bool IsCreatedFeature(FeatureID const & fid);
private:
@@ -167,6 +171,9 @@ private:
/// Notify framework that something has changed and should be redisplayed.
void Invalidate();
+ // Saves a feature in internal storage with FeatureStatus::Obsolete status.
+ void MarkFeatureAsObsolete(FeatureID const & fid);
+
FeatureID GenerateNewFeatureId(MwmSet::MwmId const & id);
EditableProperties GetEditablePropertiesForTypes(feature::TypesHolder const & types) const;