vdr-plugin-streamdev/server/streamdev-server.h

57 lines
1.5 KiB
C
Raw Normal View History

2004-12-30 23:43:55 +01:00
/*
2010-12-02 09:57:17 +01:00
* $Id: streamdev-server.h,v 1.2 2010/07/19 13:49:32 schmirl Exp $
2004-12-30 23:43:55 +01:00
*/
#ifndef VDR_STREAMDEVSERVER_H
#define VDR_STREAMDEVSERVER_H
#include "common.h"
#include <vdr/tools.h>
2004-12-30 23:43:55 +01:00
#include <vdr/plugin.h>
class cMainThreadHookSubscriber: public cListObject {
private:
static cList<cMainThreadHookSubscriber> m_Subscribers;
static cMutex m_Mutex;
public:
#if APIVERSNUM >= 20300
static cList<cMainThreadHookSubscriber>& Subscribers(cMutexLock& Lock);
#else
static const cList<cMainThreadHookSubscriber>& Subscribers(cMutexLock& Lock);
#endif
virtual void MainThreadHook() = 0;
cMainThreadHookSubscriber();
virtual ~cMainThreadHookSubscriber();
};
2004-12-30 23:43:55 +01:00
class cPluginStreamdevServer : public cPlugin {
private:
static const char *DESCRIPTION;
bool m_Suspend;
2004-12-30 23:43:55 +01:00
public:
2005-05-09 22:22:29 +02:00
cPluginStreamdevServer(void);
virtual ~cPluginStreamdevServer();
virtual const char *Version(void) { return VERSION; }
virtual const char *Description(void);
virtual const char *CommandLineHelp(void);
virtual bool ProcessArgs(int argc, char *argv[]);
2005-05-09 22:22:29 +02:00
virtual bool Start(void);
virtual void Stop(void);
2006-07-05 22:37:17 +02:00
virtual cString Active(void);
2005-05-09 22:22:29 +02:00
virtual const char *MainMenuEntry(void);
virtual cOsdObject *MainMenuAction(void);
virtual void MainThreadHook(void);
2005-05-09 22:22:29 +02:00
virtual cMenuSetupPage *SetupMenu(void);
virtual bool SetupParse(const char *Name, const char *Value);
virtual const char **SVDRPHelpPages(void);
virtual cString SVDRPCommand(const char *Command, const char *Option, int &ReplyCode);
virtual bool Service(const char *Id, void *Data = NULL);
2004-12-30 23:43:55 +01:00
};
#endif // VDR_STREAMDEVSERVER_H