diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2004-10-31 10:22:32 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2004-10-31 10:22:32 +0100 |
commit | 5e731865a6e85e234b6a8daed9c671acaa21e6c1 (patch) | |
tree | 596262807dca06e007ae9673c6f3f4ae18a2066e /timers.h | |
parent | 4f67ade2dcac00d3807df19f18601ee2eb267818 (diff) | |
download | vdr-5e731865a6e85e234b6a8daed9c671acaa21e6c1.tar.gz vdr-5e731865a6e85e234b6a8daed9c671acaa21e6c1.tar.bz2 |
Making sure that timers and channels are only saved together
Diffstat (limited to 'timers.h')
-rw-r--r-- | timers.h | 7 |
1 files changed, 6 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 1.8 2004/10/24 14:40:37 kls Exp $ + * $Id: timers.h 1.9 2004/10/31 10:06:54 kls Exp $ */ #ifndef __TIMERS_H @@ -92,6 +92,7 @@ public: class cTimers : public cConfig<cTimer> { private: + bool modified; int beingEdited; time_t lastSetEvents; public: @@ -103,6 +104,10 @@ public: int BeingEdited(void) { return beingEdited; } 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. void SetEvents(void); }; |