/* * targavfd plugin for VDR (C++) * * (C) 2010 Andreas Brachold * * This targavfd plugin is free software: you can redistribute it and/or * modify it under the terms of the GNU General Public License as published * by the Free Software Foundation, version 3 of the License. * * See the files README and COPYING for details. * */ #ifndef __TARGAVFD_H___ #define __TARGAVFD_H___ #include #include "vfd.h" #include "watch.h" #include "status.h" class cPluginTargaVFD : public cPlugin { private: cVFDStatusMonitor *statusMonitor; cVFDWatch m_dev; bool m_bSuspend; char* m_szIconHelpPage; protected: bool resume(); bool suspend(); const char* SVDRPCommandOn(const char *Option, int &ReplyCode); const char* SVDRPCommandOff(const char *Option, int &ReplyCode); const char* SVDRPCommandIcon(const char *Option, int &ReplyCode); public: cPluginTargaVFD(void); virtual ~cPluginTargaVFD(); virtual const char *Version(void); virtual const char *Description(void); virtual const char *CommandLineHelp(void); virtual bool ProcessArgs(int argc, char *argv[]); virtual bool Initialize(void); virtual bool Start(void); virtual void Stop(void); virtual void Housekeeping(void); virtual void MainThreadHook(void); virtual cString Active(void); virtual time_t WakeupTime(void); virtual const char *MainMenuEntry(void) { return NULL; } virtual cOsdObject *MainMenuAction(void); virtual cMenuSetupPage *SetupMenu(void); virtual bool SetupParse(const char *Name, const char *Value); virtual bool Service(const char *Id, void *Data = NULL); virtual const char **SVDRPHelpPages(void); virtual cString SVDRPCommand(const char *Command, const char *Option, int &ReplyCode); }; #endif