summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CONTRIBUTORS1
-rw-r--r--HISTORY1
-rw-r--r--timers.c33
-rw-r--r--timers.h8
4 files changed, 41 insertions, 2 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index e218203e..e6739dee 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -2078,6 +2078,7 @@ Alexander Rieger <Alexander.Rieger@inka.de>
for making the list of tracks given in cStatus::SetAudioTrack() NULL terminated
for fixing handling kLeft in the calls to cStatus::MsgOsdTextItem()
for fixing a possible integer overflow in GetAbsTime()
+ for suggesting to add several cTimer::Set...() functions
Philip Prindeville <philipp_subx@redfish-solutions.com>
for updates to 'sources.conf'
diff --git a/HISTORY b/HISTORY
index 8e2ea8b9..39846b1d 100644
--- a/HISTORY
+++ b/HISTORY
@@ -6897,3 +6897,4 @@ Video Disk Recorder Revision History
to better suit wide fonts (reported by Rudi Hofer).
- Fixed getting the subsystem ids of DVB devices in case they have been rearranged
via udev rules.
+- Added several cTimer::Set...() functions (suggested by Alexander Rieger).
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;
diff --git a/timers.h b/timers.h
index 1d733ee0..778ed970 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 2.1 2011/08/06 12:59:32 kls Exp $
+ * $Id: timers.h 2.2 2012/02/20 15:24:28 kls Exp $
*/
#ifndef __TIMERS_H
@@ -86,7 +86,13 @@ public:
void SetRecording(bool Recording);
void SetPending(bool Pending);
void SetInVpsMargin(bool InVpsMargin);
+ void SetDay(time_t Day);
+ void SetWeekDays(int WeekDays);
+ void SetStart(int Start);
+ void SetStop(int Stop);
void SetPriority(int Priority);
+ void SetLifetime(int Lifetime);
+ void SetAux(const char *Aux);
void SetDeferred(int Seconds);
void SetFlags(uint Flags);
void ClrFlags(uint Flags);