summaryrefslogtreecommitdiff
path: root/recmenuitem.h
diff options
context:
space:
mode:
authorkamel5 <kamel5 (at) gmx (dot) net>2018-03-08 13:02:38 +0100
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-01-27 11:29:38 +0100
commitcbc6f442648a0aea4b94d81176f044c642a7d2b0 (patch)
tree3bfdc0baebcbaec7845edcc521b4041e6a25035c /recmenuitem.h
parent8287bb5f7deef757f38b3e2a4ed5a08a57881f7e (diff)
downloadvdr-plugin-tvguide-cbc6f442648a0aea4b94d81176f044c642a7d2b0.tar.gz
vdr-plugin-tvguide-cbc6f442648a0aea4b94d81176f044c642a7d2b0.tar.bz2
Compile under VDR 2.3.1
Diffstat (limited to 'recmenuitem.h')
-rw-r--r--recmenuitem.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/recmenuitem.h b/recmenuitem.h
index 9df37db..2f9106a 100644
--- a/recmenuitem.h
+++ b/recmenuitem.h
@@ -123,7 +123,11 @@ public:
virtual bool GetBoolValue(void) { return false; };
virtual cString GetStringValue(void) { return cString(""); };
virtual const cEvent *GetEventValue(void) { return NULL; };
+#if defined (APIVERSNUM) && (APIVERSNUM >= 20301)
+ virtual const cTimer *GetTimerValue(void) { return NULL; };
+#else
virtual cTimer *GetTimerValue(void) { return NULL; };
+#endif
virtual eRecMenuState ProcessKey(eKeys Key) { return rmsNotConsumed; };
};
@@ -489,7 +493,11 @@ public:
class cRecMenuItemChannelChooser : public cRecMenuItem {
private:
cString text;
+#if defined (APIVERSNUM) && (APIVERSNUM >= 20301)
+ const cChannel *channel;
+#else
cChannel *channel;
+#endif
int channelNumber;
int *callback;
bool initialChannelSet;
@@ -498,7 +506,11 @@ private:
void DrawValue(void);
public:
cRecMenuItemChannelChooser (cString text,
+#if defined (APIVERSNUM) && (APIVERSNUM >= 20301)
+ const cChannel *initialChannel,
+#else
cChannel *initialChannel,
+#endif
bool active = false,
int *callback = NULL,
eRecMenuState action = rmsNotConsumed);
@@ -548,10 +560,18 @@ public:
// --- cRecMenuItemRecording -------------------------------------------------------
class cRecMenuItemRecording : public cRecMenuItem {
private:
+#if defined (APIVERSNUM) && (APIVERSNUM >= 20301)
+ const cRecording *recording;
+#else
cRecording *recording;
+#endif
cPixmap *pixmapText;
public:
+#if defined (APIVERSNUM) && (APIVERSNUM >= 20301)
+ cRecMenuItemRecording(const cRecording *recording, bool active);
+#else
cRecMenuItemRecording(cRecording *recording, bool active);
+#endif
virtual ~cRecMenuItemRecording(void);
void SetPixmaps(void);
void Hide(void);
@@ -563,7 +583,11 @@ public:
class cRecMenuItemTimelineHeader : public cRecMenuItem {
private:
time_t day;
+#if defined (APIVERSNUM) && (APIVERSNUM >= 20301)
+ const cTimer *timer;
+#else
cTimer *timer;
+#endif
std::vector<cTVGuideTimerConflict*> conflicts;
cPixmap *pixmapTimeline;
cPixmap *pixmapTimerInfo;
@@ -579,7 +603,11 @@ public:
virtual ~cRecMenuItemTimelineHeader(void);
void SetDay(time_t day) { this->day = day; };
void SetPixmaps(void);
+#if defined (APIVERSNUM) && (APIVERSNUM >= 20301)
+ void SetCurrentTimer(const cTimer *timer) { this->timer = timer; };
+#else
void SetCurrentTimer(cTimer *timer) { this->timer = timer; };
+#endif
void UnsetCurrentTimer(void) { timer = NULL; };
void RefreshTimerDisplay(void);
void Hide(void);
@@ -590,7 +618,11 @@ public:
// --- cRecMenuItemTimelineTimer -------------------------------------------------------
class cRecMenuItemTimelineTimer : public cRecMenuItem {
private:
+#if defined (APIVERSNUM) && (APIVERSNUM >= 20301)
+ const cTimer *timer;
+#else
cTimer *timer;
+#endif
std::vector<cTVGuideTimerConflict*> conflicts;
cPixmap *pixmapBack;
cPixmap *pixmapTimerConflicts;
@@ -605,7 +637,11 @@ private:
void DrawTimerConflicts(void);
void DrawNoTimerInfo(void);
public:
+#if defined (APIVERSNUM) && (APIVERSNUM >= 20301)
+ cRecMenuItemTimelineTimer(const cTimer *timer, time_t start, time_t stop, std::vector<cTVGuideTimerConflict*> conflictsToday, cRecMenuItemTimelineHeader *header, bool active);
+#else
cRecMenuItemTimelineTimer(cTimer *timer, time_t start, time_t stop, std::vector<cTVGuideTimerConflict*> conflictsToday, cRecMenuItemTimelineHeader *header, bool active);
+#endif
virtual ~cRecMenuItemTimelineTimer(void);
void setActive(void);
void setInactive(void);
@@ -613,7 +649,11 @@ public:
void Hide(void);
void Show(void);
void Draw(void);
+#if defined (APIVERSNUM) && (APIVERSNUM >= 20301)
+ const cTimer *GetTimerValue(void);
+#else
cTimer *GetTimerValue(void);
+#endif
eRecMenuState ProcessKey(eKeys Key);
};