diff options
author | lado <herrlado@gmail.com> | 2011-10-12 12:17:08 +0200 |
---|---|---|
committer | lado <herrlado@gmail.com> | 2011-10-12 12:17:08 +0200 |
commit | 156b8affee2f631c64b479cef3eb850242c51b6b (patch) | |
tree | 4bf6a5a175bf69e16a9d2be6192aed7e3b08814b /vdr-vdrmanager | |
parent | 51e4e45b5a1f30e4e01b29c5e353c24d82da04f8 (diff) | |
download | vdr-manager-156b8affee2f631c64b479cef3eb850242c51b6b.tar.gz vdr-manager-156b8affee2f631c64b479cef3eb850242c51b6b.tar.bz2 |
recorindg info implemented
Diffstat (limited to 'vdr-vdrmanager')
-rw-r--r-- | vdr-vdrmanager/helpers.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/vdr-vdrmanager/helpers.cpp b/vdr-vdrmanager/helpers.cpp index 1095507..050bdf6 100644 --- a/vdr-vdrmanager/helpers.cpp +++ b/vdr-vdrmanager/helpers.cpp @@ -1,3 +1,4 @@ + /* * event und message handler */ @@ -192,7 +193,6 @@ string cHelpers::SetTimerIntern(string args) { return "!ERROR\r\n"; } - Timers.IncBeingEdited(); if (!number) { // new timer Timers.Add(timer); @@ -201,7 +201,6 @@ string cHelpers::SetTimerIntern(string args) { delete timer; cTimer * oldTimer = Timers.Get(number); if (!oldTimer) { - Timers.DecBeingEdited(); return "!ERROR\r\n"; } if (delTimer) { @@ -210,8 +209,7 @@ string cHelpers::SetTimerIntern(string args) { oldTimer->Parse(params.c_str()); } } - Timers.SetModified(); - Timers.DecBeingEdited(); + Timers.Save(); return "START\r\nEND\r\n"; } @@ -279,12 +277,16 @@ string cHelpers::ToText(cRecording * recording){ string result = ""; time_t startTime = event->StartTime(); - //time_t stopTime = event->EndTime(); - + time_t endTime = event->EndTime(); + sprintf(buf, "%lu", startTime); result += buf; result += ":"; - sprintf(buf, "%d", event->Duration() ? event->Duration : 0); + sprintf(buf, "%lu", endTime); + result += buf; + result += ":"; + sprintf(buf, "%d", DirSizeMB(recording->FileName())); + result += buf; result += ":"; result += info -> ChannelName(); result += ":"; |