diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2006-02-28 14:00:28 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2006-02-28 14:00:28 +0100 |
commit | 457f5dd14c426c7324a7987c4bcd7f9b2b641b6d (patch) | |
tree | 6f2d2d38abfdc9474aa3eb01fc4bb1bc6f0e4d56 /channels.c | |
parent | 9887c0765bb2e2653dfc0325e8b6784084787102 (diff) | |
download | vdr-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.c | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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; |