2014-09-27 09:25:14 +02:00
|
|
|
#ifndef __DISPLAYCHANNELVIEW_H
|
|
|
|
#define __DISPLAYCHANNELVIEW_H
|
|
|
|
|
|
|
|
#include "../libtemplate/template.h"
|
|
|
|
#include "view.h"
|
2014-10-25 20:10:00 +02:00
|
|
|
#include "viewhelpers.h"
|
2014-09-27 09:25:14 +02:00
|
|
|
|
2014-10-25 20:10:00 +02:00
|
|
|
class cDisplayChannelView : public cView, public cViewHelpers {
|
2014-09-27 09:25:14 +02:00
|
|
|
private:
|
|
|
|
int lastScreenWidth;
|
|
|
|
int lastScreenHeight;
|
2014-10-17 17:44:02 +02:00
|
|
|
int lastNumAudioTracks;
|
|
|
|
int lastAudioChannel;
|
|
|
|
string lastTracDesc;
|
|
|
|
string lastTrackLang;
|
2014-09-27 09:25:14 +02:00
|
|
|
string GetChannelSep(const cChannel *channel, bool prev);
|
|
|
|
virtual void Action(void);
|
|
|
|
public:
|
|
|
|
cDisplayChannelView(cTemplateView *tmplView);
|
|
|
|
virtual ~cDisplayChannelView();
|
|
|
|
bool createOsd(void);
|
|
|
|
void DrawBackground(void);
|
|
|
|
void DrawChannel(cString &number, cString &name, cString &id, bool switching);
|
|
|
|
void ClearChannel(void);
|
|
|
|
void DrawDate(void);
|
2015-01-06 06:07:48 +01:00
|
|
|
void DrawTime(void);
|
2014-09-27 09:25:14 +02:00
|
|
|
void DrawProgressBar(cString &start, cString &stop, int Current, int Total);
|
|
|
|
void ClearProgressBar(void);
|
|
|
|
void DrawProgressBarBack(void);
|
|
|
|
void ClearProgressBarBack(void);
|
|
|
|
void DrawEPGInfo(const cEvent *present, const cEvent *next, bool presentRecording, bool nextRecording);
|
|
|
|
void ClearEPGInfo(void);
|
|
|
|
void DrawStatusIcons(const cChannel *Channel);
|
|
|
|
void ClearStatusIcons(void);
|
2014-10-17 17:44:02 +02:00
|
|
|
void DrawAudioInfo(void);
|
|
|
|
void ClearAudioInfo(void);
|
2015-04-26 14:05:14 +02:00
|
|
|
void DrawEncryptionInfo(int channelSid);
|
|
|
|
void ClearEncryptionInfo(void);
|
2014-09-27 09:25:14 +02:00
|
|
|
void DrawScreenResolution(void);
|
|
|
|
void ClearScreenResolution(void);
|
|
|
|
void DrawScraperContent(const cEvent *event);
|
|
|
|
void ClearScraperContent(void);
|
|
|
|
void DrawSignal(void);
|
|
|
|
void DrawSignalBackground(void);
|
|
|
|
void ClearSignal(void);
|
|
|
|
void ClearSignalBackground(void);
|
2014-10-25 20:10:00 +02:00
|
|
|
void DrawDevices(bool initial);
|
|
|
|
void ClearDevices(void);
|
2014-09-27 09:25:14 +02:00
|
|
|
void DrawChannelGroups(const cChannel *Channel, cString ChannelName);
|
|
|
|
void ClearChannelGroups(void);
|
|
|
|
void DisplayMessage(eMessageType Type, const char *Text);
|
2014-10-11 16:31:39 +02:00
|
|
|
void DrawCustomTokens(void);
|
2015-01-13 09:01:11 +01:00
|
|
|
void DrawCurrentWeather(void);
|
2014-09-27 09:25:14 +02:00
|
|
|
void DoStart(void) { Start(); };
|
|
|
|
void Flush(void) { DoFlush(); };
|
|
|
|
};
|
|
|
|
#endif //__DISPLAYCHANNELVIEW_H
|