mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
Change SetStartChannel() and SetStopChannel()
This commit is contained in:
parent
cf171d8732
commit
0b37464dd0
14
recmenus.c
14
recmenus.c
@ -915,8 +915,18 @@ cTVGuideSearchTimer cRecMenuSearchTimerEdit::GetSearchTimer(void) {
|
|||||||
searchTimer.SetUseSubtitle(sT.useSubtitle);
|
searchTimer.SetUseSubtitle(sT.useSubtitle);
|
||||||
searchTimer.SetUseDesription(sT.useDescription);
|
searchTimer.SetUseDesription(sT.useDescription);
|
||||||
if (sT.useChannel == 1) {
|
if (sT.useChannel == 1) {
|
||||||
searchTimer.SetStartChannel(startChannel);
|
#if VDRVERSNUM >= 20301
|
||||||
searchTimer.SetStopChannel(stopChannel);
|
{
|
||||||
|
LOCK_CHANNELS_READ;
|
||||||
|
sT.channelMin = Channels->GetByNumber(startChannel);
|
||||||
|
sT.channelMax = Channels->GetByNumber(stopChannel);
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
sT.channelMin = Channels.GetByNumber(startChannel);
|
||||||
|
sT.channelMax = Channels.GetByNumber(stopChannel);
|
||||||
|
#endif
|
||||||
|
searchTimer.SetStartChannel(sT.channelMin);
|
||||||
|
searchTimer.SetStopChannel(sT.channelMax);
|
||||||
}
|
}
|
||||||
if (sT.useChannel == 2) {
|
if (sT.useChannel == 2) {
|
||||||
if (channelgroups.size() > 0) {
|
if (channelgroups.size() > 0) {
|
||||||
|
@ -608,26 +608,6 @@ void cTVGuideSearchTimer::GetDelModes(std::vector<std::string> *delModes) {
|
|||||||
delModes->push_back(tr("count days"));
|
delModes->push_back(tr("count days"));
|
||||||
}
|
}
|
||||||
|
|
||||||
void cTVGuideSearchTimer::SetStartChannel(int startChannel)
|
|
||||||
{
|
|
||||||
#if VDRVERSNUM >= 20301
|
|
||||||
LOCK_CHANNELS_READ;
|
|
||||||
channelMin = Channels->GetByNumber(startChannel);
|
|
||||||
#else
|
|
||||||
channelMin = Channels.GetByNumber(startChannel);
|
|
||||||
#endif
|
|
||||||
};
|
|
||||||
|
|
||||||
void cTVGuideSearchTimer::SetStopChannel(int stopChannel)
|
|
||||||
{
|
|
||||||
#if VDRVERSNUM >= 20301
|
|
||||||
LOCK_CHANNELS_READ;
|
|
||||||
channelMax = Channels->GetByNumber(stopChannel);
|
|
||||||
#else
|
|
||||||
channelMax = Channels.GetByNumber(stopChannel);
|
|
||||||
#endif
|
|
||||||
};
|
|
||||||
|
|
||||||
void cTVGuideSearchTimer::Dump(void) {
|
void cTVGuideSearchTimer::Dump(void) {
|
||||||
esyslog("tvguide searchtimer: strTimer: %s", strTimer.c_str());
|
esyslog("tvguide searchtimer: strTimer: %s", strTimer.c_str());
|
||||||
esyslog("tvguide searchtimer: ID: %d", ID);
|
esyslog("tvguide searchtimer: ID: %d", ID);
|
||||||
|
@ -90,8 +90,8 @@ public:
|
|||||||
void SetUseSubtitle(bool useSubtitle) { this->useSubtitle = useSubtitle; };
|
void SetUseSubtitle(bool useSubtitle) { this->useSubtitle = useSubtitle; };
|
||||||
void SetUseDesription(bool useDescription) { this->useDescription = useDescription; };
|
void SetUseDesription(bool useDescription) { this->useDescription = useDescription; };
|
||||||
void SetUseChannel(int useChannel) { this->useChannel = useChannel; };
|
void SetUseChannel(int useChannel) { this->useChannel = useChannel; };
|
||||||
void SetStartChannel(int startChannel);
|
void SetStartChannel(const cChannel *channelMin) { this->channelMin = channelMin; };
|
||||||
void SetStopChannel(int stopChannel);
|
void SetStopChannel(const cChannel *channelMax) { this->channelMax = channelMax; };
|
||||||
void SetChannelGroup(std::string channelGroup) { this->channelGroup = channelGroup; };
|
void SetChannelGroup(std::string channelGroup) { this->channelGroup = channelGroup; };
|
||||||
void SetUseTime(bool useTime) { this->useTime = useTime; };
|
void SetUseTime(bool useTime) { this->useTime = useTime; };
|
||||||
void SetStartTime(int startTime) { this->startTime = startTime; };
|
void SetStartTime(int startTime) { this->startTime = startTime; };
|
||||||
|
Loading…
Reference in New Issue
Block a user