summaryrefslogtreecommitdiff
path: root/timers.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-02-20 15:37:01 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2012-02-20 15:37:01 +0100
commitf6cdae50ef85678c06e3bef87a79510a88b956c4 (patch)
tree37359de4977b76ce52555802986484d7301d85ee /timers.c
parent5b2bdf20495b23773123e485878a27b3ea2a01e6 (diff)
downloadvdr-f6cdae50ef85678c06e3bef87a79510a88b956c4.tar.gz
vdr-f6cdae50ef85678c06e3bef87a79510a88b956c4.tar.bz2
Added several cTimer::Set...() functions
Diffstat (limited to 'timers.c')
-rw-r--r--timers.c33
1 files changed, 32 insertions, 1 deletions
diff --git a/timers.c b/timers.c
index 54ed1ba8..686f392e 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 2.5 2011/08/06 13:13:54 kls Exp $
+ * $Id: timers.c 2.6 2012/02/20 15:37:01 kls Exp $
*/
#include "timers.h"
@@ -591,11 +591,42 @@ void cTimer::SetInVpsMargin(bool InVpsMargin)
inVpsMargin = InVpsMargin;
}
+void cTimer::SetDay(time_t Day)
+{
+ day = Day;
+}
+
+void cTimer::SetWeekDays(int WeekDays)
+{
+ weekdays = WeekDays;
+}
+
+void cTimer::SetStart(int Start)
+{
+ start = Start;
+}
+
+void cTimer::SetStop(int Stop)
+{
+ stop = Stop;
+}
+
void cTimer::SetPriority(int Priority)
{
priority = Priority;
}
+void cTimer::SetLifetime(int Lifetime)
+{
+ lifetime = Lifetime;
+}
+
+void cTimer::SetAux(const char *Aux)
+{
+ free(aux);
+ aux = strdup(Aux);
+}
+
void cTimer::SetDeferred(int Seconds)
{
deferred = time(NULL) + Seconds;