summaryrefslogtreecommitdiff
path: root/timers.cpp
diff options
context:
space:
mode:
authorSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-03 23:06:10 +0000
committerSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-03 23:06:10 +0000
commit63a15de53d63a48c160addc7793cea5b7b76ab6c (patch)
treeb8c38d211d7f5b030b104b33d70448bc87f67626 /timers.cpp
parentf1de2f0fb307bff494050aa84ff98312688ddfa3 (diff)
downloadvdr-plugin-live-63a15de53d63a48c160addc7793cea5b7b76ab6c.tar.gz
vdr-plugin-live-63a15de53d63a48c160addc7793cea5b7b76ab6c.tar.bz2
- added new Timers class that wraps cTimers functionality
Diffstat (limited to 'timers.cpp')
-rw-r--r--timers.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/timers.cpp b/timers.cpp
new file mode 100644
index 0000000..226a8a4
--- /dev/null
+++ b/timers.cpp
@@ -0,0 +1,18 @@
+#include "timers.h"
+
+static bool operator<( cTimer & left, cTimer & right )
+{
+ return left.Compare( right ) < 0;
+}
+
+namespace vdrlive {
+
+SortedTimers::SortedTimers()
+{
+ for ( cTimer* timer = Timers.First(); timer != 0; timer = Timers.Next( timer ) ) {
+ m_timers.push_back( *timer );
+ }
+ m_timers.sort();
+}
+
+} // namespace vdrlive