summaryrefslogtreecommitdiff
path: root/channelgroups.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-12-23 09:12:19 +0100
committerlouis <louis.braun@gmx.de>2013-12-23 09:12:19 +0100
commitb8754b03ee58576511ea35ac627420c36a88d43b (patch)
treeb45b30f47306f17362e9a7c461e7228509b3f84f /channelgroups.c
parent0a1e7935130518c41a9720e776a93e8520160ede (diff)
downloadvdr-plugin-tvguide-b8754b03ee58576511ea35ac627420c36a88d43b.tar.gz
vdr-plugin-tvguide-b8754b03ee58576511ea35ac627420c36a88d43b.tar.bz2
Added feature to jump to a specific channel with number keys
Diffstat (limited to 'channelgroups.c')
-rw-r--r--channelgroups.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/channelgroups.c b/channelgroups.c
index 5d2d1a9..6767cee 100644
--- a/channelgroups.c
+++ b/channelgroups.c
@@ -130,6 +130,12 @@ void cChannelGroups::CreateGroupGrid(const char *name, int number, int start, in
groupGrids.Add(groupGrid);
}
+int cChannelGroups::GetLastValidChannel(void) {
+ if (channelGroups.size() > 0)
+ return channelGroups[channelGroups.size()-1].StopChannel();
+ return 0;
+}
+
void cChannelGroups::DumpGroups(void) {
for (std::vector<cChannelGroup>::iterator group = channelGroups.begin(); group!=channelGroups.end(); ++group) {
group->Dump();