18 #define VDRPLUGINCREATOR(PluginClass) extern "C" void *VDRPluginCreator(void) { return new PluginClass; } 35 virtual const char *
Version(
void) = 0;
41 virtual bool Start(
void);
42 virtual void Stop(
void);
53 void SetupStore(
const char *Name,
const char *Value = NULL);
56 virtual bool Service(
const char *Id,
void *Data = NULL);
75 cDll(
const char *FileName,
const char *Args);
77 bool Load(
bool Log =
false);
93 void SetDirectory(
const char *Directory);
94 void AddPlugin(
const char *Args);
95 bool LoadPlugins(
bool Log =
false);
96 bool InitializePlugins(
void);
97 bool StartPlugins(
void);
100 static bool Active(
const char *Prompt = NULL);
101 static cPlugin *GetNextWakeupPlugin(
void);
102 static bool HasPlugins(
void);
103 static cPlugin *GetPlugin(
int Index);
105 static cPlugin *CallFirstService(
const char *Id,
void *Data = NULL);
106 static bool CallAllServices(
const char *Id,
void *Data = NULL);
107 void StopPlugins(
void);
108 void Shutdown(
bool Log =
false);
virtual cString SVDRPCommand(const char *Command, const char *Option, int &ReplyCode)
static const char * ResourceDirectory(const char *PluginName=NULL)
friend class cPluginManager
virtual cString Active(void)
virtual const char ** SVDRPHelpPages(void)
virtual const char * Version(void)=0
void SetupStore(const char *Name, const char *Value=NULL)
virtual cOsdObject * MainMenuAction(void)
virtual bool ProcessArgs(int argc, char *argv[])
static const char * ConfigDirectory(const char *PluginName=NULL)
static cString resourceDirectory
static const char * CacheDirectory(const char *PluginName=NULL)
virtual const char * Description(void)=0
virtual const char * CommandLineHelp(void)
virtual void MainThreadHook(void)
static cString configDirectory
virtual bool SetupParse(const char *Name, const char *Value)
void SetName(const char *s)
virtual cMenuSetupPage * SetupMenu(void)
virtual void Housekeeping(void)
virtual bool Initialize(void)
static cPluginManager * pluginManager
virtual const char * MainMenuEntry(void)
static void SetCacheDirectory(const char *Dir)
static cString cacheDirectory
virtual time_t WakeupTime(void)
static void SetResourceDirectory(const char *Dir)
static void SetConfigDirectory(const char *Dir)
virtual bool Service(const char *Id, void *Data=NULL)