2004-03-03 03:20:00 +01:00
|
|
|
/*
|
2015-03-07 21:32:58 +01:00
|
|
|
* config.h: Frontend Status Monitor plugin for the Video Disk Recorder
|
2004-03-03 03:20:00 +01:00
|
|
|
*
|
|
|
|
* See the README file for copyright information and how to reach the author.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2015-03-07 21:32:58 +01:00
|
|
|
#ifndef __FEMON_CONFIG_H
|
|
|
|
#define __FEMON_CONFIG_H
|
2004-02-15 03:20:00 +01:00
|
|
|
|
2006-09-17 03:20:00 +02:00
|
|
|
#define MaxSvdrpIp 15 // xxx.xxx.xxx.xxx
|
|
|
|
|
2005-02-24 03:20:00 +01:00
|
|
|
enum eFemonModes
|
|
|
|
{
|
|
|
|
eFemonModeBasic,
|
|
|
|
eFemonModeTransponder,
|
|
|
|
eFemonModeStream,
|
|
|
|
eFemonModeAC3,
|
|
|
|
eFemonModeMaxNumber
|
|
|
|
};
|
2004-05-30 03:20:00 +02:00
|
|
|
|
2015-03-07 20:37:46 +01:00
|
|
|
class cFemonConfig
|
2004-02-15 03:20:00 +01:00
|
|
|
{
|
2015-03-07 20:37:46 +01:00
|
|
|
private:
|
|
|
|
unsigned int traceModeM;
|
|
|
|
int hideMenuM;
|
|
|
|
int displayModeM;
|
|
|
|
int skinM;
|
|
|
|
int themeM;
|
|
|
|
int positionM;
|
|
|
|
int downscaleM;
|
|
|
|
int redLimitM;
|
|
|
|
int greenLimitM;
|
|
|
|
int updateIntervalM;
|
|
|
|
int analyzeStreamM;
|
|
|
|
int calcIntervalM;
|
|
|
|
int useSvdrpM;
|
|
|
|
int svdrpPortM;
|
|
|
|
char svdrpIpM[MaxSvdrpIp + 1]; // must end with additional null
|
|
|
|
|
2004-02-15 03:20:00 +01:00
|
|
|
public:
|
2015-03-07 20:37:46 +01:00
|
|
|
enum eTraceMode {
|
|
|
|
eTraceModeNormal = 0x0000,
|
|
|
|
eTraceModeDebug1 = 0x0001,
|
|
|
|
eTraceModeDebug2 = 0x0002,
|
|
|
|
eTraceModeDebug3 = 0x0004,
|
|
|
|
eTraceModeDebug4 = 0x0008,
|
|
|
|
eTraceModeDebug5 = 0x0010,
|
|
|
|
eTraceModeDebug6 = 0x0020,
|
|
|
|
eTraceModeDebug7 = 0x0040,
|
|
|
|
eTraceModeDebug8 = 0x0080,
|
|
|
|
eTraceModeDebug9 = 0x0100,
|
|
|
|
eTraceModeDebug10 = 0x0200,
|
|
|
|
eTraceModeDebug11 = 0x0400,
|
|
|
|
eTraceModeDebug12 = 0x0800,
|
|
|
|
eTraceModeDebug13 = 0x1000,
|
|
|
|
eTraceModeDebug14 = 0x2000,
|
|
|
|
eTraceModeDebug15 = 0x4000,
|
|
|
|
eTraceModeDebug16 = 0x8000,
|
|
|
|
eTraceModeMask = 0xFFFF
|
|
|
|
};
|
|
|
|
cFemonConfig();
|
|
|
|
unsigned int GetTraceMode(void) const { return traceModeM; }
|
|
|
|
bool IsTraceMode(eTraceMode modeP) const { return (traceModeM & modeP); }
|
|
|
|
int GetHideMenu(void) const { return hideMenuM; }
|
|
|
|
int GetDisplayMode(void) const { return displayModeM; }
|
|
|
|
int GetSkin(void) const { return skinM; }
|
|
|
|
int GetTheme(void) const { return themeM; }
|
|
|
|
int GetPosition(void) const { return positionM; }
|
|
|
|
int GetDownscale(void) const { return downscaleM; }
|
|
|
|
int GetRedLimit(void) const { return redLimitM; }
|
|
|
|
int GetGreenLimit(void) const { return greenLimitM; }
|
|
|
|
int GetUpdateInterval(void) const { return updateIntervalM; }
|
|
|
|
int GetAnalyzeStream(void) const { return analyzeStreamM; }
|
|
|
|
int GetCalcInterval(void) const { return calcIntervalM; }
|
|
|
|
int GetUseSvdrp(void) const { return useSvdrpM; }
|
|
|
|
int GetSvdrpPort(void) const { return svdrpPortM; }
|
|
|
|
const char *GetSvdrpIp(void) const { return svdrpIpM; }
|
|
|
|
|
|
|
|
void SetTraceMode(unsigned int modeP) { traceModeM = (modeP & eTraceModeMask); }
|
|
|
|
void SetHideMenu(int hideMenuP) { hideMenuM = hideMenuP; }
|
|
|
|
void SetDisplayMode(int displayModeP) { if (displayModeM < 0 || displayModeM >= eFemonModeMaxNumber) displayModeM = 0; else displayModeM = displayModeP; }
|
|
|
|
void SetSkin(int skinP) { skinM = skinP; }
|
|
|
|
void SetTheme(int themeP) { themeM = themeP; }
|
|
|
|
void SetPosition(int positionP) { positionM = positionP; }
|
|
|
|
void SetDownscale(int downscaleP) { downscaleM = downscaleP; }
|
|
|
|
void SetRedLimit(int redLimitP) { redLimitM = redLimitP; }
|
|
|
|
void SetGreenLimit(int greenLimitP) { greenLimitM = greenLimitP; }
|
|
|
|
void SetUpdateInterval(int updateIntervalP) { updateIntervalM = updateIntervalP; }
|
|
|
|
void SetAnalyzeStream(int analyzeStreamP) { analyzeStreamM = analyzeStreamP; }
|
|
|
|
void SetCalcInterval(int calcIntervalP) { calcIntervalM = calcIntervalP; }
|
|
|
|
void SetUseSvdrp(int useSvdrpP) { useSvdrpM = useSvdrpP; }
|
|
|
|
void SetSvdrpPort(int svdrpPortP) { svdrpPortM = svdrpPortP; }
|
|
|
|
void SetSvdrpIp(const char *strP);
|
2004-02-15 03:20:00 +01:00
|
|
|
};
|
|
|
|
|
2015-03-07 17:22:02 +01:00
|
|
|
extern cFemonConfig FemonConfig;
|
2004-02-15 03:20:00 +01:00
|
|
|
|
2005-10-04 03:20:00 +02:00
|
|
|
enum eFemonSkins
|
|
|
|
{
|
|
|
|
eFemonSkinClassic,
|
|
|
|
eFemonSkinElchi,
|
|
|
|
eFemonSkinMaxNumber
|
|
|
|
};
|
|
|
|
|
2005-02-24 03:20:00 +01:00
|
|
|
enum eFemonThemes
|
|
|
|
{
|
|
|
|
eFemonThemeClassic,
|
|
|
|
eFemonThemeElchi,
|
2008-03-27 03:20:00 +01:00
|
|
|
eFemonThemeSTTNG,
|
2005-02-24 03:20:00 +01:00
|
|
|
eFemonThemeDeepBlue,
|
2005-04-01 03:20:00 +02:00
|
|
|
eFemonThemeMoronimo,
|
2005-10-04 03:20:00 +02:00
|
|
|
eFemonThemeEnigma,
|
|
|
|
eFemonThemeEgalsTry,
|
2005-11-13 03:20:00 +01:00
|
|
|
eFemonThemeDuotone,
|
2006-02-06 03:20:00 +01:00
|
|
|
eFemonThemeSilverGreen,
|
2012-03-30 19:48:25 +02:00
|
|
|
eFemonThemePearlHD,
|
2005-02-24 03:20:00 +01:00
|
|
|
eFemonThemeMaxNumber
|
|
|
|
};
|
|
|
|
|
|
|
|
struct cFemonTheme
|
|
|
|
{
|
2012-03-19 17:09:16 +01:00
|
|
|
int bpp;
|
2012-03-12 20:59:34 +01:00
|
|
|
unsigned int clrBackground;
|
|
|
|
unsigned int clrTitleBackground;
|
|
|
|
unsigned int clrTitleText;
|
|
|
|
unsigned int clrActiveText;
|
|
|
|
unsigned int clrInactiveText;
|
|
|
|
unsigned int clrRed;
|
|
|
|
unsigned int clrYellow;
|
|
|
|
unsigned int clrGreen;
|
2005-02-24 03:20:00 +01:00
|
|
|
};
|
|
|
|
|
2015-03-07 17:22:02 +01:00
|
|
|
extern const cFemonTheme FemonTheme[eFemonThemeMaxNumber];
|
2005-02-24 03:20:00 +01:00
|
|
|
|
2015-03-07 21:32:58 +01:00
|
|
|
#endif // __FEMON_CONFIG_H
|