diff options
Diffstat (limited to 'setup-zaphistory.h')
-rw-r--r-- | setup-zaphistory.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/setup-zaphistory.h b/setup-zaphistory.h new file mode 100644 index 0000000..9f947a4 --- /dev/null +++ b/setup-zaphistory.h @@ -0,0 +1,51 @@ +/* + * ZapHistory plugin for VDR + * + * This code is distributed under the terms and conditions of the + * GNU GENERAL PUBLIC LICENSE. See the file COPYING for details. + * + * Setup data structure and setup menu + * + */ + +#ifndef __SETUP_ZapHistory_H +#define __SETUP_ZapHistory_H + +#include <vdr/menuitems.h> + +enum cZapHistoryView { historyView, statisticView }; +enum cZapHistorySortMode { historySort, zapcountSort, watchtimeSort }; + +class cZapHistorySetup { + public: + int HideMainMenu; + int EntryCount; + cZapHistoryView DefaultView; + cZapHistorySortMode DefaultSort; + + // Dummy fields to convert enum fields to int + int DummyDefaultView; + int DummyDefaultSort; + + int ProgressView; // 0 = textbar; 1 = VDRSymbols; 2 = percent + + public: + cZapHistorySetup(void); + void IntToEnum(); + bool SetupParse(const char *Name, const char *Value); +}; + +class cMenuSetupZapHistory : public cMenuSetupPage { + private: + const char* viewStrs[2]; + const char* sortStrs[3]; + const char* ProgressViewtStrs[3]; + protected: + virtual void Store(void); + public: + cMenuSetupZapHistory(void); +}; + +extern cZapHistorySetup ZapHistorySetup; + +#endif // __SETUP_ZapHistory_H |