]> git.vomp.tv Git - vompclient.git/blob - vvideorec.h
Sleep timer
[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     void preDelete();
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     BoxStack* boxstack;
58     VDR* vdr;
59     Video* video;
60     Timers* timers;
61     Player* player;
62     Recording* myRec;
63
64     VAudioSelector* vas;
65
66     Colour transparent;
67     Colour barBlue;
68
69     UCHAR videoMode;
70     void toggleChopSides();
71
72     bool playing;
73
74     bool barShowing;
75     bool barGenHold;
76     bool barScanHold;
77     bool barVasHold;
78
79     void doAudioSelector();
80     void doBar(int action);
81     void drawBarClocks();
82     void stopPlay();
83     void removeBar();
84     void doSummary();
85     void removeSummary();
86     Region barRegion;
87     Region clocksRegion;
88
89     UINT startMargin;
90     UINT endMargin;
91
92     Wwss wss;
93     Region wssRegion;
94     bool dowss;
95     
96     VInfo* vsummary;
97 };
98
99 #endif