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>2013-02-18 22:25:53 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:51:00 +0300
commitd8f5301f4c9b18ed40f81ce8f28ef336572678c0 (patch)
treeb3fc7fb4f3fc344b1c34e581d322f9af60ab2813 /map/bookmark.hpp
parente502fd04ddcac69e6352cf952d02488a44c12dfe (diff)
[bookmarks] Handle timestamp in one function Framework::AddBookmark. Keep previous timestamp if bookmark is editing.
Diffstat (limited to 'map/bookmark.hpp')
-rw-r--r--map/bookmark.hpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/map/bookmark.hpp b/map/bookmark.hpp
index 3cfa470ae9..20f0ca9724 100644
--- a/map/bookmark.hpp
+++ b/map/bookmark.hpp
@@ -58,9 +58,6 @@ class BookmarkCategory : private noncopyable
/// Stores file name from which category was loaded
string m_file;
- friend class bookmark_impl::KMLParser;
- void AddBookmarkImpl(Bookmark const & bm, double scale);
-
public:
BookmarkCategory(string const & name) : m_name(name), m_visible(true) {}
~BookmarkCategory();
@@ -69,8 +66,12 @@ public:
/// @name Theese functions are called from Framework only.
//@{
- void AddBookmark(Bookmark const & bm, double scale);
- void ReplaceBookmark(size_t index, Bookmark const & bm, double scale);
+ void AddBookmark(Bookmark const & bm);
+ void ReplaceBookmark(size_t index, Bookmark const & bm);
+
+ /// This function is called when bookmark is editing or replacing.
+ /// We need to assign times to the newly created bookmark from the old one.
+ void AssignTimeStamp(size_t index, Bookmark & bm) const;
//@}
void SetVisible(bool isVisible) { m_visible = isVisible; }