]> git.vomp.tv Git - vompclient.git/blob - vtimerlist.h
Windows fixes
[vompclient.git] / vtimerlist.h
1 /*
2     Copyright 2004-2020 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 VTIMERLIST_H
21 #define VTIMERLIST_H
22
23 #include "vdr.h"
24 #include "tbboxx.h"
25 #include "timers.h"
26 #include "wselectlist.h"
27 #include "region.h"
28
29 class Message;
30
31 class VTimerList : public TBBoxx, public TimerReceiver
32 {
33   public:
34     VTimerList();
35     ~VTimerList();
36     void preDelete();
37
38     int handleCommand(int command);
39     void timercall(int clientReference);
40     void processMessage(Message* m);
41     bool load();
42     void draw();
43
44   private:
45     void drawClock();
46     void drawShowing();
47     void drawData();
48     void drawIndicators();
49     void quickUpdate();
50
51     RecTimerList* recTimerList{};
52     WSelectList sl;
53     bool flipflop{true};
54     Region clockRegion;
55     Region indicatorsRegion;
56 };
57
58 #endif