diff options
author | louis <louis.braun@gmx.de> | 2013-07-09 00:17:42 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-07-09 00:17:42 +0200 |
commit | 2a7a011055a44516ec981e525776394a8c04dcfe (patch) | |
tree | 55c9828c7b619622ec36da3f4b41318ed6c85ae0 /recmanager.h | |
parent | 6da4b610d98cafe7c20555c926359d7f89347c76 (diff) | |
download | vdr-plugin-tvguide-2a7a011055a44516ec981e525776394a8c04dcfe.tar.gz vdr-plugin-tvguide-2a7a011055a44516ec981e525776394a8c04dcfe.tar.bz2 |
Version 0.0.6
Diffstat (limited to 'recmanager.h')
-rw-r--r-- | recmanager.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/recmanager.h b/recmanager.h new file mode 100644 index 0000000..0b010c4 --- /dev/null +++ b/recmanager.h @@ -0,0 +1,53 @@ +#ifndef __TVGUIDE_RECMMANAGER_H +#define __TVGUIDE_RECMMANAGER_H + +class TVGuideTimerConflict { +public: + time_t time; + time_t timeStart; + time_t timeStop; + time_t overlapStart; + time_t overlapStop; + int percentPossible; + int timerID; + std::vector<int> timerIDs; + bool timerInvolved(int involvedID); +}; + +struct TVGuideEPGSearchTemplate { +public: + std::string name; + std::string templValue; +}; + +// --- cRecManager ------------------------------------------------------------- +class cRecManager { +private: + cPlugin *epgSearchPlugin; + bool epgSearchAvailable; + void DeleteTimer(cTimer *timer); +public: + cRecManager (void); + void SetEPGSearchPlugin(void); + bool EpgSearchAvailable(void) {return epgSearchAvailable;}; + cTimer *createTimer(const cEvent *event); + void DeleteTimer(const cEvent *event); + void DeleteTimer(int timerID); + void SaveTimer(cTimer *timer, cRecMenu *menu); + bool IsRecorded(const cEvent *event); + std::vector<TVGuideTimerConflict> CheckTimerConflict(void); + cTimer *CreateSeriesTimer(cRecMenu *menu); + std::string BuildEPGSearchString(cString searchString, cRecMenu *menu); + std::string BuildEPGSearchString(cString searchString, std::string templValue); + const cEvent **PerformSearchTimerSearch(std::string epgSearchString, int &numResults); + const cEvent **PerformSearch(cRecMenu *menu, bool withOptions, int &numResults); + std::vector<TVGuideEPGSearchTemplate> ReadEPGSearchTemplates(void); + int CreateSearchTimer(std::string epgSearchString); + void UpdateSearchTimers(void); + bool CreateSwitchTimer(const cEvent *event, cRecMenu *menu); + void DeleteSwitchTimer(const cEvent *event); + cRecording **SearchForRecordings(cString searchString, int &numResults); + virtual ~cRecManager (void); +}; + +#endif //__TVGUIDE_RECMMANAGER_H
\ No newline at end of file |