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:
authorYuri Gorshenin <y@maps.me>2015-06-16 18:15:09 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:53:25 +0300
commit598e71858b63ef4e587efd932db41474f8f516a0 (patch)
tree19e39c1dd331579432c9b58e5e1e82c750842ac3 /map/framework.hpp
parent9148053b3aa67aac443ade98e2ed2ae899419095 (diff)
Storage redesign.
Diffstat (limited to 'map/framework.hpp')
-rw-r--r--map/framework.hpp18
1 files changed, 6 insertions, 12 deletions
diff --git a/map/framework.hpp b/map/framework.hpp
index d0e6a723b2..89f0541bda 100644
--- a/map/framework.hpp
+++ b/map/framework.hpp
@@ -135,8 +135,10 @@ protected:
static const int TOUCH_PIXEL_RADIUS = 20;
/// This function is called by m_storage to notify that country downloading is finished.
- /// @param[in] file Country file name (without extensions).
- void UpdateAfterDownload(string const & file, TMapOptions opt);
+ 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);
//my::Timer m_timer;
inline double ElapsedSeconds() const
@@ -155,10 +157,7 @@ protected:
void ClearAllCaches();
- void DeregisterMap(string const & file);
-
- /// Deletes user calculated indexes on country updates
- void DeleteCountryIndexes(string const & mwmName);
+ void DeregisterMap(platform::CountryFile const & countryFile);
public:
Framework();
@@ -189,11 +188,6 @@ 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();
@@ -204,7 +198,7 @@ public:
///
/// @return True and inner mwm data version from header in version
/// or false in case of errors.
- pair<MwmSet::MwmLock, bool> RegisterMap(string const & file);
+ pair<MwmSet::MwmLock, bool> RegisterMap(platform::LocalCountryFile const & localFile);
//@}
/// Deletes all disk files corresponding to country.