summaryrefslogtreecommitdiff
path: root/status.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2008-02-16 15:04:49 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2008-02-16 15:04:49 +0100
commit6140c49f146455f01897097e0393225382ec1885 (patch)
treed6a3312bfbc62bfa50a9729d19fa06188ed69931 /status.h
parent6b35173789c2d97fc6b9dadb780a22316f82c7fb (diff)
downloadvdr-6140c49f146455f01897097e0393225382ec1885.tar.gz
vdr-6140c49f146455f01897097e0393225382ec1885.tar.bz2
Added cStatus::TimerChange()
Diffstat (limited to 'status.h')
-rw-r--r--status.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/status.h b/status.h
index 1448151a..b6c4d8b4 100644
--- a/status.h
+++ b/status.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: status.h 1.11 2008/02/16 13:50:15 kls Exp $
+ * $Id: status.h 1.12 2008/02/16 15:00:33 kls Exp $
*/
#ifndef __STATUS_H
@@ -15,11 +15,21 @@
#include "player.h"
#include "tools.h"
+enum eTimerChange { tcMod, tcAdd, tcDel };
+
+class cTimer;
+
class cStatus : public cListObject {
private:
static cList<cStatus> statusMonitors;
protected:
// These functions can be implemented by derived classes to receive status information:
+ virtual void TimerChange(const cTimer *Timer, eTimerChange Change) {}
+ // Indicates a change in the timer settings.
+ // If Change is tcAdd or tcDel, Timer points to the timer that has
+ // been added or will be deleted, respectively. In case of tcMod,
+ // Timer is NULL; this indicates that some timer has been changed.
+ // Note that tcAdd and tcDel are always also followed by a tcMod.
virtual void ChannelSwitch(const cDevice *Device, int ChannelNumber) {}
// Indicates a channel switch on the given DVB device.
// If ChannelNumber is 0, this is before the channel is being switched,
@@ -74,6 +84,7 @@ public:
cStatus(void);
virtual ~cStatus();
// These functions are called whenever the related status information changes:
+ static void MsgTimerChange(const cTimer *Timer, eTimerChange Change);
static void MsgChannelSwitch(const cDevice *Device, int ChannelNumber);
static void MsgRecording(const cDevice *Device, const char *Name, const char *FileName, bool On);
static void MsgReplaying(const cControl *Control, const char *Name, const char *FileName, bool On);