2 Copyright 2004-2020 Chris Tallon, 2014 Marten Richter
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, see <https://www.gnu.org/licenses/>.
20 #ifndef VEPGLIST_ADVANCED_H
21 #define VEPGLIST_ADVANCED_H
27 #include "messagequeue.h"
29 #include "wselectlist.h"
34 class VEpgListAdvanced : public TBBoxx, public MessageReceiver
37 VEpgListAdvanced(MessageReceiver* tvideolive, std::shared_ptr<ChannelList> tchanList, u4 initialChannelNumber);
38 virtual ~VEpgListAdvanced();
40 void draw() { draw(false); }
43 void drawData(bool doIndexPop = false);
57 void updateSelection();
61 void clearEventList();
64 void updateEpgDataChannel();
65 void updateEpgDataNowNext(bool changestate);
66 void drawDataChannel(bool doIndexPop);
67 void drawDataNowNext(bool next, bool doIndexPop);
69 int handleCommand(int command);
70 void processMessage(Message* m);
92 Event* getCurrentOptionEvent(u4& channel);
94 std::shared_ptr<ChannelList> chanList;
96 MessageReceiver* videolive;
108 std::vector<EventList*> eventLista;