summaryrefslogtreecommitdiff
path: root/coreengine/viewdisplayreplay.h
blob: f1eec6763da46770eeee044e93fd98c7aa21ee2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#ifndef __VIEWDISPLAYREPLAY_H
#define __VIEWDISPLAYREPLAY_H

#include "view.h"

class cViewReplay : public cView {
private:
    cVeMessage             *veMessage;
    cVeCustomTokens        *veCustomTokens;
    cVeDrRecTitle          *veRecTitle;
    cVeDrRecInfo           *veRecInfo;
    cVeDrScraperContent    *veScraperContent;
    cVeDrCurrentTime       *veCurrentTime;
    cVeDrTotalTime         *veTotalTime;
    cVeDrTimeshiftTimes    *veTimeshiftTimes;
    cVeDrEndTime           *veEndTime;
    cVeDrProgressBar       *veProgressbar;
    cVeDrCutMarks          *veCutMarks;
    cVeDrProgressModeonly  *veProgressModeOnly;
    cVeDrControlIcons      *veControlIcons;
    cVeDrControlIcons      *veControlIconsModeOnly;
    cVeDrJump              *veJump;
    cVeDrOnPause           *veOnPause;
    cVeDrOnPause           *veOnPauseModeOnly;
    const cRecording *recording;
    const cEvent *lastEvent;
    bool modeOnly;
    time_t lastFlush;
    time_t lastFlushModeOnly;
    bool message;
    int reclength;
    eRecType_t timeShiftActive;
    int timeShiftFramesTotal;
    int timeShiftLength;
    cString timeshiftrest;
    cString timeShiftDuration;
    bool timersLoaded;
    cGlobalTimers globalTimers;
    void GetGlobalTimers(void);
    void SetViewElements(void);
    void ClearVariables(void);
    void SetViewElementObjects(void);
    void SetProgressModeOnly(void);
public:
    cViewReplay(void);
    virtual ~cViewReplay(void);
    void PreCache(void);
    void SetModeOnly(bool modeOnly) { this->modeOnly = modeOnly; };
    void SetRecording(const cRecording *recording);
    void SetTimeShiftValues(int current, int total);
    void SetTitle(const char *title);
    void SetCurrent(const char *current);
    void SetTotal(const char *total);
    void SetTimeshiftTimes(int current, int total);
    void SetEndTime(int current, int total);
    void SetProgressbar(int current, int total);
    void SetMarks(const cMarks *marks, int current, int total);
    void SetControlIcons(bool play, bool forward, int speed);
    void SetJump(const char *jump);
    void SetMessage(eMessageType type, const char *text);
    void StartOnPause(const char *recfilename);
    void ClearOnPause(void);
    void DelayOnPause(void);
    void Flush(void);
};

#endif //__VIEWDISPLAYREPLAY_H1