summaryrefslogtreecommitdiff
path: root/patches/vdr.epgsearch-exttimeredit.diff
diff options
context:
space:
mode:
authorChristian Wieninger <cwieninger (at) gmx (dot) de>2009-04-11 20:27:30 +0200
committerChristian Wieninger <cwieninger (at) gmx (dot) de>2009-04-11 20:27:30 +0200
commit59407d314666e9c334e8af7d8300dcf0198f60ea (patch)
tree9d0e6b29af4ecfbe258cb6e155241dc639bcaff6 /patches/vdr.epgsearch-exttimeredit.diff
parent38564525ae5eafd180fda5ebc400d5db01df5515 (diff)
downloadvdr-plugin-epgsearch-59407d314666e9c334e8af7d8300dcf0198f60ea.tar.gz
vdr-plugin-epgsearch-59407d314666e9c334e8af7d8300dcf0198f60ea.tar.bz2
new patch to integrate epgsearch's timer edit menu in VDR timer menu
Diffstat (limited to 'patches/vdr.epgsearch-exttimeredit.diff')
-rw-r--r--patches/vdr.epgsearch-exttimeredit.diff26
1 files changed, 26 insertions, 0 deletions
diff --git a/patches/vdr.epgsearch-exttimeredit.diff b/patches/vdr.epgsearch-exttimeredit.diff
new file mode 100644
index 0000000..36e3554
--- /dev/null
+++ b/patches/vdr.epgsearch-exttimeredit.diff
@@ -0,0 +1,26 @@
+--- menu.c.orig 2009-04-11 14:47:08.000000000 +0200
++++ menu.c 2009-04-11 15:13:30.000000000 +0200
+@@ -985,6 +985,23 @@ eOSState cMenuTimers::Edit(void)
+ if (HasSubMenu() || Count() == 0)
+ return osContinue;
+ isyslog("editing timer %s", *CurrentTimer()->ToDescr());
++
++ // Data structure for service "Epgsearch-exttimeredit-v1.0"
++ struct Epgsearch_exttimeredit_v1_0
++ {
++ // in
++ cTimer* timer; // pointer to the timer to edit
++ bool bNew; // flag that indicates, if this is a new timer or an existing one
++ const cEvent* event; // pointer to the event corresponding to this timer (may be NULL)
++ // out
++ cOsdMenu* pTimerMenu; // pointer to the menu of results
++ } exttimeredit;
++ exttimeredit.timer = CurrentTimer();
++ exttimeredit.bNew = false;
++ exttimeredit.event = NULL;
++ if (cPluginManager::CallFirstService("Epgsearch-exttimeredit-v1.0", &exttimeredit))
++ return AddSubMenu(exttimeredit.pTimerMenu);
++
+ return AddSubMenu(new cMenuEditTimer(CurrentTimer()));
+ }
+