]> git.vomp.tv Git - vompclient.git/blob - vvideorec.h
Update for windows
[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 class VAudioSelector;
44
45 class VVideoRec : public View, public TimerReceiver
46 {
47   public:
48     VVideoRec(Recording* rec);
49     ~VVideoRec();
50     void draw();
51     int handleCommand(int command);
52     void go(bool resume);
53
54     void timercall(int clientReference);
55     void processMessage(Message* m);
56
57   private:
58     ViewMan* viewman;
59     VDR* vdr;
60     Video* video;
61     Timers* timers;
62     Player* player;
63     Recording* myRec;
64
65     VAudioSelector* vas;
66
67     Colour transparent;
68     Colour barBlue;
69
70     UCHAR videoMode;
71     void toggleChopSides();
72
73     bool playing;
74
75     bool barShowing;
76     bool barGenHold;
77     bool barScanHold;
78     bool barVasHold;
79
80     void doAudioSelector();
81     void doBar(int action);
82     void drawBarClocks();
83     void stopPlay();
84     void removeBar();
85     Region barRegion;
86     Region clocksRegion;
87
88     UINT startMargin;
89     UINT endMargin;
90
91     Wwss wss;
92     Region wssRegion;
93     bool dowss;
94 };
95
96 #endif