summaryrefslogtreecommitdiff
path: root/streamdev-client.c
diff options
context:
space:
mode:
authorFrank Schmirler <vdr@schmirler.de>2010-12-02 09:48:23 +0100
committerFrank Schmirler <vdr@schmirler.de>2010-12-02 09:48:23 +0100
commit11b22d9f33d50f20cba1eaee2aadb55d3580d879 (patch)
tree5c4e7fe1046bd9cc1ef7a7b21abe118f43689902 /streamdev-client.c
parent435f01649c2ee8c23c21e0680d0a39e773008549 (diff)
downloadvdr-plugin-streamdev-11b22d9f33d50f20cba1eaee2aadb55d3580d879.tar.gz
vdr-plugin-streamdev-11b22d9f33d50f20cba1eaee2aadb55d3580d879.tar.bz2
Streamdev 0.5.0-rc1
Diffstat (limited to 'streamdev-client.c')
-rw-r--r--streamdev-client.c60
1 files changed, 0 insertions, 60 deletions
diff --git a/streamdev-client.c b/streamdev-client.c
deleted file mode 100644
index bc9403c..0000000
--- a/streamdev-client.c
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * 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.6 2008/04/08 14:18:15 schmirl Exp $
- */
-
-#include "streamdev-client.h"
-#include "client/device.h"
-#include "client/setup.h"
-
-#if !defined(APIVERSNUM) || APIVERSNUM < 10509
-#error "VDR-1.5.9 API version or greater is required!"
-#endif
-
-const char *cPluginStreamdevClient::DESCRIPTION = trNOOP("VTP Streaming Client");
-
-cPluginStreamdevClient::cPluginStreamdevClient(void) {
-}
-
-cPluginStreamdevClient::~cPluginStreamdevClient() {
-}
-
-const char *cPluginStreamdevClient::Description(void) {
- return tr(DESCRIPTION);
-}
-
-bool cPluginStreamdevClient::Start(void) {
- I18nRegister(PLUGIN_NAME_I18N);
- cStreamdevDevice::Init();
- return true;
-}
-
-void cPluginStreamdevClient::Housekeeping(void) {
- if (StreamdevClientSetup.StartClient && StreamdevClientSetup.SyncEPG)
- ClientSocket.SynchronizeEPG();
-}
-
-const char *cPluginStreamdevClient::MainMenuEntry(void) {
- return StreamdevClientSetup.StartClient && !StreamdevClientSetup.HideMenuEntry ? 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;
-}
-
-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!