diff options
Diffstat (limited to 'coreengine/viewelementsdisplayreplay.h')
| -rw-r--r-- | coreengine/viewelementsdisplayreplay.h | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/coreengine/viewelementsdisplayreplay.h b/coreengine/viewelementsdisplayreplay.h index 0cc4be6..27d66ca 100644 --- a/coreengine/viewelementsdisplayreplay.h +++ b/coreengine/viewelementsdisplayreplay.h @@ -4,6 +4,13 @@ #include "viewelement.h" #include "../extensions/scrapmanager.h" +// define recordingtypes +enum eRecType_t { + NoRec = 0, + NormalRec, + TimeshiftRec +}; + /****************************************************************** * cVeDrRecTitle ******************************************************************/ @@ -12,12 +19,12 @@ private: const cRecording *recording; const cEvent *event; char *title; - bool timeshiftActive; + eRecType_t timeShiftActive; public: cVeDrRecTitle(void); virtual ~cVeDrRecTitle(void); void SetTokenContainer(void); - void Set(const cRecording *recording = NULL, const cEvent *event = NULL, bool timeshiftActive = false); + void Set(const cRecording *recording = NULL, const cEvent *event = NULL, eRecType_t timeShiftActive = NoRec); void Set(const char *title = NULL); bool Parse(bool forced = false); }; @@ -43,12 +50,12 @@ class cVeDrCurrentTime : public cViewElement { private: bool changed; char *current; - bool timeshiftActive; + eRecType_t timeShiftActive; public: cVeDrCurrentTime(void); virtual ~cVeDrCurrentTime(void); void SetTokenContainer(void); - void Set(const char *current, bool timeshiftActive = false); + void Set(const char *current, eRecType_t timeShiftActive = NoRec); bool Parse(bool forced = false); }; @@ -59,13 +66,13 @@ class cVeDrTotalTime : public cViewElement { private: bool changed; char *total; - bool timeshiftActive; + eRecType_t timeShiftActive; char *timeshiftDuration; public: cVeDrTotalTime(void); virtual ~cVeDrTotalTime(void); void SetTokenContainer(void); - void Set(const char *total, const char *timeshiftDuration = NULL, bool timeshiftActive = false); + void Set(const char *total, const char *timeshiftDuration = NULL, eRecType_t timeShiftActive = NoRec); bool Parse(bool forced = false); }; @@ -78,12 +85,12 @@ private: cString playbacktime; cString timeshiftrest; bool changed; - bool timeshiftActive; + eRecType_t timeShiftActive; public: cVeDrTimeshiftTimes(void); virtual ~cVeDrTimeshiftTimes(void); void SetTokenContainer(void); - void Set(cString start, cString playbacktime, cString timeshiftrest, bool timeshiftActive = false); + void Set(cString start, cString playbacktime, cString timeshiftrest, eRecType_t timeShiftActive = NoRec); bool Parse(bool forced = false); }; @@ -93,13 +100,13 @@ public: class cVeDrEndTime : public cViewElement { private: cString end; - bool timeshiftActive; + eRecType_t timeShiftActive; bool changed; public: cVeDrEndTime(void); virtual ~cVeDrEndTime(void); void SetTokenContainer(void); - void Set(cString end, bool timeshiftActive = false); + void Set(cString end, eRecType_t timeShiftActive = NoRec); bool Parse(bool forced = false); }; @@ -110,14 +117,14 @@ class cVeDrProgressBar : public cViewElement { private: int current; int total; - bool timeshiftActive; + eRecType_t timeShiftActive; int timeshiftTotal; bool changed; public: cVeDrProgressBar(void); virtual ~cVeDrProgressBar(void); void SetTokenContainer(void); - void Set(int current, int total, bool timeshiftActive = false, int timeshiftTotal = 0); + void Set(int current, int total, eRecType_t timeShiftActive = NoRec, int timeshiftTotal = 0); bool Parse(bool forced = false); }; @@ -130,7 +137,7 @@ private: const cMarks *marks; int current; int total; - bool timeshiftActive; + eRecType_t timeShiftActive; int timeshiftTotal; int numMarksLast; int *lastMarks; @@ -141,7 +148,7 @@ public: cVeDrCutMarks(void); virtual ~cVeDrCutMarks(void); void SetTokenContainer(void); - void Set(const cMarks *marks, int current, int total, bool timeshiftActive = false, int timeshiftTotal = 0); + void Set(const cMarks *marks, int current, int total, eRecType_t timeShiftActive = NoRec, int timeshiftTotal = 0); void Reset(void); bool Parse(bool forced = false); }; |
