summaryrefslogtreecommitdiff
path: root/epgsearchext.c
diff options
context:
space:
mode:
authorChristian Wieninger <cwieninger (at) gmx (dot) de>2009-06-23 20:31:56 +0200
committerChristian Wieninger <cwieninger (at) gmx (dot) de>2009-06-23 20:31:56 +0200
commit236d130b574d7a2559c448d061c64d034e93a94e (patch)
treeb1c389148ed3dc2829a4f8a1463b596e91168571 /epgsearchext.c
parent29fb44c898ff29e7f195e3744bd081c5db2548be (diff)
downloadvdr-plugin-epgsearch-236d130b574d7a2559c448d061c64d034e93a94e.tar.gz
vdr-plugin-epgsearch-236d130b574d7a2559c448d061c64d034e93a94e.tar.bz2
- made some destructors virtual
- when creating search timers directly from EPG their default 'use channel' is now the corresponding channel of the event instead of the current channel
Diffstat (limited to 'epgsearchext.c')
-rw-r--r--epgsearchext.c26
1 files changed, 15 insertions, 11 deletions
diff --git a/epgsearchext.c b/epgsearchext.c
index 79bfd70..a2b30a2 100644
--- a/epgsearchext.c
+++ b/epgsearchext.c
@@ -163,13 +163,14 @@ cSearchExt& cSearchExt::operator= (const cSearchExt &SearchExt)
return *this;
}
-void cSearchExt::CopyFromTemplate(const cSearchExt* templ)
+ void cSearchExt::CopyFromTemplate(const cSearchExt* templ, bool ignoreChannelSettings)
{
options = templ->options;
useTime = templ->useTime;
startTime = templ->startTime;
stopTime = templ->stopTime;
- useChannel = templ->useChannel;
+ if (!ignoreChannelSettings)
+ useChannel = templ->useChannel;
useCase = templ->useCase;
mode = templ->mode;
useTitle = templ->useTitle;
@@ -202,15 +203,18 @@ void cSearchExt::CopyFromTemplate(const cSearchExt* templ)
index++;
}
- channelMin = templ->channelMin;
- channelMax = templ->channelMax;
- if (channelGroup)
- {
- free(channelGroup);
- channelGroup = NULL;
- }
- if (templ->channelGroup)
- channelGroup = strdup(templ->channelGroup);
+ if (!ignoreChannelSettings)
+ {
+ channelMin = templ->channelMin;
+ channelMax = templ->channelMax;
+ if (channelGroup)
+ {
+ free(channelGroup);
+ channelGroup = NULL;
+ }
+ if (templ->channelGroup)
+ channelGroup = strdup(templ->channelGroup);
+ }
avoidRepeats = templ->avoidRepeats;
compareTitle = templ->compareTitle;
compareSubtitle = templ->compareSubtitle;