]> git.vomp.tv Git - vompclient.git/blob - vwelcome.h
Sleep timer
[vompclient.git] / vwelcome.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 VWELCOME_H
22 #define VWELCOME_H
23
24 #include <stdio.h>
25 #include <string.h>
26
27 #include "tbboxx.h"
28 #include "timerreceiver.h"
29 #include "wselectlist.h"
30 #include "wjpeg.h"
31 #include "region.h"
32
33 class Message;
34 class BoxStack;
35
36 class VWelcome : public TBBoxx, public TimerReceiver
37 {
38   public:
39     VWelcome();
40     ~VWelcome();
41
42     void create();
43     void preDelete();
44     int handleCommand(int command);
45     void processMessage(Message* m);
46     void draw();
47     void timercall(int clientReference);
48
49   private:
50     WSelectList sl;
51     WJpeg jpeg;
52
53     BoxStack* boxstack;
54
55     void doChannelsList();
56     void doRadioList();
57     void doRecordingsList();
58     void doTimersList();
59     void doOptions();
60     void drawClock();
61     void doMediaList();
62
63     Region clockRegion;
64 };
65
66 #endif