vdr-plugin-streamdev/streamdev-client.c

60 lines
1.5 KiB
C
Raw Normal View History

2004-12-30 23:43:55 +01:00
/*
* streamdev.c: A plugin for the Video Disk Recorder
*
* See the README file for copyright information and how to reach the author.
*
2005-04-24 18:19:14 +02:00
* $Id: streamdev-client.c,v 1.2 2005/04/24 16:19:44 lordjaxom Exp $
2004-12-30 23:43:55 +01:00
*/
#include "streamdev-client.h"
#include "client/device.h"
#include "client/setup.h"
2005-04-24 18:19:14 +02:00
//#include "client/menu.h"
2004-12-30 23:43:55 +01:00
#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) {
2005-04-24 18:19:14 +02:00
return NULL;
//return StreamdevClientSetup.StartClient ? tr("Streaming Control") : NULL;
2004-12-30 23:43:55 +01:00
}
cOsdObject *cPluginStreamdevClient::MainMenuAction(void) {
2005-04-24 18:19:14 +02:00
return NULL;
//return StreamdevClientSetup.StartClient ? new cStreamdevMenu : NULL;
2004-12-30 23:43:55 +01:00
}
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!