]> git.vomp.tv Git - vompclient.git/blob - vepgsettimer.h
Windows fixes
[vompclient.git] / vepgsettimer.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, see <https://www.gnu.org/licenses/>.
18 */
19
20 #ifndef VEPGSETTIMER_H
21 #define VEPGSETTIMER_H
22
23 #include "tbboxx.h"
24 #include "wbutton.h"
25
26 class Event;
27 class Channel;
28 class Log;
29 class VDR;
30 class Message;
31 class BoxStack;
32
33 class VEpgSetTimer : public TBBoxx
34 {
35   public:
36     VEpgSetTimer(Event* event, Channel* channel);
37     ~VEpgSetTimer();
38
39     int handleCommand(int command);
40     void processMessage(Message* m);
41     void draw();
42
43   private:
44     BoxStack* boxstack;
45     Log* logger;
46     VDR* vdr;
47
48     Event* event;
49     Channel* channel;
50
51     // This lot is borrowed from VQuestion
52     // A shame not to use it, but this view will probably get
53     // a whole load more controls on it some day
54     const static UCHAR NO = 0;
55     const static UCHAR YES = 1;
56
57     UCHAR selectedOption;
58
59     WButton buttonYes;
60     WButton buttonNo;
61
62     char* genTimerString();
63     void swap();
64     void doit();
65 };
66
67 #endif