2 Copyright 2007 Chris Tallon
4 This file is part of VOMP.
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.
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.
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.
21 #ifndef VVIDEOLIVETV_H
22 #define VVIDEOLIVETV_H
33 #include "wselectlist.h"
34 #include "timerreceiver.h"
45 class VVideoLiveTV : public Boxx, public TimerReceiver
48 VVideoLiveTV(ChannelList* chanList, ULONG initialChannelNumber, VChannelList* vchannelList);
50 int handleCommand(int command);
51 void processMessage(Message* m);
55 bool channelChange(UCHAR changeType, UINT newData);
56 // changeType = INDEX = (newData is a channel index in the list)
57 // = NUMBER = (newData is a real channel number)
58 // = OFFSET = (newData is UP or DOWN)
60 const static UCHAR INDEX = 1;
61 const static UCHAR NUMBER = 2;
62 const static UCHAR OFFSET = 3;
63 const static UCHAR PREVIOUS = 4;
64 const static UCHAR UP = 1;
65 const static UCHAR DOWN = 2;
67 void timercall(int ref);
75 ChannelList* chanList;
76 VChannelList* vchannelList;
82 UINT currentChannelIndex;
83 UINT previousChannelIndex;
89 void doLeftRight(bool right);
90 void doUpDown(bool down);
91 void doChanUpDown(int which); // UP or DOWN
92 void doKey(int command);
95 void doAudioSelector();
97 UINT upChannel(UINT index);
98 UINT downChannel(UINT index);
99 void toggleChopSides();
101 void displayOSD(bool newNowNextData);
105 void setNowNextData();
106 void setSummaryData();
117 WTextbox osdChanName;
127 WSymbol sAspectRatio;
130 WTextbox textSummary;
131 Boxx summaryBlackLine;
133 Region osdSummaryRegion;