diff options
author | kamel5 <kamel5 (at) gmx (dot) net> | 2018-03-08 13:02:38 +0100 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-01-27 11:29:38 +0100 |
commit | cbc6f442648a0aea4b94d81176f044c642a7d2b0 (patch) | |
tree | 3bfdc0baebcbaec7845edcc521b4041e6a25035c /searchtimer.h | |
parent | 8287bb5f7deef757f38b3e2a4ed5a08a57881f7e (diff) | |
download | vdr-plugin-tvguide-cbc6f442648a0aea4b94d81176f044c642a7d2b0.tar.gz vdr-plugin-tvguide-cbc6f442648a0aea4b94d81176f044c642a7d2b0.tar.bz2 |
Compile under VDR 2.3.1
Diffstat (limited to 'searchtimer.h')
-rw-r--r-- | searchtimer.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/searchtimer.h b/searchtimer.h index f797ebd..f9ed924 100644 --- a/searchtimer.h +++ b/searchtimer.h @@ -11,8 +11,13 @@ private: int startTime;
int stopTime;
int useChannel;
+#if defined (APIVERSNUM) && (APIVERSNUM >= 20301)
+ const cChannel *channelMin;
+ const cChannel *channelMax;
+#else
cChannel *channelMin;
cChannel *channelMax;
+#endif
std::string channelGroup;
int useCase;
int mode;
@@ -106,8 +111,8 @@ public: 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 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; };
|