diff options
author | ExMix <rahuba.youri@mapswithme.com> | 2014-10-13 20:13:25 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:30:29 +0300 |
commit | 3d1f43fffd9330a3d1391594d112b56f3d9d2902 (patch) | |
tree | f3afa664e46dbe418509e7fbfd73b001cad56634 /map/active_maps_layout.hpp | |
parent | 5772a273c2f899b43cf395977e8ca3c1eddfa6ef (diff) |
[core] notifications refactoring
Diffstat (limited to 'map/active_maps_layout.hpp')
-rw-r--r-- | map/active_maps_layout.hpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/map/active_maps_layout.hpp b/map/active_maps_layout.hpp index 70a005f5bd..6d0c0544f4 100644 --- a/map/active_maps_layout.hpp +++ b/map/active_maps_layout.hpp @@ -32,8 +32,10 @@ public: /// if group of country been changed. than oldGroup != newGroup, oldPosition >= 0 and newPosition >= 0 virtual void CountryGroupChanged(TGroup const & oldGroup, int oldPosition, TGroup const & newGroup, int newPosition) = 0; - virtual void CountryStatusChanged(TGroup const & group, int position) = 0; - virtual void CountryOptionsChanged(TGroup const & group, int position) = 0; + virtual void CountryStatusChanged(TGroup const & group, int position, + TStatus const & oldStatus, TStatus const & newStatus) = 0; + virtual void CountryOptionsChanged(TGroup const & group, int position, + TMapOptions const & oldOpt, TMapOptions const & newOpt) = 0; virtual void DownloadingProgressUpdate(TGroup const & group, int position, LocalAndRemoteSizeT const & progress) = 0; }; @@ -123,8 +125,10 @@ private: void NotifyMove(TGroup const & oldGroup, int oldPosition, TGroup const & newGroup, int newPosition); - void NotifyStatusChanged(TGroup const & group, int position); - void NotifyOptionsChanged(TGroup const & group, int position); + void NotifyStatusChanged(TGroup const & group, int position, + TStatus const & oldStatus, TStatus const & newStatus); + void NotifyOptionsChanged(TGroup const & group, int position, + TMapOptions const & oldOpt, TMapOptions const & newOpt); TMapOptions ValidOptionsForDownload(TMapOptions const & options); TMapOptions ValidOptionsForDelete(TMapOptions const & options); |