diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-06-02 14:10:37 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-06-02 14:10:37 +0200 |
commit | ad5ef06857105b60c82f78f4985429d5fd502067 (patch) | |
tree | 3b47f0c37c00e8fc6534ce06f736b0ec27101c3b /epg.c | |
parent | 78e11d8c6feab964586e11e9396b3b868c086343 (diff) | |
download | vdr-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.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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)) { |