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:
authorrachytski <siarhei.rachytski@gmail.com>2011-10-24 20:15:40 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:26:38 +0300
commit943d893105e3e76839be98529994414c4b0b01a0 (patch)
treec9a0dd11971b9bd300323d8b01b6fd11f03ed473 /platform/video_timer.hpp
parent9906d541f6b2279b550d05ec6e5a6422c5e7ccf6 (diff)
using VideoTimer in Desktop and iOS version. stopping it, when the pause is longer than 60 cycles. refactored WindowHandle. implemented QtVideoTimer. closes #356
Diffstat (limited to 'platform/video_timer.hpp')
-rw-r--r--platform/video_timer.hpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/platform/video_timer.hpp b/platform/video_timer.hpp
index d19cf14d13..dc286df6f2 100644
--- a/platform/video_timer.hpp
+++ b/platform/video_timer.hpp
@@ -9,13 +9,29 @@ public:
typedef function<void()> TFrameFn;
+ enum EState
+ {
+ EStopped,
+ EPaused,
+ ERunning
+ };
+
protected:
TFrameFn m_frameFn;
+ EState m_state;
public:
VideoTimer(TFrameFn fn);
- virtual ~VideoTimer() {}
+ virtual ~VideoTimer();
+
+ TFrameFn frameFn() const;
+ void setFrameFn(TFrameFn fn);
+
+ EState state() const;
+
+ virtual void resume() = 0;
+ virtual void pause() = 0;
virtual void start() = 0;
virtual void stop() = 0;