]> git.vomp.tv Git - vompclient.git/blob - vtimerlist.h
Change ChannelList back to std::vector, use custom deleter in shared_ptr
[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 "messagequeue.h"
27 #include "wselectlist.h"
28 #include "region.h"
29
30 class VTimerList : public TBBoxx, public TimerReceiver, public MessageReceiver
31 {
32   public:
33     VTimerList();
34     ~VTimerList();
35     void preDelete();
36
37     int handleCommand(int command);
38     void timercall(int clientReference);
39     void processMessage(Message* m);
40     bool load();
41     void draw();
42
43   private:
44     void drawClock();
45     void drawShowing();
46     void drawData();
47     void drawIndicators();
48     void quickUpdate();
49
50     RecTimerList* recTimerList{};
51     WSelectList sl;
52     bool flipflop{true};
53     Region clockRegion;
54     Region indicatorsRegion;
55 };
56
57 #endif