summaryrefslogtreecommitdiff
path: root/timers.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-01-15 13:44:55 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2006-01-15 13:44:55 +0100
commitcad1a88a7b5826ce2a03f4853a5c204c066a8ec4 (patch)
tree83ae8c952af7783b8189bfe2d01395b5ccdc8f33 /timers.h
parent197b8c27fa486577ea35e9e89d09abd877fd5c70 (diff)
downloadvdr-cad1a88a7b5826ce2a03f4853a5c204c066a8ec4.tar.gz
vdr-cad1a88a7b5826ce2a03f4853a5c204c066a8ec4.tar.bz2
The status markers in the "Schedule" menu are now only updated if a submenu is closed in which a timer has been modified
Diffstat (limited to 'timers.h')
-rw-r--r--timers.h11
1 files changed, 6 insertions, 5 deletions
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<cTimer> {
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);
};