diff options
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; };
|