diff options
Diffstat (limited to 'recmenuitem.h')
-rw-r--r-- | recmenuitem.h | 40 |
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); }; |