diff options
| author | Lars Hanisch <dvb@flensrocker.de> | 2010-03-21 22:08:40 +0100 |
|---|---|---|
| committer | Lars Hanisch <dvb@flensrocker.de> | 2010-03-21 22:29:00 +0100 |
| commit | 7173683e4cd89bd981421aa59e29d54705b295a2 (patch) | |
| tree | e42516a66c6c9b60ba1b01dc32dfdd66a01b0271 /sourceparams.h | |
| parent | f11fc2990b13af1f9bd34e4d42a4dccc0d5eaa17 (diff) | |
| download | vdr-plugin-pvrinput-7173683e4cd89bd981421aa59e29d54705b295a2.tar.gz vdr-plugin-pvrinput-7173683e4cd89bd981421aa59e29d54705b295a2.tar.bz2 | |
Refactoring of cPvrSourceParam: it can now be used by ParseChannels
The parsing and writing of the channel's source parameter is now focused at one place.
Diffstat (limited to 'sourceparams.h')
| -rw-r--r-- | sourceparams.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/sourceparams.h b/sourceparams.h new file mode 100644 index 0000000..bdf70d1 --- /dev/null +++ b/sourceparams.h @@ -0,0 +1,50 @@ +#ifndef _PVRINPUT_SOURCEPARAMS_H +#define _PVRINPUT_SOURCEPARAMS_H + +#include "common.h" + +class cPvrSourceParam +#ifdef __SOURCEPARAMS_H + : public cSourceParam +#endif +{ +private: + int param; + int input; + int standard; + int card; + +public: + cPvrSourceParam(); + cString ParametersToString(void) const; + virtual void SetData(cChannel *Channel); + virtual void GetData(cChannel *Channel); + virtual cOsdItem *GetOsdItem(void); + + static bool IsPvr(int Code); + static bool ParseParameters(const char *Parameters, int *InputIndex, int *StandardIndex, int *CardIndex); + +#ifdef PVR_SOURCEPARAMS + static const char *sPluginId; + static const char sSourceID = 'V'; +#else + static const char *sPluginId; + static const char sSourceID = 'P'; +#endif + static const uint stPvr = (sSourceID << 24); + + static const int sNumInputs = 12; + static const char *sInputName[]; + static const eInputType sInputType[]; + + static const int sNumCards = 9; + static const char *sCards[]; + + static const int sNumStandards = 31; + static const char *sStandardName[]; + static const uint64_t sStandardNorm[]; + static const int sStandardLinesPerFrame[]; +}; + +#endif + |
