]> git.vomp.tv Git - vompclient.git/blob - vvideorec.h
Audio channel selection code *unfinished*
[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 #include "vaudioselector.h"
39
40 //#include "vepg.h" // for testing EPG in NTSC with a NTSC test video
41
42 class Timers;
43
44 class VVideoRec : public View, public TimerReceiver
45 {
46   public:
47     VVideoRec(Recording* rec);
48     ~VVideoRec();
49     void draw();
50     int handleCommand(int command);
51     void go(bool resume);
52
53     void timercall(int clientReference);
54     void processMessage(Message* m);
55
56   private:
57     ViewMan* viewman;
58     VDR* vdr;
59     Video* video;
60     Timers* timers;
61     Player* player;
62     Recording* myRec;
63
64     Colour transparent;
65     Colour barBlue;
66
67     UCHAR videoMode;
68     void toggleChopSides();
69
70     bool playing;
71     bool barShowing;
72     bool stickyBar;
73     bool isRadio;
74
75     void doAudioSelector();
76     void doBar(int action);
77     void drawBarClocks();
78     void stopPlay();
79     void removeBar();
80     Region barRegion;
81     Region clocksRegion;
82
83     UINT startMargin;
84     UINT endMargin;
85
86     Wwss wss;
87     Region wssRegion;
88     bool dowss;
89 };
90
91 #endif