diff options
author | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-01-18 18:29:30 +0000 |
---|---|---|
committer | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-01-18 18:29:30 +0000 |
commit | 2f936c22b443086d6d621ab37dd9523d8f153f1d (patch) | |
tree | cda6945944457d965d5a4a4dc0c5130c41d34a75 /status.cpp | |
parent | b571722150e379925cc55ec7a9f52f1b9f2ad61a (diff) | |
download | vdr-plugin-live-2f936c22b443086d6d621ab37dd9523d8f153f1d.tar.gz vdr-plugin-live-2f936c22b443086d6d621ab37dd9523d8f153f1d.tar.bz2 |
- added status monitor to reload timers when a recording starts or stops
Diffstat (limited to 'status.cpp')
-rw-r--r-- | status.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/status.cpp b/status.cpp new file mode 100644 index 0000000..acc60fe --- /dev/null +++ b/status.cpp @@ -0,0 +1,21 @@ +#include "status.h" +#include "timers.h" + +namespace vdrlive { + +StatusMonitor::StatusMonitor() +{ +} + +void StatusMonitor::Recording( cDevice const*, char const*, char const*, bool ) +{ + LiveTimerManager().DoReloadTimers(); +} + +StatusMonitor& LiveStatusMonitor() +{ + static StatusMonitor instance; + return instance; +} + +} // namespace vdrlive |