summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-02-28 14:00:28 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2006-02-28 14:00:28 +0100
commit457f5dd14c426c7324a7987c4bcd7f9b2b641b6d (patch)
tree6f2d2d38abfdc9474aa3eb01fc4bb1bc6f0e4d56 /channels.c
parent9887c0765bb2e2653dfc0325e8b6784084787102 (diff)
downloadvdr-457f5dd14c426c7324a7987c4bcd7f9b2b641b6d.tar.gz
vdr-457f5dd14c426c7324a7987c4bcd7f9b2b641b6d.tar.bz2
The status changes of EPG events are now logged for all channels that have timers
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/channels.c b/channels.c
index bf1230bd..c4000616 100644
--- a/channels.c
+++ b/channels.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: channels.c 1.48 2006/01/14 15:51:02 kls Exp $
+ * $Id: channels.c 1.49 2006/02/28 13:54:34 kls Exp $
*/
#include "channels.h"
@@ -12,6 +12,7 @@
#include <ctype.h>
#include "device.h"
#include "epg.h"
+#include "timers.h"
// IMPORTANT NOTE: in the 'sscanf()' calls there is a blank after the '%d'
// format characters in order to allow any number of blanks after a numeric
@@ -248,6 +249,15 @@ int cChannel::Transponder(void) const
return tf;
}
+bool cChannel::HasTimer(void) const
+{
+ for (cTimer *Timer = Timers.First(); Timer; Timer = Timers.Next(Timer)) {
+ if (Timer->Channel() == this)
+ return true;
+ }
+ return false;
+}
+
int cChannel::Modification(int Mask)
{
int Result = modification & Mask;