vdr-plugin-tvguide/tvguideosd.h

67 lines
1.7 KiB
C
Raw Normal View History

2019-07-11 11:07:13 +02:00
#ifndef __TVGUIDE_TVGUIDEOSD_H
#define __TVGUIDE_TVGUIDEOSD_H
2019-07-11 14:40:41 +02:00
#include "timemanager.h"
2019-07-11 15:11:26 +02:00
#include "gridelement.h"
2019-07-11 12:06:18 +02:00
#include "channelepg.h"
2019-07-11 11:07:13 +02:00
#include "statusheader.h"
#include "detailview.h"
#include "timeline.h"
#include "channelgroups.h"
#include "footer.h"
#include "recmenuview.h"
#include "channeljump.h"
// --- cTvGuideOsd -------------------------------------------------------------
class cTvGuideOsd : public cOsdObject {
private:
2019-07-11 14:34:31 +02:00
cTimeManager *timeManager;
2019-07-11 12:06:18 +02:00
cList<cChannelEpg> columns;
2019-07-11 15:06:07 +02:00
cGridElement *activeGrid;
2019-07-11 11:07:13 +02:00
cStatusHeader *statusHeader;
cDetailView *detailView;
cTimeLine *timeLine;
cChannelGroups *channelGroups;
cFooter *footer;
cRecMenuView *recMenuView;
cChannelJump *channelJumper;
2019-07-11 14:14:51 +02:00
int GetLastValidChannel(void);
2019-07-11 11:07:13 +02:00
bool detailViewActive;
void drawOsd();
void readChannels(const cChannel *channelStart);
void drawGridsChannelJump(int offset = 0);
void drawGridsTimeJump();
void processKeyUp();
void processKeyDown();
void processKeyLeft();
void processKeyRight();
void processKeyRed();
void processKeyGreen();
void processKeyYellow();
eOSState processKeyBlue(bool *alreadyUnlocked);
eOSState processKeyOk(bool *alreadyUnlocked);
void processNumKey(int numKey);
void TimeJump(int mode);
void ChannelJump(int num);
void CheckTimeout(void);
2019-07-11 15:06:07 +02:00
void setNextActiveGrid(cGridElement *next);
2019-07-11 11:07:13 +02:00
void channelForward();
void channelBack();
void timeForward();
void timeBack();
void ScrollForward();
void ScrollBack();
eOSState ChannelSwitch(bool *alreadyUnlocked);
void DetailedEPG();
void SetTimers();
void dump();
public:
cTvGuideOsd(void);
virtual ~cTvGuideOsd(void);
virtual void Show(void);
virtual eOSState ProcessKey(eKeys Key);
};
#endif //__TVGUIDE_TVGUIDEOSD_H