diff options
author | louis <louis.braun@gmx.de> | 2016-03-13 16:07:21 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2016-03-13 16:07:21 +0100 |
commit | 4623e7b345f850ac44cdcacbd0e43e139a4baa6a (patch) | |
tree | 8046f612d0a0821624e7de006021f551ea512d15 /searchtimer.h | |
parent | d4ef992f8256d324221d15d3bef967eb044a9a86 (diff) | |
download | vdr-plugin-tvguideng-4623e7b345f850ac44cdcacbd0e43e139a4baa6a.tar.gz vdr-plugin-tvguideng-4623e7b345f850ac44cdcacbd0e43e139a4baa6a.tar.bz2 |
added VDR 2.3.1 compatibility
Diffstat (limited to 'searchtimer.h')
-rw-r--r-- | searchtimer.h | 272 |
1 files changed, 136 insertions, 136 deletions
diff --git a/searchtimer.h b/searchtimer.h index f797ebd..d0e944c 100644 --- a/searchtimer.h +++ b/searchtimer.h @@ -1,136 +1,136 @@ -#ifndef __TVGUIDE_SEARCHTIMER_H
-#define __TVGUIDE_SEARCHTIMER_H
-
-
-class cTVGuideSearchTimer {
-private:
- std::string strTimer;
- int ID;
- std::string searchString;
- int useTime;
- int startTime;
- int stopTime;
- int useChannel;
- cChannel *channelMin;
- cChannel *channelMax;
- std::string channelGroup;
- int useCase;
- int mode;
- int useTitle;
- int useSubtitle;
- int useDescription;
- int useDuration;
- int minDuration;
- int maxDuration;
- int useAsSearchTimer;
- int useDayOfWeek;
- int dayOfWeek;
- int useEpisode;
- std::string directory;
- int priority;
- int lifetime;
- int marginStart;
- int marginStop;
- int useVPS;
- int action;
- int useExtEPGInfo;
- std::string extEPGInfoValues;
- int avoidRepeats;
- int allowedRepeats;
- int compareTitle;
- int compareSubtitle;
- int compareSummary;
- unsigned long catvaluesAvoidRepeat;
- int repeatsWithinDays;
- int delAfterDays;
- int recordingsKeep;
- int switchMinsBefore;
- int pauseOnNrRecordings;
- int blacklistMode;
- std::string blacklists;
- int fuzzyTolerance;
- int useInFavorites;
- int menuTemplate;
- int delMode;
- int delAfterCountRecs;
- int delAfterDaysOfFirstRec;
- int useAsSearchTimerFrom;
- int useAsSearchTimerTil;
- int ignoreMissingEPGCats;
- int unmuteSoundOnSwitch;
- int compareSummaryMatchInPercent;
- std::string contentsFilter;
- int compareDate;
-public:
- cTVGuideSearchTimer(void);
- virtual ~cTVGuideSearchTimer(void);
- bool operator < (const cTVGuideSearchTimer& other) const;
- void SetEPGSearchString(std::string strTimer) { this->strTimer = strTimer; };
- void SetTemplate(std::string tmpl);
- bool Parse(bool readTemplate = false);
- std::string BuildSearchString(void);
- int GetID(void) { return ID; };
- //GETTER
- std::string SearchString(void) const { return searchString; };
- bool Active(void);
- bool UseTitle(void) { return useTitle; };
- bool UseSubtitle(void) { return useSubtitle; };
- bool UseDescription(void) { return useDescription; };
- int SearchMode(void) { return mode; };
- bool UseChannel(void) { return useChannel; };
- int StartChannel(void) { return (channelMin)?channelMin->Number():0; };
- int StopChannel(void) { return (channelMax)?channelMax->Number():0; };
- bool UseTime(void) { return useTime; };
- int StartTime(void) { return startTime; };
- int StopTime(void) { return stopTime; };
- bool UseDayOfWeek(void) { return useDayOfWeek; };
- int DayOfWeek(void);
- int UseEpisode(void) { return useEpisode; };
- std::string Directory(void) { return directory; };
- int Priority(void) { return priority; };
- int Lifetime(void) { return lifetime; };
- int MarginStart(void) { return marginStart; };
- int MarginStop(void) { return marginStop; };
- bool UseVPS(void) { return useVPS; };
- bool AvoidRepeats(void) { return avoidRepeats; };
- int AllowedRepeats(void) { return allowedRepeats; };
- bool CompareTitle(void) { return compareTitle; };
- bool CompareSubtitle(void) { return compareSubtitle; };
- bool CompareSummary(void) { return compareSummary; };
- bool UseInFavorites(void) { return useInFavorites; };
- //SETTER
- void SetSearchString(std::string searchString) { this->searchString = searchString; };
- void SetActive(bool active) { useAsSearchTimer = active; };
- void SetSearchMode(int searchMode) { mode = searchMode; };
- void SetUseTitle(bool useTitle) { this->useTitle = useTitle; };
- void SetUseSubtitle(bool useSubtitle) { this->useSubtitle = useSubtitle; };
- void SetUseDesription(bool useDescription) { this->useDescription = useDescription; };
- void SetUseChannel(bool useChannel) { this->useChannel = useChannel; };
- void SetStartChannel(int startChannel) { channelMin = Channels.GetByNumber(startChannel); };
- void SetStopChannel(int stopChannel) { channelMax = Channels.GetByNumber(stopChannel); };
- void SetUseTime(bool useTime) { this->useTime = useTime; };
- void SetStartTime(int startTime) { this->startTime = startTime; };
- void SetStopTime(int stopTime) { this->stopTime = stopTime; };
- void SetUseDayOfWeek(bool useDayOfWeek) { this->useDayOfWeek = useDayOfWeek; };
- void SetDayOfWeek(int VDRDayOfWeek);
- void SetUseEpisode(int useEpisode) { this->useEpisode = useEpisode; };
- void SetDirectory(std::string directory) { this-> directory = directory; };
- void SetPriority(int priority) { this->priority = priority; };
- void SetLifetime(int lifetime) { this->lifetime = lifetime; };
- void SetMarginStart(int marginStart) { this->marginStart = marginStart; };
- void SetMarginStop(int marginStop) { this->marginStop = marginStop; };
- void SetUseVPS(bool useVPS) { this->useVPS = useVPS; };
- void SetAvoidRepeats(bool avoidRepeats) { this->avoidRepeats = avoidRepeats; };
- void SetAllowedRepeats(int allowedRepeats) { this->allowedRepeats = allowedRepeats; };
- void SetCompareTitle(bool compareTitle) { this->compareTitle = compareTitle; };
- void SetCompareSubtitle(bool compareSubtitle) { this->compareSubtitle = compareSubtitle; };
- void SetCompareSummary(bool compareSummary) { this->compareSummary = compareSummary; };
- void SetUseInFavorites(bool useInFavorites) { this->useInFavorites = useInFavorites; };
- //COMMON
- int GetNumTimers(void);
- int GetNumRecordings(void);
- void GetSearchModes(std::vector<std::string> *searchModes);
- void Dump(void);
-};
-
-#endif //__TVGUIDE_SEARCHTIMER_H
+#ifndef __TVGUIDE_SEARCHTIMER_H +#define __TVGUIDE_SEARCHTIMER_H + + +class cTVGuideSearchTimer { +private: + std::string strTimer; + int ID; + std::string searchString; + int useTime; + int startTime; + int stopTime; + int useChannel; + const cChannel *channelMin; + const cChannel *channelMax; + std::string channelGroup; + int useCase; + int mode; + int useTitle; + int useSubtitle; + int useDescription; + int useDuration; + int minDuration; + int maxDuration; + int useAsSearchTimer; + int useDayOfWeek; + int dayOfWeek; + int useEpisode; + std::string directory; + int priority; + int lifetime; + int marginStart; + int marginStop; + int useVPS; + int action; + int useExtEPGInfo; + std::string extEPGInfoValues; + int avoidRepeats; + int allowedRepeats; + int compareTitle; + int compareSubtitle; + int compareSummary; + unsigned long catvaluesAvoidRepeat; + int repeatsWithinDays; + int delAfterDays; + int recordingsKeep; + int switchMinsBefore; + int pauseOnNrRecordings; + int blacklistMode; + std::string blacklists; + int fuzzyTolerance; + int useInFavorites; + int menuTemplate; + int delMode; + int delAfterCountRecs; + int delAfterDaysOfFirstRec; + int useAsSearchTimerFrom; + int useAsSearchTimerTil; + int ignoreMissingEPGCats; + int unmuteSoundOnSwitch; + int compareSummaryMatchInPercent; + std::string contentsFilter; + int compareDate; +public: + cTVGuideSearchTimer(void); + virtual ~cTVGuideSearchTimer(void); + bool operator < (const cTVGuideSearchTimer& other) const; + void SetEPGSearchString(std::string strTimer) { this->strTimer = strTimer; }; + void SetTemplate(std::string tmpl); + bool Parse(bool readTemplate = false); + std::string BuildSearchString(void); + int GetID(void) { return ID; }; + //GETTER + std::string SearchString(void) const { return searchString; }; + bool Active(void); + bool UseTitle(void) { return useTitle; }; + bool UseSubtitle(void) { return useSubtitle; }; + bool UseDescription(void) { return useDescription; }; + int SearchMode(void) { return mode; }; + bool UseChannel(void) { return useChannel; }; + int StartChannel(void) { return (channelMin)?channelMin->Number():0; }; + int StopChannel(void) { return (channelMax)?channelMax->Number():0; }; + bool UseTime(void) { return useTime; }; + int StartTime(void) { return startTime; }; + int StopTime(void) { return stopTime; }; + bool UseDayOfWeek(void) { return useDayOfWeek; }; + int DayOfWeek(void); + int UseEpisode(void) { return useEpisode; }; + std::string Directory(void) { return directory; }; + int Priority(void) { return priority; }; + int Lifetime(void) { return lifetime; }; + int MarginStart(void) { return marginStart; }; + int MarginStop(void) { return marginStop; }; + bool UseVPS(void) { return useVPS; }; + bool AvoidRepeats(void) { return avoidRepeats; }; + int AllowedRepeats(void) { return allowedRepeats; }; + bool CompareTitle(void) { return compareTitle; }; + bool CompareSubtitle(void) { return compareSubtitle; }; + bool CompareSummary(void) { return compareSummary; }; + bool UseInFavorites(void) { return useInFavorites; }; + //SETTER + void SetSearchString(std::string searchString) { this->searchString = searchString; }; + void SetActive(bool active) { useAsSearchTimer = active; }; + void SetSearchMode(int searchMode) { mode = searchMode; }; + void SetUseTitle(bool useTitle) { this->useTitle = useTitle; }; + void SetUseSubtitle(bool useSubtitle) { this->useSubtitle = useSubtitle; }; + void SetUseDesription(bool useDescription) { this->useDescription = useDescription; }; + void SetUseChannel(bool useChannel) { this->useChannel = useChannel; }; + void SetStartChannel(int startChannel); + void SetStopChannel(int stopChannel); + void SetUseTime(bool useTime) { this->useTime = useTime; }; + void SetStartTime(int startTime) { this->startTime = startTime; }; + void SetStopTime(int stopTime) { this->stopTime = stopTime; }; + void SetUseDayOfWeek(bool useDayOfWeek) { this->useDayOfWeek = useDayOfWeek; }; + void SetDayOfWeek(int VDRDayOfWeek); + void SetUseEpisode(int useEpisode) { this->useEpisode = useEpisode; }; + void SetDirectory(std::string directory) { this-> directory = directory; }; + void SetPriority(int priority) { this->priority = priority; }; + void SetLifetime(int lifetime) { this->lifetime = lifetime; }; + void SetMarginStart(int marginStart) { this->marginStart = marginStart; }; + void SetMarginStop(int marginStop) { this->marginStop = marginStop; }; + void SetUseVPS(bool useVPS) { this->useVPS = useVPS; }; + void SetAvoidRepeats(bool avoidRepeats) { this->avoidRepeats = avoidRepeats; }; + void SetAllowedRepeats(int allowedRepeats) { this->allowedRepeats = allowedRepeats; }; + void SetCompareTitle(bool compareTitle) { this->compareTitle = compareTitle; }; + void SetCompareSubtitle(bool compareSubtitle) { this->compareSubtitle = compareSubtitle; }; + void SetCompareSummary(bool compareSummary) { this->compareSummary = compareSummary; }; + void SetUseInFavorites(bool useInFavorites) { this->useInFavorites = useInFavorites; }; + //COMMON + int GetNumTimers(void); + int GetNumRecordings(void); + void GetSearchModes(std::vector<std::string> *searchModes); + void Dump(void); +}; + +#endif //__TVGUIDE_SEARCHTIMER_H |