]> git.vomp.tv Git - vompclient.git/blob - vvideorec.h
Removal of Message::REDRAW and BoxStack handler for it
[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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
19 */
20
21 #ifndef VVIDEOREC_H
22 #define VVIDEOREC_H
23
24 #include <stdio.h>
25
26 #include "boxx.h"
27 #include "timerreceiver.h"
28 #include "wwss.h"
29 #include "region.h"
30 #include "colour.h"
31
32 class VDR;
33 class Video;
34 class Timers;
35 class Player;
36 class Recording;
37 class VAudioSelector;
38 class Message;
39 class BoxStack;
40 class VInfo;
41
42 //#include "vepg.h" // for testing EPG in NTSC with a NTSC test video
43
44 class VVideoRec : public Boxx, public TimerReceiver
45 {
46   public:
47     VVideoRec(Recording* rec);
48     ~VVideoRec();
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     BoxStack* boxstack;
57     VDR* vdr;
58     Video* video;
59     Timers* timers;
60     Player* player;
61     Recording* myRec;
62
63     VAudioSelector* vas;
64
65     Colour transparent;
66     Colour barBlue;
67
68     UCHAR videoMode;
69     void toggleChopSides();
70
71     bool playing;
72
73     bool barShowing;
74     bool barGenHold;
75     bool barScanHold;
76     bool barVasHold;
77
78     void doAudioSelector();
79     void doBar(int action);
80     void drawBarClocks();
81     void stopPlay();
82     void removeBar();
83     void doSummary();
84     void removeSummary();
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     VInfo* vsummary;
96 };
97
98 #endif