summaryrefslogtreecommitdiff
path: root/timers.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-10-31 10:22:32 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2004-10-31 10:22:32 +0100
commit5e731865a6e85e234b6a8daed9c671acaa21e6c1 (patch)
tree596262807dca06e007ae9673c6f3f4ae18a2066e /timers.c
parent4f67ade2dcac00d3807df19f18601ee2eb267818 (diff)
downloadvdr-5e731865a6e85e234b6a8daed9c671acaa21e6c1.tar.gz
vdr-5e731865a6e85e234b6a8daed9c671acaa21e6c1.tar.bz2
Making sure that timers and channels are only saved together
Diffstat (limited to 'timers.c')
-rw-r--r--timers.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/timers.c b/timers.c
index 4c4ba213..20391d3a 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 1.14 2004/10/24 14:56:55 kls Exp $
+ * $Id: timers.c 1.15 2004/10/31 10:07:43 kls Exp $
*/
#include "timers.h"
@@ -458,6 +458,7 @@ cTimers Timers;
cTimers::cTimers(void)
{
+ modified = false;
beingEdited = 0;;
lastSetEvents = 0;
}
@@ -511,6 +512,18 @@ cTimer *cTimers::GetNextActiveTimer(void)
return t0;
}
+void cTimers::SetModified(void)
+{
+ modified = true;
+}
+
+bool cTimers::Modified(void)
+{
+ bool Result = modified;
+ modified = false;
+ return Result;
+}
+
void cTimers::SetEvents(void)
{
if (time(NULL) - lastSetEvents < 5)