]> git.vomp.tv Git - vompclient.git/blob - vvideorec.h
Teletext
[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 #include "osdreceiver.h"
32
33 class VDR;
34 class Video;
35 class Timers;
36 class Player;
37 class Recording;
38 class VAudioSelector;
39 class Message;
40 class BoxStack;
41 class VInfo;
42 class Bitmap;
43
44 //#include "vepg.h" // for testing EPG in NTSC with a NTSC test video
45
46 class VVideoRec : public Boxx, public TimerReceiver, public OSDReceiver
47 {
48   public:
49     VVideoRec(Recording* rec);
50     ~VVideoRec();
51     void preDelete();
52     int handleCommand(int command);
53     void go(bool resume);
54
55     void timercall(int clientReference);
56     void processMessage(Message* m);
57
58     void drawOSDBitmap(UINT posX, UINT posY, const Bitmap&);
59     void clearOSD();
60     void clearOSDArea(UINT posX, UINT posY, UINT width, UINT height);
61
62     void doTeletext();
63
64   private:
65     BoxStack* boxstack;
66     VDR* vdr;
67     Video* video;
68     Timers* timers;
69     Player* player;
70     Recording* myRec;
71
72     VAudioSelector* vas;
73
74     Colour transparent;
75     Colour barBlue;
76
77     UCHAR videoMode;
78     void toggleChopSides();
79
80     bool playing;
81
82     bool barShowing;
83     bool barGenHold;
84     bool barScanHold;
85     bool barVasHold;
86
87     void doAudioSelector();
88     void doBar(int action);
89     void drawBarClocks();
90     void stopPlay();
91     void removeBar();
92     void doSummary();
93     void removeSummary();
94     Region barRegion;
95     Region clocksRegion;
96
97     UINT startMargin;
98     UINT endMargin;
99
100     Wwss wss;
101     Region wssRegion;
102     bool dowss;
103     
104     VInfo* vsummary;
105 };
106
107 #endif