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:
authorLev Dragunov <l.dragunov@corp.mail.ru>2015-07-30 18:59:21 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:58:41 +0300
commit560d35699bf58be4d8c5d1053bfb4a9bd5081d19 (patch)
tree1f48acb46e3f3fbbef465a936f1b4848eb9acb11 /routing/router_delegate.hpp
parent5a50c9c892997a8d318160c307aeabcb7cfa3325 (diff)
Formatting fixes.
Diffstat (limited to 'routing/router_delegate.hpp')
-rw-r--r--routing/router_delegate.hpp34
1 files changed, 18 insertions, 16 deletions
diff --git a/routing/router_delegate.hpp b/routing/router_delegate.hpp
index 2b21a982de..ba82340ed4 100644
--- a/routing/router_delegate.hpp
+++ b/routing/router_delegate.hpp
@@ -9,18 +9,20 @@
namespace routing
{
-
class TimeoutCancellable : public my::Cancellable
{
- public:
- TimeoutCancellable() : m_timeoutSec(0) {}
-
- /// Sets timeout in seconds to autamaticly calcel. 0 is infinity value.
- void SetTimeout(uint32_t);
- bool IsCancelled() const override;
- private:
- my::Timer m_timer;
- uint32_t m_timeoutSec;
+public:
+ TimeoutCancellable() : m_timeoutSec(0) {}
+
+ /// Sets timeout before cancellation. 0 means an infinite timeout.
+ void SetTimeout(uint32_t timeoutSec);
+
+ // Cancellable overrides:
+ bool IsCancelled() const override;
+
+private:
+ my::Timer m_timer;
+ uint32_t m_timeoutSec;
};
class RouterDelegate : public TimeoutCancellable
@@ -32,15 +34,15 @@ public:
RouterDelegate();
/// Set routing progress. Waits current progress status from 0 to 100.
- void OnProgress(float progress) const { m_progressFn(progress); }
- void OnPointCheck(m2::PointD const & point) const { m_pointFn(point); }
+ void OnProgress(float progress) const { m_progressCallback(progress); }
+ void OnPointCheck(m2::PointD const & point) const { m_pointCallback(point); }
- void SetProgressCallback(TProgressCallback const & progressFn);
- void SetPointCheckCallback(TPointCheckCallback const & pointFn);
+ void SetProgressCallback(TProgressCallback const & progressCallback);
+ void SetPointCheckCallback(TPointCheckCallback const & pointCallback);
private:
- TProgressCallback m_progressFn;
- TPointCheckCallback m_pointFn;
+ TProgressCallback m_progressCallback;
+ TPointCheckCallback m_pointCallback;
};
} // nomespace routing