diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2004-02-29 14:21:22 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2004-02-29 14:21:22 +0100 |
commit | 198fcf437b46d32beea411313f1dbd4aa200a62b (patch) | |
tree | 7dda9e4e3bb1b7ed3358db5ccf53a8f9ac5bde08 /svdrp.c | |
parent | 4063d727606382e22ce1e0a41d0fab17e88e9f06 (diff) | |
download | vdr-198fcf437b46d32beea411313f1dbd4aa200a62b.tar.gz vdr-198fcf437b46d32beea411313f1dbd4aa200a62b.tar.bz2 |
Implemented VPS controlled timers1.3.5
Diffstat (limited to 'svdrp.c')
-rw-r--r-- | svdrp.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -10,7 +10,7 @@ * and interact with the Video Disk Recorder - or write a full featured * graphical interface that sits on top of an SVDRP connection. * - * $Id: svdrp.c 1.60 2004/02/22 15:31:23 kls Exp $ + * $Id: svdrp.c 1.61 2004/02/24 12:24:43 kls Exp $ */ #include "svdrp.h" @@ -905,16 +905,16 @@ void cSVDRP::CmdMODT(const char *Option) if (timer) { cTimer t = *timer; if (strcasecmp(tail, "ON") == 0) - t.SetActive(taActive); + t.SetFlags(tfActive); else if (strcasecmp(tail, "OFF") == 0) - t.SetActive(taInactive); + t.ClrFlags(tfActive); else if (!t.Parse(tail)) { Reply(501, "Error in timer settings"); return; } *timer = t; Timers.Save(); - isyslog("timer %d modified (%s)", timer->Index() + 1, timer->Active() ? "active" : "inactive"); + isyslog("timer %d modified (%s)", timer->Index() + 1, timer->HasFlags(tfActive) ? "active" : "inactive"); Reply(250, "%d %s", timer->Index() + 1, timer->ToText()); } else |