]> git.vomp.tv Git - vompclient.git/blob - vradiorec.h
More compiler warning fixes
[vompclient.git] / vradiorec.h
1 /*
2     Copyright 2004-2006 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, write to the Free Software
18     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
19 */
20
21 #ifndef VRADIOREC_H
22 #define VRADIOREC_H
23
24 #include <stdio.h>
25
26 #include "boxx.h"
27 #include "timerreceiver.h"
28 #include "defines.h"
29 #include "colour.h"
30 #include "region.h"
31
32 class Recording;
33 class Message;
34 class VDR;
35 class Video;
36 class PlayerRadio;
37 class Timers;
38 class BoxStack;
39
40 class VRadioRec : public Boxx, public TimerReceiver
41 {
42   public:
43     VRadioRec(Recording* rec);
44     ~VRadioRec();
45     void draw();
46     void preDelete();
47     int handleCommand(int command);
48     void go();
49
50     void timercall(int clientReference);
51     void processMessage(Message* m);
52
53   private:
54     VDR* vdr;
55     Video* video;
56     Timers* timers;
57     PlayerRadio* player;
58     Recording* myRec;
59     BoxStack* boxstack;
60
61     DrawStyle barBlue;
62     DrawStyle transparent;
63
64     bool playing;
65     bool barShowing;
66     bool stickyBar;
67
68     void doBar(int action);
69     void drawBarClocks();
70     void stopPlay();
71     void removeBar();
72     Region barRegion;
73     Region clocksRegion;
74
75     UINT startMargin;
76     UINT endMargin;
77 };
78
79 #endif