2004-03-03 03:20:00 +01:00
|
|
|
/*
|
|
|
|
* Frontend Status Monitor plugin for the Video Disk Recorder
|
|
|
|
*
|
|
|
|
* See the README file for copyright information and how to reach the author.
|
|
|
|
*
|
|
|
|
* $Id$
|
|
|
|
*/
|
|
|
|
|
2004-02-15 03:20:00 +01:00
|
|
|
#ifndef __FEMON_H
|
|
|
|
#define __FEMON_H
|
|
|
|
|
|
|
|
#include <vdr/plugin.h>
|
|
|
|
|
2004-06-06 03:20:00 +02:00
|
|
|
static const char *VERSION = "0.1.2";
|
2004-03-03 03:20:00 +01:00
|
|
|
static const char *DESCRIPTION = "DVB Signal Information Monitor (OSD)";
|
|
|
|
static const char *MAINMENUENTRY = "Signal Information";
|
2004-02-15 03:20:00 +01:00
|
|
|
|
|
|
|
class cPluginFemon : public cPlugin {
|
|
|
|
private:
|
|
|
|
// Add any member variables or functions you may need here.
|
|
|
|
public:
|
|
|
|
cPluginFemon(void);
|
|
|
|
virtual ~cPluginFemon();
|
|
|
|
virtual const char *Version(void) { return VERSION; }
|
|
|
|
virtual const char *Description(void) { return tr(DESCRIPTION); }
|
|
|
|
virtual const char *CommandLineHelp(void);
|
|
|
|
virtual bool ProcessArgs(int argc, char *argv[]);
|
|
|
|
virtual bool Initialize(void);
|
|
|
|
virtual bool Start(void);
|
|
|
|
virtual void Housekeeping(void);
|
|
|
|
virtual const char *MainMenuEntry(void) { return (femonConfig.hidemenu ? NULL : tr(MAINMENUENTRY)); }
|
|
|
|
virtual cOsdObject *MainMenuAction(void);
|
|
|
|
virtual cMenuSetupPage *SetupMenu(void);
|
|
|
|
virtual bool SetupParse(const char *Name, const char *Value);
|
|
|
|
};
|
|
|
|
|
|
|
|
class cMenuFemonSetup : public cMenuSetupPage {
|
2004-03-03 03:20:00 +01:00
|
|
|
private:
|
2004-05-30 03:20:00 +02:00
|
|
|
const char *dispmodes[modeMaxNumber];
|
2004-03-03 03:20:00 +01:00
|
|
|
virtual void Setup(void);
|
2004-02-15 03:20:00 +01:00
|
|
|
protected:
|
2004-03-03 03:20:00 +01:00
|
|
|
virtual eOSState ProcessKey(eKeys Key);
|
2004-02-15 03:20:00 +01:00
|
|
|
virtual void Store(void);
|
2004-03-03 03:20:00 +01:00
|
|
|
public:
|
|
|
|
cMenuFemonSetup(void);
|
|
|
|
};
|
2004-02-15 03:20:00 +01:00
|
|
|
|
|
|
|
#endif //__FEMON_H
|
|
|
|
|