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:
authorExMix <rahuba.youri@mapswithme.com>2014-09-16 12:58:50 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:27:07 +0300
commit257e9c802e3c039086e5f3eee41a89742ca453fb (patch)
tree2d5ead97aad4f97cc8ee0b93f96e535121469ca3 /map/location_state.hpp
parentf95b30a7af92770bf89d88c882417a7ab557be41 (diff)
[core] routing business logic
Diffstat (limited to 'map/location_state.hpp')
-rw-r--r--map/location_state.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/map/location_state.hpp b/map/location_state.hpp
index 29241d6b4a..cf5ffeaeee 100644
--- a/map/location_state.hpp
+++ b/map/location_state.hpp
@@ -58,7 +58,9 @@ namespace location
bool IsModeChangeViewport() const;
bool IsModeHasPosition() const;
void SwitchToNextMode();
- void RestoreMode();
+
+ void StartRoutingMode();
+ void StopRoutingMode();
int AddStateModeListener(TStateModeListener const & l);
void RemoveStateModeListener(int slotID);
@@ -110,12 +112,16 @@ namespace location
void CachePositionArrow();
void CacheLocationMark();
+ bool HasDirection() const;
+ bool IsInRouting() const;
+
void FollowCompass();
void SetModeInfo(uint16_t modeInfo);
private:
// Mode bits
// {
+ static uint16_t const RoutingSessionBit = 0x40;
static uint16_t const KnownDirectionBit = 0x80;
// }
static uint16_t const s_cacheRadius = 500.0f;