From cad1a88a7b5826ce2a03f4853a5c204c066a8ec4 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 15 Jan 2006 13:44:55 +0100 Subject: The status markers in the "Schedule" menu are now only updated if a submenu is closed in which a timer has been modified --- timers.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'timers.h') diff --git a/timers.h b/timers.h index 4ad28bb4..73b951d1 100644 --- a/timers.h +++ b/timers.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: timers.h 1.23 2006/01/06 14:13:17 kls Exp $ + * $Id: timers.h 1.24 2006/01/15 13:29:44 kls Exp $ */ #ifndef __TIMERS_H @@ -96,7 +96,7 @@ public: class cTimers : public cConfig { private: - bool modified; + int state; int beingEdited; time_t lastSetEvents; public: @@ -109,9 +109,10 @@ public: void IncBeingEdited(void) { beingEdited++; } void DecBeingEdited(void) { if (!--beingEdited) lastSetEvents = 0; } void SetModified(void); - bool Modified(void); - ///< Returns true if any of the timers have been modified. - ///< Calling this function resets the 'modified' flag to false. + bool Modified(int &State); + ///< Returns true if any of the timers have been modified, which + ///< is detected by State being different than the internal state. + ///< Upon return the internal state will be stored in State. void SetEvents(void); void DeleteExpired(void); }; -- cgit v1.2.3