summaryrefslogtreecommitdiff
path: root/menu_conflictcheck.c
diff options
context:
space:
mode:
authorJohann Friedrichs <johann.friedrichs@web.de>2017-07-11 08:35:04 +0200
committerFrank Neumann <fnu@yavdr.org>2017-07-11 08:35:04 +0200
commit04124ba1ebae36f15eafe95cd23bbb8e220a8e8a (patch)
tree2cfe1873c29382ed79feaf49eb81a3897ae12860 /menu_conflictcheck.c
parentceb158e1bd9df3cc0c6f9243856faac6f735ffb8 (diff)
downloadvdr-plugin-epgsearch-04124ba1ebae36f15eafe95cd23bbb8e220a8e8a.tar.gz
vdr-plugin-epgsearch-04124ba1ebae36f15eafe95cd23bbb8e220a8e8a.tar.bz2
Add conflict check for remote timers.
Diffstat (limited to 'menu_conflictcheck.c')
-rw-r--r--menu_conflictcheck.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/menu_conflictcheck.c b/menu_conflictcheck.c
index 4450f25..88d1a0e 100644
--- a/menu_conflictcheck.c
+++ b/menu_conflictcheck.c
@@ -182,9 +182,15 @@ bool cMenuConflictCheckDetailsItem::Update(bool Force)
if (!timerObj->conflCheckTime && timerObj->device > -1)
sprintf(device, "%d", timerObj->device+1);
else
- strcpy(device, tr("C"));
+ {
+ if (timer->Local())
+ strcpy(device, tr("C"));
+ else
+ strcpy(device, "R"); //Remote Timer
+ }
}
+// cString buffer = cString::sprintf("%s\t%s\t%d\t%s - %s\t%d\t%s\t%s", hasTimer?">":"", timer->Remote()?timer->Remote():"", timer->Channel()->Number(), TIMESTRING(timerObj->start), TIMESTRING(timerObj->stop), timer->Priority(), device, timer->File());
cString buffer = cString::sprintf("%s\t%d\t%s - %s\t%d\t%s\t%s", hasTimer?">":"", timer->Channel()->Number(), TIMESTRING(timerObj->start), TIMESTRING(timerObj->stop), timer->Priority(), device, timer->File());
SetText(buffer);
@@ -300,6 +306,11 @@ eOSState cMenuConflictCheckDetails::DeleteTimer(cConflictCheckTimerObj* TimerObj
else
return osContinue;
}
+ if (!HandleRemoteTimerModifications(NULL,timer))
+ {
+ LogFile.Log(2,"HandleRemoteTimerModifications failed");
+ return osContinue;
+ }
LogFile.iSysLog("deleting timer %s", *timer->ToDescr());
Timers->Del(timer);
cOsdMenu::Del(Current());