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.c | |
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.c')
-rw-r--r-- | timers.c | 15 |
1 files changed, 14 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.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) |