2014-01-10 12:44:01 +01:00
|
|
|
#ifndef __TVGUIDE_SEARCHTIMER_H
|
|
|
|
#define __TVGUIDE_SEARCHTIMER_H
|
|
|
|
|
|
|
|
|
|
|
|
class cTVGuideSearchTimer {
|
2019-06-16 15:33:48 +02:00
|
|
|
friend class cRecMenuSearchTimerEdit;
|
|
|
|
protected:
|
2014-01-10 12:44:01 +01:00
|
|
|
std::string strTimer;
|
2014-01-25 15:04:03 +01:00
|
|
|
int ID;
|
2014-01-10 12:44:01 +01:00
|
|
|
std::string searchString;
|
2014-01-25 15:04:03 +01:00
|
|
|
int useTime;
|
|
|
|
int startTime;
|
|
|
|
int stopTime;
|
|
|
|
int useChannel;
|
2018-03-08 13:02:38 +01:00
|
|
|
const cChannel *channelMin;
|
|
|
|
const cChannel *channelMax;
|
2014-01-10 12:44:01 +01:00
|
|
|
std::string channelGroup;
|
2014-01-25 15:04:03 +01:00
|
|
|
int useCase;
|
|
|
|
int mode;
|
|
|
|
int useTitle;
|
|
|
|
int useSubtitle;
|
|
|
|
int useDescription;
|
2014-01-10 12:44:01 +01:00
|
|
|
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);
|
2014-02-07 16:07:00 +01:00
|
|
|
bool operator < (const cTVGuideSearchTimer& other) const;
|
2014-01-10 12:44:01 +01:00
|
|
|
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
|
2019-06-16 13:11:28 +02:00
|
|
|
std::string GetSearchString(void) const { return searchString; };
|
|
|
|
bool IsActive(void);
|
2014-01-10 12:44:01 +01:00
|
|
|
int DayOfWeek(void);
|
2014-01-14 18:00:32 +01:00
|
|
|
bool UseInFavorites(void) { return useInFavorites; };
|
2014-01-10 12:44:01 +01:00
|
|
|
//SETTER
|
|
|
|
void SetSearchString(std::string searchString) { this->searchString = searchString; };
|
2019-07-04 12:38:47 +02:00
|
|
|
void SetSearchMode(int mode) { this->mode = mode; };
|
2019-06-16 15:33:48 +02:00
|
|
|
void SetFuzzyTolerance(int fuzzyTolerance) { this->fuzzyTolerance = fuzzyTolerance; };
|
|
|
|
void SetUseCase(bool useCase) { this->useCase = useCase; };
|
2014-01-10 12:44:01 +01:00
|
|
|
void SetUseTitle(bool useTitle) { this->useTitle = useTitle; };
|
|
|
|
void SetUseSubtitle(bool useSubtitle) { this->useSubtitle = useSubtitle; };
|
|
|
|
void SetUseDesription(bool useDescription) { this->useDescription = useDescription; };
|
2019-04-09 18:25:58 +02:00
|
|
|
void SetUseChannel(int useChannel) { this->useChannel = useChannel; };
|
2019-07-04 13:14:14 +02:00
|
|
|
void SetStartChannel(const cChannel *channelMin) { this->channelMin = channelMin; };
|
|
|
|
void SetStopChannel(const cChannel *channelMax) { this->channelMax = channelMax; };
|
2019-04-09 18:25:58 +02:00
|
|
|
void SetChannelGroup(std::string channelGroup) { this->channelGroup = channelGroup; };
|
2014-01-10 12:44:01 +01:00
|
|
|
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);
|
2019-06-16 15:33:48 +02:00
|
|
|
void SetUseDuration(bool useDuration) { this->useDuration = useDuration; };
|
|
|
|
void SetMinDuration(int minDuration) { this->minDuration = minDuration; };
|
|
|
|
void SetMaxDuration(int maxDuration) { this->maxDuration = maxDuration; };
|
2014-01-26 09:42:27 +01:00
|
|
|
void SetUseEpisode(int useEpisode) { this->useEpisode = useEpisode; };
|
|
|
|
void SetDirectory(std::string directory) { this-> directory = directory; };
|
2019-06-16 15:33:48 +02:00
|
|
|
void SetDelAfterDays(int delAfterDays) { this->delAfterDays = delAfterDays; };
|
|
|
|
void SetRecordingsKeep(int recordingsKeep) { this->recordingsKeep = recordingsKeep; };
|
|
|
|
void SetPauseOnNrRecordings(int pauseOnNrRecordings) { this-> pauseOnNrRecordings = pauseOnNrRecordings; };
|
2014-01-10 12:44:01 +01:00
|
|
|
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; };
|
2019-06-16 15:33:48 +02:00
|
|
|
void SetRepeatsWithinDays(int repeatsWithinDays) { this-> repeatsWithinDays = repeatsWithinDays; };
|
2014-01-10 12:44:01 +01:00
|
|
|
void SetCompareTitle(bool compareTitle) { this->compareTitle = compareTitle; };
|
|
|
|
void SetCompareSubtitle(bool compareSubtitle) { this->compareSubtitle = compareSubtitle; };
|
|
|
|
void SetCompareSummary(bool compareSummary) { this->compareSummary = compareSummary; };
|
2019-06-16 15:33:48 +02:00
|
|
|
void SetCompareSummaryMatchInPercent(int compareSummaryMatchInPercent) { this->compareSummaryMatchInPercent = compareSummaryMatchInPercent; };
|
|
|
|
void SetCompareDate(int compareDate) { this->compareDate = compareDate; };
|
2014-01-14 18:00:32 +01:00
|
|
|
void SetUseInFavorites(bool useInFavorites) { this->useInFavorites = useInFavorites; };
|
2019-06-16 15:33:48 +02:00
|
|
|
void SetUseAsSearchTimer(bool useAsSearchTimer) { this->useAsSearchTimer = useAsSearchTimer; };
|
|
|
|
void SetAction(int action) { this->action = action; };
|
|
|
|
void SetSwitchMinsBefore(int switchMinsBefore) { this->switchMinsBefore = switchMinsBefore; };
|
|
|
|
void SetUnmuteSoundOnSwitch(bool unmuteSoundOnSwitch) { this->unmuteSoundOnSwitch = unmuteSoundOnSwitch; };
|
|
|
|
void SetDelMode(bool delMode) { this->delMode = delMode; };
|
|
|
|
void SetDelAfterCountRecs(bool delAfterCountRecs) { this->delAfterCountRecs = delAfterCountRecs; };
|
|
|
|
void SetDelAfterDaysOfFirstRec(bool delAfterDaysOfFirstRec) { this->delAfterDaysOfFirstRec = delAfterDaysOfFirstRec; };
|
2014-01-10 12:44:01 +01:00
|
|
|
//COMMON
|
|
|
|
int GetNumTimers(void);
|
|
|
|
int GetNumRecordings(void);
|
|
|
|
void GetSearchModes(std::vector<std::string> *searchModes);
|
2019-04-09 18:25:58 +02:00
|
|
|
void GetUseChannelModes(std::vector<std::string> *useChannelModes);
|
2019-06-16 14:23:44 +02:00
|
|
|
void GetSearchTimerModes(std::vector<std::string> *searchTimerModes);
|
|
|
|
void GetCompareDateModes(std::vector<std::string> *compareDateModes);
|
|
|
|
void GetDelModes(std::vector<std::string> *delModes);
|
2014-01-10 12:44:01 +01:00
|
|
|
void Dump(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //__TVGUIDE_SEARCHTIMER_H
|