/* * iMON LCD plugin to VDR (C++) * * (C) 2009 Andreas Brachold * * This code is distributed under the terms and conditions of the * GNU GENERAL PUBLIC LICENSE. See the file COPYING for details. * */ #ifndef __IMON_SETUP_H___ #define __IMON_SETUP_H___ #include #define memberof(x) (sizeof(x)/sizeof(*x)) struct cIMonSetup { int m_nOnExit; int m_nContrast; int m_bDiscMode; int m_nWidth; int m_nHeight; char m_szFont[256]; cIMonSetup(void); cIMonSetup(const cIMonSetup& x); cIMonSetup& operator = (const cIMonSetup& x); /// Parse our own setup parameters and store their values. bool SetupParse(const char *szName, const char *szValue); }; class ciMonWatch; class ciMonMenuSetup :public cMenuSetupPage { cIMonSetup m_tmpSetup; ciMonWatch* m_pDev; cStringList fontNames; int fontIndex; protected: virtual void Store(void); virtual eOSState ProcessKey(eKeys nKey); public: ciMonMenuSetup(ciMonWatch* pDev); }; /// The exported one and only Stored setup data extern cIMonSetup theSetup; #endif //__IMON_SETUP_H___