diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2021-03-04 16:30:10 +0100 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2021-03-04 17:47:32 +0100 |
commit | fdc8195174cc5f108094967fe41656f81d0b3869 (patch) | |
tree | 4f4470172727594bc269fc97efc7ea9132bf66e1 /coreengine/viewelementsdisplayreplay.h | |
parent | e7ea88c253ad9dcf940b690905e0054896968ddc (diff) | |
download | vdr-plugin-skindesigner-fdc8195174cc5f108094967fe41656f81d0b3869.tar.gz vdr-plugin-skindesigner-fdc8195174cc5f108094967fe41656f81d0b3869.tar.bz2 |
Add active recordings to timeshift mode
If the current program is paused (timeshift mode), a recording
is created with an "@" at the beginning. A skin can display
this mode differently than the normal playback of a recording.
This change also enables a different display mode for currently
active timer recordings.
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); }; |