mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
Add some Modes to searchtimer.*
This commit is contained in:
parent
763f9d4e52
commit
d5f46dacc6
@ -526,7 +526,6 @@ bool cTVGuideSearchTimer::IsActive(void) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int cTVGuideSearchTimer::GetNumTimers(void) {
|
int cTVGuideSearchTimer::GetNumTimers(void) {
|
||||||
int numTimers = 0;
|
int numTimers = 0;
|
||||||
if (ID < 0)
|
if (ID < 0)
|
||||||
@ -575,26 +574,37 @@ void cTVGuideSearchTimer::GetSearchModes(std::vector<std::string> *searchModes)
|
|||||||
searchModes->push_back(tr("one term must exist"));
|
searchModes->push_back(tr("one term must exist"));
|
||||||
searchModes->push_back(tr("exact match"));
|
searchModes->push_back(tr("exact match"));
|
||||||
searchModes->push_back(tr("regular expression"));
|
searchModes->push_back(tr("regular expression"));
|
||||||
|
searchModes->push_back(tr("fuzzy"));
|
||||||
}
|
}
|
||||||
|
|
||||||
void cTVGuideSearchTimer::Dump(void) {
|
void cTVGuideSearchTimer::GetUseChannelModes(std::vector<std::string> *useChannelModes) {
|
||||||
esyslog("tvguide searchtimer: strTimer: %s", strTimer.c_str());
|
useChannelModes->push_back(tr("No"));
|
||||||
esyslog("tvguide searchtimer: ID: %d", ID);
|
useChannelModes->push_back(tr("Interval"));
|
||||||
esyslog("tvguide searchtimer: searchString: %s", searchString.c_str());
|
useChannelModes->push_back(tr("Channel Group"));
|
||||||
esyslog("tvguide searchtimer: useTime: %d", useTime);
|
useChannelModes->push_back(tr("only FTA"));
|
||||||
esyslog("tvguide searchtimer: startTime: %d", startTime);
|
}
|
||||||
esyslog("tvguide searchtimer: stopTime: %d", stopTime);
|
|
||||||
esyslog("tvguide searchtimer: useChannel: %d", useChannel);
|
void cTVGuideSearchTimer::GetCompareDateModes(std::vector<std::string> *compareDateModes) {
|
||||||
if (channelMin)
|
compareDateModes->push_back(tr("No"));
|
||||||
esyslog("tvguide searchtimer: channelMin: %s", channelMin->Name());
|
compareDateModes->push_back(tr("same day"));
|
||||||
if (channelMax)
|
compareDateModes->push_back(tr("same week"));
|
||||||
esyslog("tvguide searchtimer: channelMax: %s", channelMax->Name());
|
compareDateModes->push_back(tr("same month"));
|
||||||
esyslog("tvguide searchtimer: channelGroup: %s", channelGroup.c_str());
|
}
|
||||||
esyslog("tvguide searchtimer: useCase: %d", useCase);
|
|
||||||
esyslog("tvguide searchtimer: mode: %d", mode);
|
void cTVGuideSearchTimer::GetSearchTimerModes(std::vector<std::string> *searchTimerModes) {
|
||||||
esyslog("tvguide searchtimer: useTitle: %d", useTitle);
|
searchTimerModes->push_back(tr("Record"));
|
||||||
esyslog("tvguide searchtimer: useSubtitle: %d", useSubtitle);
|
searchTimerModes->push_back(tr("Announce by OSD"));
|
||||||
esyslog("tvguide searchtimer: useDescription: %d", useDescription);
|
searchTimerModes->push_back(tr("Switch only"));
|
||||||
|
searchTimerModes->push_back(tr("Announce and switch"));
|
||||||
|
searchTimerModes->push_back(tr("Announce by mail"));
|
||||||
|
searchTimerModes->push_back(tr("Inactive record"));
|
||||||
|
}
|
||||||
|
|
||||||
|
void cTVGuideSearchTimer::GetDelModes(std::vector<std::string> *delModes) {
|
||||||
|
delModes->push_back(tr("no"));
|
||||||
|
delModes->push_back(tr("count recordings"));
|
||||||
|
delModes->push_back(tr("count days"));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void cTVGuideSearchTimer::SetStartChannel(int startChannel)
|
void cTVGuideSearchTimer::SetStartChannel(int startChannel)
|
||||||
@ -617,9 +627,22 @@ void cTVGuideSearchTimer::SetStopChannel(int stopChannel)
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
void cTVGuideSearchTimer::GetUseChannelModes(std::vector<std::string> *useChannelModes) {
|
void cTVGuideSearchTimer::Dump(void) {
|
||||||
useChannelModes->push_back(tr("No"));
|
esyslog("tvguide searchtimer: strTimer: %s", strTimer.c_str());
|
||||||
useChannelModes->push_back(tr("Interval"));
|
esyslog("tvguide searchtimer: ID: %d", ID);
|
||||||
useChannelModes->push_back(tr("Channel Group"));
|
esyslog("tvguide searchtimer: searchString: %s", searchString.c_str());
|
||||||
useChannelModes->push_back(tr("only FTA"));
|
esyslog("tvguide searchtimer: useTime: %d", useTime);
|
||||||
|
esyslog("tvguide searchtimer: startTime: %d", startTime);
|
||||||
|
esyslog("tvguide searchtimer: stopTime: %d", stopTime);
|
||||||
|
esyslog("tvguide searchtimer: useChannel: %d", useChannel);
|
||||||
|
if (channelMin)
|
||||||
|
esyslog("tvguide searchtimer: channelMin: %s", channelMin->Name());
|
||||||
|
if (channelMax)
|
||||||
|
esyslog("tvguide searchtimer: channelMax: %s", channelMax->Name());
|
||||||
|
esyslog("tvguide searchtimer: channelGroup: %s", channelGroup.c_str());
|
||||||
|
esyslog("tvguide searchtimer: useCase: %d", useCase);
|
||||||
|
esyslog("tvguide searchtimer: mode: %d", mode);
|
||||||
|
esyslog("tvguide searchtimer: useTitle: %d", useTitle);
|
||||||
|
esyslog("tvguide searchtimer: useSubtitle: %d", useSubtitle);
|
||||||
|
esyslog("tvguide searchtimer: useDescription: %d", useDescription);
|
||||||
}
|
}
|
||||||
|
@ -138,6 +138,9 @@ public:
|
|||||||
int GetNumRecordings(void);
|
int GetNumRecordings(void);
|
||||||
void GetSearchModes(std::vector<std::string> *searchModes);
|
void GetSearchModes(std::vector<std::string> *searchModes);
|
||||||
void GetUseChannelModes(std::vector<std::string> *useChannelModes);
|
void GetUseChannelModes(std::vector<std::string> *useChannelModes);
|
||||||
|
void GetSearchTimerModes(std::vector<std::string> *searchTimerModes);
|
||||||
|
void GetCompareDateModes(std::vector<std::string> *compareDateModes);
|
||||||
|
void GetDelModes(std::vector<std::string> *delModes);
|
||||||
void Dump(void);
|
void Dump(void);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user