summaryrefslogtreecommitdiff
path: root/status.cpp
diff options
context:
space:
mode:
authorSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-18 18:29:30 +0000
committerSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-01-18 18:29:30 +0000
commit2f936c22b443086d6d621ab37dd9523d8f153f1d (patch)
treecda6945944457d965d5a4a4dc0c5130c41d34a75 /status.cpp
parentb571722150e379925cc55ec7a9f52f1b9f2ad61a (diff)
downloadvdr-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.cpp21
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