diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2021-04-10 10:09:50 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2021-04-10 10:09:50 +0200 |
commit | 0003d6391cbf3c16daca4cd6a45632bb619342d6 (patch) | |
tree | fed2cb559f06eea7001feca43e207597589ea93c /timers.h | |
parent | 4e52547a59c14f619b053e2731a413221d65647f (diff) | |
download | vdr-0003d6391cbf3c16daca4cd6a45632bb619342d6.tar.gz vdr-0003d6391cbf3c16daca4cd6a45632bb619342d6.tar.bz2 |
When spawning pattern timers, the new function cTimers::GetTimerForEvent() is now used to check whether a matching event already has a local timer
Diffstat (limited to 'timers.h')
-rw-r--r-- | timers.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: timers.h 5.4 2021/04/06 08:48:35 kls Exp $ + * $Id: timers.h 5.5 2021/04/10 10:09:50 kls Exp $ */ #ifndef __TIMERS_H @@ -192,6 +192,7 @@ public: cTimer *GetMatch(time_t t) { return const_cast<cTimer *>(static_cast<const cTimers *>(this)->GetMatch(t)); }; const cTimer *GetMatch(const cEvent *Event, eTimerMatch *Match = NULL) const; cTimer *GetMatch(const cEvent *Event, eTimerMatch *Match = NULL) { return const_cast<cTimer *>(static_cast<const cTimers *>(this)->GetMatch(Event, Match)); } + const cTimer *GetTimerForEvent(const cEvent *Event, eTimerFlags Flags = tfNone); int GetMaxPriority(void) const; ///< Returns the maximum priority of all local timers that are currently recording. ///< If there is no local timer currently recording, -1 is returned. |