From 83fe591f3254a8010e107739256ef0df780b219c Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 8 Dec 2012 11:05:39 +0100 Subject: The new functions SetItemEvent(), SetItemTimer(), SetItemChannel() and SetItemRecording() of the cSkinDisplayMenu class can be reimplemented by skin plugins to display these items in a more elaborate way than just a simple line of text --- timers.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'timers.c') diff --git a/timers.c b/timers.c index a29cf12f..ab8e4778 100644 --- a/timers.c +++ b/timers.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: timers.c 2.14 2012/10/16 08:22:39 kls Exp $ + * $Id: timers.c 2.15 2012/12/07 13:14:00 kls Exp $ */ #include "timers.h" @@ -480,7 +480,7 @@ bool cTimer::Matches(time_t t, bool Directly, int Margin) const #define FULLMATCH 1000 -int cTimer::Matches(const cEvent *Event, int *Overlap) const +eTimerMatch cTimer::Matches(const cEvent *Event, int *Overlap) const { // Overlap is the percentage of the Event's duration that is covered by // this timer (based on FULLMATCH for finer granularity than just 100). @@ -758,12 +758,12 @@ cTimer *cTimers::GetMatch(time_t t) return t0; } -cTimer *cTimers::GetMatch(const cEvent *Event, int *Match) +cTimer *cTimers::GetMatch(const cEvent *Event, eTimerMatch *Match) { cTimer *t = NULL; - int m = tmNone; + eTimerMatch m = tmNone; for (cTimer *ti = First(); ti; ti = Next(ti)) { - int tm = ti->Matches(Event); + eTimerMatch tm = ti->Matches(Event); if (tm > m) { t = ti; m = tm; -- cgit v1.2.3