[mythtv] [PATCH] add "UPCOMING" keybinding to "Watch Recordings"
John Patrick Poet
john at BlueSkyTours.com
Thu Sep 16 23:25:10 EDT 2004
This patch adds the "UPCOMING" keybinding to the "Watch Recordings"
screen. I am not real familiar with this part of the code, so I hope I
implemented it correctly. It seems to work fine for me.
John
-------------- next part --------------
Index: programs/mythfrontend/playbackbox.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/programs/mythfrontend/playbackbox.cpp,v
retrieving revision 1.170
diff -d -u -r1.170 playbackbox.cpp
--- programs/mythfrontend/playbackbox.cpp 6 Sep 2004 19:44:00 -0000 1.170
+++ programs/mythfrontend/playbackbox.cpp 17 Sep 2004 03:18:57 -0000
@@ -22,6 +22,7 @@
using namespace std;
#include "playbackbox.h"
+#include "proglist.h"
#include "tv.h"
#include "oldsettings.h"
#include "NuppelVideoPlayer.h"
@@ -1286,6 +1287,20 @@
expire(curitem);
}
+void PlaybackBox::upcoming()
+{
+ state = kStopping;
+
+ if (!curitem)
+ return;
+
+ ProgLister *pl = new ProgLister(plTitle, curitem->title,
+ QSqlDatabase::database(),
+ gContext->GetMainWindow(), "proglist");
+ pl->exec();
+ delete pl;
+}
+
void PlaybackBox::details()
{
state = kStopping;
@@ -1997,6 +2012,8 @@
showActionsSelected();
else if (action == "DETAILS")
details();
+ else if (action == "UPCOMING")
+ upcoming();
else if (action == "SELECT")
selected();
else if (action == "UP")
Index: programs/mythfrontend/playbackbox.h
===================================================================
RCS file: /var/lib/mythcvs/mythtv/programs/mythfrontend/playbackbox.h,v
retrieving revision 1.57
diff -d -u -r1.57 playbackbox.h
--- programs/mythfrontend/playbackbox.h 23 Jul 2004 01:54:33 -0000 1.57
+++ programs/mythfrontend/playbackbox.h 17 Sep 2004 03:18:59 -0000
@@ -41,6 +41,7 @@
void cursorUp(bool page = false, bool newview = false);
void pageDown() { cursorDown(true); }
void pageUp() { cursorUp(true); }
+ void upcoming();
void details();
void selected();
void playSelected();
Index: programs/mythtv/main.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/programs/mythtv/main.cpp,v
retrieving revision 1.34
diff -d -u -r1.34 main.cpp
--- programs/mythtv/main.cpp 10 Sep 2004 06:31:48 -0000 1.34
+++ programs/mythtv/main.cpp 17 Sep 2004 03:18:59 -0000
@@ -18,9 +18,12 @@
(void)data;
while (true)
{
- if (gContext->hasPrivRequest())
+ gContext->waitPrivRequest();
+
+ for (MythPrivRequest req = gContext->popPrivRequest();
More information about the mythtv-dev
mailing list