]> git.vomp.tv Git - vompclient.git/blob - vvideorec.h
Some radio playback support
[vompclient.git] / vvideorec.h
1 /*
2     Copyright 2004-2005 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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19 */
20
21 #ifndef VVIDEOREC_H
22 #define VVIDEOREC_H
23
24 #include <stdio.h>
25
26 #include "video.h"
27 #include "view.h"
28 #include "player.h"
29 #include "vdr.h"
30 #include "recording.h"
31 #include "command.h"
32 #include "colour.h"
33 #include "osd.h"
34 #include "timers.h"
35 #include "timerreceiver.h"
36 #include "message.h"
37 #include "wwss.h"
38
39 //#include "vepg.h" // for testing EPG in NTSC with a NTSC test video
40
41 class Timers;
42
43 class VVideoRec : public View, public TimerReceiver
44 {
45   public:
46     VVideoRec(Recording* rec);
47     ~VVideoRec();
48     void draw();
49     int handleCommand(int command);
50     void go(bool resume);
51
52     void timercall(int clientReference);
53     void processMessage(Message* m);
54
55   private:
56     VDR* vdr;
57     Video* video;
58     Timers* timers;
59     Player* player;
60     Recording* myRec;
61
62     Colour transparent;
63     Colour barBlue;
64
65     UCHAR videoMode;
66     void toggleChopSides();
67
68     bool playing;
69     bool barShowing;
70     bool stickyBar;
71     bool isRadio;
72
73     void doBar(int action);
74     void drawBarClocks();
75     void stopPlay();
76     void removeBar();
77     Region barRegion;
78     Region clocksRegion;
79
80     UINT startMargin;
81     UINT endMargin;
82
83     Wwss wss;
84     Region wssRegion;
85     bool dowss;
86 };
87
88 #endif