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.cpp
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.cpp')
-rw-r--r--platform/video_timer.cpp20
1 files changed, 19 insertions, 1 deletions
diff --git a/platform/video_timer.cpp b/platform/video_timer.cpp
index 288534d04a..8f731f58a3 100644
--- a/platform/video_timer.cpp
+++ b/platform/video_timer.cpp
@@ -1,4 +1,22 @@
#include "video_timer.hpp"
-VideoTimer::VideoTimer(TFrameFn fn) : m_frameFn(fn)
+VideoTimer::VideoTimer(TFrameFn fn) : m_frameFn(fn), m_state(EStopped)
{}
+
+VideoTimer::EState VideoTimer::state() const
+{
+ return m_state;
+}
+
+VideoTimer::~VideoTimer()
+{}
+
+VideoTimer::TFrameFn VideoTimer::frameFn() const
+{
+ return m_frameFn;
+}
+
+void VideoTimer::setFrameFn(TFrameFn fn)
+{
+ m_frameFn = fn;
+}