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:
authorKirill Zhdanovich <kzhdanovich@gmail.com>2013-02-12 17:59:33 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:49:49 +0300
commit181a26c3139ada4262db173389d8f8365a2cd335 (patch)
tree475e8be45ccc6a3b402e11dbbd1518caa3cce855 /map/location_state.hpp
parent1613f63ca56e90be044741a4dd7130bff4d7e23d (diff)
On my position click, added function for communication with listeners
Diffstat (limited to 'map/location_state.hpp')
-rw-r--r--map/location_state.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/map/location_state.hpp b/map/location_state.hpp
index 969ec8ae7e..77ed7d73b2 100644
--- a/map/location_state.hpp
+++ b/map/location_state.hpp
@@ -51,6 +51,7 @@ namespace location
public:
typedef function<void(int)> TCompassStatusListener;
+ typedef function<void(m2::PointD const &)> TOnPositionClickListener;
private:
@@ -113,6 +114,11 @@ namespace location
TCompassStatusListeners m_compassStatusListeners;
int m_currentSlotID;
+ typedef map<int, TOnPositionClickListener> TOnPositionClickListeners;
+ TOnPositionClickListeners m_onPositionClickListeners;
+
+ void CallOnPositionClickListeners(m2::PointD const & point);
+
void CallCompassStatusListeners(ECompassProcessMode mode);
double ComputeMoveSpeed(m2::PointD const & globalPt0,
@@ -156,6 +162,9 @@ namespace location
int AddCompassStatusListener(TCompassStatusListener const & l);
void RemoveCompassStatusListener(int slotID);
+ int AddOnPositionClickListener(TOnPositionClickListener const & listner);
+ void RemoveOnPositionClickListener(int listnerID);
+
void SetIsCentered(bool flag);
bool IsCentered() const;