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:
authorgorshenin <y.gorshenin@corp.mail.ru>2015-07-01 16:48:58 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:53:27 +0300
commita7bcdb5ae8b8e75c1a3806b00b19f3b80c72c5b3 (patch)
treee24caedef110b579fcedc15d29c62cc43e3f6d9c /map/framework.hpp
parente0470160313b3ed0bc396ffec72b16fded6b8520 (diff)
Revert "[storage, framework, index] Storage redesign. Plain strings are replaced to CountryFile and LocalCountryFile."
Diffstat (limited to 'map/framework.hpp')
-rw-r--r--map/framework.hpp18
1 files changed, 12 insertions, 6 deletions
diff --git a/map/framework.hpp b/map/framework.hpp
index 89f0541bda..d0e6a723b2 100644
--- a/map/framework.hpp
+++ b/map/framework.hpp
@@ -135,10 +135,8 @@ protected:
static const int TOUCH_PIXEL_RADIUS = 20;
/// This function is called by m_storage to notify that country downloading is finished.
- void UpdateAfterDownload(platform::LocalCountryFile const & localFile);
-
- /// This function is called by m_model when the map file is deregistered.
- void OnMapDeregistered(platform::LocalCountryFile const & localFile);
+ /// @param[in] file Country file name (without extensions).
+ void UpdateAfterDownload(string const & file, TMapOptions opt);
//my::Timer m_timer;
inline double ElapsedSeconds() const
@@ -157,7 +155,10 @@ protected:
void ClearAllCaches();
- void DeregisterMap(platform::CountryFile const & countryFile);
+ void DeregisterMap(string const & file);
+
+ /// Deletes user calculated indexes on country updates
+ void DeleteCountryIndexes(string const & mwmName);
public:
Framework();
@@ -188,6 +189,11 @@ public:
void ReleaseSingleFrameRenderer();
bool IsSingleFrameRendererInited() const;
+ /// @name Process storage connecting/disconnecting.
+ //@{
+ /// @param[out] maps File names without path.
+ void GetMaps(vector<string> & maps) const;
+
/// Registers all local map files in internal indexes.
void RegisterAllMaps();
@@ -198,7 +204,7 @@ public:
///
/// @return True and inner mwm data version from header in version
/// or false in case of errors.
- pair<MwmSet::MwmLock, bool> RegisterMap(platform::LocalCountryFile const & localFile);
+ pair<MwmSet::MwmLock, bool> RegisterMap(string const & file);
//@}
/// Deletes all disk files corresponding to country.