From 5fde96bf58d2ed8f20f73232b756dae980a8147d Mon Sep 17 00:00:00 2001 From: ExMix Date: Thu, 21 May 2015 13:02:42 +0300 Subject: [drape] my position controller - gps, compass info messages - my position rendering fixes - remove useless code --- platform/location.hpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'platform/location.hpp') diff --git a/platform/location.hpp b/platform/location.hpp index d57dbd083b..ba640a60cb 100644 --- a/platform/location.hpp +++ b/platform/location.hpp @@ -1,5 +1,7 @@ #pragma once +#include "geometry/point2d.hpp" + #include "base/base.hpp" #include "geometry/latlon.hpp" @@ -8,6 +10,7 @@ #include "routing/turns_sound_settings.hpp" #include "std/cmath.hpp" +#include "std/function.hpp" #include "std/string.hpp" #include "std/vector.hpp" @@ -189,4 +192,17 @@ namespace location size_t GetIndexInRoute() const { return m_indexInRoute; } m2::PointD GetPosition() const { return m_matchedPosition; } }; + + // Do not change the order and values + enum EMyPositionMode + { + MODE_UNKNOWN_POSITION = 0x0, + MODE_PENDING_POSITION = 0x1, + MODE_NOT_FOLLOW = 0x2, + MODE_FOLLOW = 0x3, + MODE_ROTATE_AND_FOLLOW = 0x4, + }; + + using TMyPositionModeChanged = function; + } // namespace location -- cgit v1.2.3