]> git.vomp.tv Git - vompclient.git/blob - vradiorec.h
DrawStyle: Add consts, add white and transparent statics
[vompclient.git] / vradiorec.h
1 /*
2     Copyright 2004-2020 Chris Tallon
3
4     This file is part of VOMP.
5
6     VOMP is free software; you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by
8     the Free Software Foundation; either version 2 of the License, or
9     (at your option) any later version.
10
11     VOMP is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     GNU General Public License for more details.
15
16     You should have received a copy of the GNU General Public License
17     along with VOMP.  If not, see <https://www.gnu.org/licenses/>.
18 */
19
20 #ifndef VRADIOREC_H
21 #define VRADIOREC_H
22
23 #include "boxx.h"
24 #include "timers.h"
25 #include "defines.h"
26 #include "colour.h"
27 #include "region.h"
28
29 class Recording;
30 class Message;
31 class VDR;
32 class Video;
33 class PlayerRadioRec;
34 class BoxStack;
35
36 class VRadioRec : public Boxx, public TimerReceiver
37 {
38   public:
39     VRadioRec(Recording* rec);
40     ~VRadioRec();
41     void draw();
42     void preDelete();
43     int handleCommand(int command);
44     void go(bool resume);
45
46     void timercall(int clientReference);
47     void processMessage(Message* m);
48
49   private:
50     VDR* vdr;
51     Video* video;
52     Timers* timers;
53     PlayerRadioRec* player;
54     Recording* myRec;
55     BoxStack* boxstack;
56
57     DrawStyle barBlue;
58
59     bool playing;
60     bool barShowing;
61     bool stickyBar;
62
63     void doBar(int action);
64     void drawBarClocks();
65     void stopPlay();
66     void removeBar();
67     Region barRegion;
68     Region clocksRegion;
69
70     UINT startMargin;
71     UINT endMargin;
72 };
73
74 #endif