diff options
author | lordjaxom <lordjaxom> | 2004-12-30 22:43:55 +0000 |
---|---|---|
committer | lordjaxom <lordjaxom> | 2004-12-30 22:43:55 +0000 |
commit | 302fa2e67276bd0674e81e2a9a01b9e91dd45d8c (patch) | |
tree | a454884a16e0ffa48b5ce3e4ce1a66eb874a9de0 /streamdev-client.c | |
download | vdr-plugin-streamdev-302fa2e67276bd0674e81e2a9a01b9e91dd45d8c.tar.gz vdr-plugin-streamdev-302fa2e67276bd0674e81e2a9a01b9e91dd45d8c.tar.bz2 |
Initial revision
Diffstat (limited to 'streamdev-client.c')
-rw-r--r-- | streamdev-client.c | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/streamdev-client.c b/streamdev-client.c new file mode 100644 index 0000000..093a166 --- /dev/null +++ b/streamdev-client.c @@ -0,0 +1,57 @@ +/* + * streamdev.c: A plugin for the Video Disk Recorder + * + * See the README file for copyright information and how to reach the author. + * + * $Id: streamdev-client.c,v 1.1 2004/12/30 22:43:59 lordjaxom Exp $ + */ + +#include "streamdev-client.h" +#include "client/device.h" +#include "client/setup.h" +#include "client/menu.h" +#include "i18n.h" + +const char *cPluginStreamdevClient::DESCRIPTION = "VTP Streaming Client"; + +cPluginStreamdevClient::cPluginStreamdevClient(void) { +} + +cPluginStreamdevClient::~cPluginStreamdevClient() { +} + +const char *cPluginStreamdevClient::Description(void) { + return tr(DESCRIPTION); +} + +bool cPluginStreamdevClient::Start(void) { + i18n_name = Name(); + RegisterI18n(Phrases); + + cStreamdevDevice::Init(); + + return true; +} + +void cPluginStreamdevClient::Housekeeping(void) { + if (StreamdevClientSetup.StartClient && StreamdevClientSetup.SyncEPG) + ClientSocket.SynchronizeEPG(); +} + +const char *cPluginStreamdevClient::MainMenuEntry(void) { + return StreamdevClientSetup.StartClient ? tr("Streaming Control") : NULL; +} + +cOsdObject *cPluginStreamdevClient::MainMenuAction(void) { + return StreamdevClientSetup.StartClient ? new cStreamdevMenu : NULL; +} + +cMenuSetupPage *cPluginStreamdevClient::SetupMenu(void) { + return new cStreamdevClientMenuSetupPage; +} + +bool cPluginStreamdevClient::SetupParse(const char *Name, const char *Value) { + return StreamdevClientSetup.SetupParse(Name, Value); +} + +VDRPLUGINCREATOR(cPluginStreamdevClient); // Don't touch this! |