diff options
author | schmirl <schmirl> | 2008-04-07 14:40:39 +0000 |
---|---|---|
committer | schmirl <schmirl> | 2008-04-07 14:40:39 +0000 |
commit | 89735cbd95ea82c309be3c2faf939d03cc8aa6eb (patch) | |
tree | 392a83f4d24bc84eda8b08624688877cc378ff1a /streamdev-client.c | |
parent | f51d6eb2dfb128a29db34b05d9b92a9633dd5b29 (diff) | |
download | vdr-plugin-streamdev-89735cbd95ea82c309be3c2faf939d03cc8aa6eb.tar.gz vdr-plugin-streamdev-89735cbd95ea82c309be3c2faf939d03cc8aa6eb.tar.bz2 |
- resurrected clients "Suspend Server" menu item as its mainmenu entry
- dropped unused code for remote timers/recordings on client side
- dropped unused files client/{assembler,menu,remote}.[hc]
- dropped unused files in libdvbmpeg (reported by tobi)
Diffstat (limited to 'streamdev-client.c')
-rw-r--r-- | streamdev-client.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/streamdev-client.c b/streamdev-client.c index 7d4034a..1f03733 100644 --- a/streamdev-client.c +++ b/streamdev-client.c @@ -3,13 +3,12 @@ * * See the README file for copyright information and how to reach the author. * - * $Id: streamdev-client.c,v 1.3 2008/04/07 14:27:27 schmirl Exp $ + * $Id: streamdev-client.c,v 1.4 2008/04/07 14:40:39 schmirl Exp $ */ #include "streamdev-client.h" #include "client/device.h" #include "client/setup.h" -//#include "client/menu.h" #include "i18n.h" #if VDRVERSNUM < 10400 @@ -43,13 +42,15 @@ void cPluginStreamdevClient::Housekeeping(void) { } const char *cPluginStreamdevClient::MainMenuEntry(void) { - return NULL; - //return StreamdevClientSetup.StartClient ? tr("Streaming Control") : NULL; + return StreamdevClientSetup.StartClient ? tr("Suspend Server") : NULL; } cOsdObject *cPluginStreamdevClient::MainMenuAction(void) { + if (ClientSocket.SuspendServer()) + Skins.Message(mtInfo, tr("Server is suspended")); + else + Skins.Message(mtError, tr("Couldn't suspend Server!")); return NULL; - //return StreamdevClientSetup.StartClient ? new cStreamdevMenu : NULL; } cMenuSetupPage *cPluginStreamdevClient::SetupMenu(void) { |