vdr-plugin-skindesigner/coreengine/viewdisplaychannel.h

79 lines
2.5 KiB
C
Raw Normal View History

2016-02-06 09:55:15 +01:00
#ifndef __VIEWDISPLAYCHANNEL_H
#define __VIEWDISPLAYCHANNEL_H
#include "view.h"
2016-05-04 16:21:42 +02:00
#include "../extensions/globaltimers.h"
2016-02-06 09:55:15 +01:00
2016-05-26 10:47:45 +02:00
enum eDisplayMode {
dmDefault,
dmChannelGroups
};
2016-02-06 09:55:15 +01:00
class cViewChannel : public cView {
private:
2016-05-26 10:47:45 +02:00
cVeMessage *veMessage;
cVeCustomTokens *veCustomTokens;
cVeDcChannelInfo *veChannelInfo;
cVeDcChannelGroup *veChannelGroup;
cVeDcEpgInfo *veEpgInfo;
cVeDcProgressBar *veProgressBar;
cVeDcStatusInfo *veStatusInfo;
cVeDcScraperContent *veScraperContent;
cVeDcEcmInfo *veEcmInfo;
#ifdef USE_ZAPCOCKPIT
cVeDcChannelHints *veChannelHints;
cVeDcChannelDetail *veChannelDetail;
cVeDcChannelListDetail *veChannelListDetail;
cVeDcGroupChannelListDetail *veGroupChannelListDetail;
cViewListChannelList *channelList;
cViewListGroupList *groupList;
cViewListChannelList *groupChannelList;
eDisplaychannelView viewType;
eDisplaychannelView viewTypeLast;
bool initExtended;
bool displayList;
bool initList;
bool channelHints;
bool channelInput;
#endif
2016-02-06 09:55:15 +01:00
bool channelChange;
2016-05-26 10:47:45 +02:00
eDisplayMode mode;
bool timersLoaded;
2016-05-04 16:21:42 +02:00
cGlobalTimers globalTimers;
2016-02-06 09:55:15 +01:00
void SetViewElements(void);
void ClearVariables(void);
void SetViewElementObjects(void);
2016-05-26 10:47:45 +02:00
void ClearBasic(bool clearBackground);
void ClearExtended(void);
void ClearOnDisplay(void);
void DrawBasic(bool initial);
void HideBasic(void);
void ShowBasic(void);
void DrawExtended(void);
2016-02-06 09:55:15 +01:00
public:
cViewChannel(void);
virtual ~cViewChannel(void);
2016-05-26 10:47:45 +02:00
void SetGlobals(cGlobals *globals);
void PreCache(void);
void AddChannelViewList(const char *listName, cViewList *viewList);
void GetTimers(void);
2016-02-06 09:55:15 +01:00
void SetChannel(const cChannel *channel, int number);
void SetEvents(const cEvent *present, const cEvent *following);
void SetMessage(eMessageType type, const char *text);
2016-05-26 10:47:45 +02:00
#ifdef USE_ZAPCOCKPIT
void SetViewType(eDisplaychannelView viewType);
int MaxItems(void);
bool KeyRightOpensChannellist(void);
2016-05-26 10:47:45 +02:00
void SetChannelInfo(const cChannel *channel);
void SetChannelList(const cChannel *channel, int index, bool current);
void SetGroupList(const char *group, int numChannels, int index, bool current);
void ClearList(void);
void SetNumChannelHints(int num);
void SetChannelHint(const cChannel *channel);
#endif
void Close(void);
2016-07-22 15:21:09 +02:00
void Flush(void);
2016-02-06 09:55:15 +01:00
};
#endif //__VIEWDISPLAYCHANNEL_H