diff options
| author | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-01-03 23:06:10 +0000 |
|---|---|---|
| committer | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-01-03 23:06:10 +0000 |
| commit | 63a15de53d63a48c160addc7793cea5b7b76ab6c (patch) | |
| tree | b8c38d211d7f5b030b104b33d70448bc87f67626 /timers.cpp | |
| parent | f1de2f0fb307bff494050aa84ff98312688ddfa3 (diff) | |
| download | vdr-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.cpp | 18 |
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 |
