summaryrefslogtreecommitdiff
path: root/epg.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-06-02 14:10:37 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2012-06-02 14:10:37 +0200
commitad5ef06857105b60c82f78f4985429d5fd502067 (patch)
tree3b47f0c37c00e8fc6534ce06f736b0ec27101c3b /epg.c
parent78e11d8c6feab964586e11e9396b3b868c086343 (diff)
downloadvdr-ad5ef06857105b60c82f78f4985429d5fd502067.tar.gz
vdr-ad5ef06857105b60c82f78f4985429d5fd502067.tar.bz2
Added DeleteEvent() to the EPG handler interface, so that an EPG handler can trigger deleting of an event
Diffstat (limited to 'epg.c')
-rw-r--r--epg.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/epg.c b/epg.c
index 51582e8f..8e2af140 100644
--- a/epg.c
+++ b/epg.c
@@ -7,7 +7,7 @@
* Original version (as used in VDR before 1.3.0) written by
* Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>.
*
- * $Id: epg.c 2.13 2012/05/13 13:46:56 kls Exp $
+ * $Id: epg.c 2.14 2012/06/02 14:08:12 kls Exp $
*/
#include "epg.h"
@@ -1429,6 +1429,15 @@ void cEpgHandlers::HandleEvent(cEvent *Event)
}
}
+bool cEpgHandlers::DeleteEvent(const cEvent *Event)
+{
+ for (cEpgHandler *eh = First(); eh; eh = Next(eh)) {
+ if (eh->DeleteEvent(Event))
+ return true;
+ }
+ return false;
+}
+
void cEpgHandlers::SortSchedule(cSchedule *Schedule)
{
for (cEpgHandler *eh = First(); eh; eh = Next(eh)) {