2016-02-06 09:55:15 +01:00
|
|
|
#ifndef __VIEWELEMENTSDC_H
|
|
|
|
#define __VIEWELEMENTSDC_H
|
|
|
|
|
|
|
|
#include "viewelement.h"
|
|
|
|
#include "../extensions/scrapmanager.h"
|
2016-05-04 16:21:42 +02:00
|
|
|
#include "../extensions/globaltimers.h"
|
2016-02-06 09:55:15 +01:00
|
|
|
#include "../services/dvbapi.h"
|
|
|
|
|
|
|
|
/******************************************************************
|
|
|
|
* cVeDcChannelInfo
|
|
|
|
******************************************************************/
|
|
|
|
class cVeDcChannelInfo : public cViewElement {
|
|
|
|
private:
|
|
|
|
public:
|
|
|
|
cVeDcChannelInfo(void);
|
|
|
|
virtual ~cVeDcChannelInfo(void);
|
|
|
|
void SetTokenContainer(void);
|
|
|
|
void Set(const cChannel *c, int number);
|
|
|
|
};
|
|
|
|
/******************************************************************
|
|
|
|
* cVeDcChannelGroup
|
|
|
|
******************************************************************/
|
|
|
|
class cVeDcChannelGroup : public cViewElement {
|
|
|
|
private:
|
|
|
|
const char *GetChannelSep(const cChannel *c, bool prev);
|
|
|
|
public:
|
|
|
|
cVeDcChannelGroup(void);
|
|
|
|
virtual ~cVeDcChannelGroup(void);
|
|
|
|
void SetTokenContainer(void);
|
|
|
|
void Set(const cChannel *c);
|
|
|
|
};
|
|
|
|
/******************************************************************
|
|
|
|
* cVeDcEpgInfo
|
|
|
|
******************************************************************/
|
|
|
|
class cVeDcEpgInfo : public cViewElement {
|
|
|
|
private:
|
2016-05-04 16:21:42 +02:00
|
|
|
cGlobalTimers *globalTimers;
|
2016-02-06 09:55:15 +01:00
|
|
|
bool EventHasTimer(const cEvent *e);
|
|
|
|
public:
|
|
|
|
cVeDcEpgInfo(void);
|
|
|
|
virtual ~cVeDcEpgInfo(void);
|
2016-05-04 16:21:42 +02:00
|
|
|
void SetGlobalTimers(cGlobalTimers *globalTimers) { this->globalTimers = globalTimers; };
|
2016-02-06 09:55:15 +01:00
|
|
|
void SetTokenContainer(void);
|
|
|
|
void Set(const cEvent *p, const cEvent *f);
|
2016-03-06 09:22:35 +01:00
|
|
|
void Close(void);
|
2016-02-06 09:55:15 +01:00
|
|
|
};
|
|
|
|
/******************************************************************
|
|
|
|
* cVeDcProgressBar
|
|
|
|
******************************************************************/
|
|
|
|
class cVeDcProgressBar : public cViewElement {
|
|
|
|
private:
|
|
|
|
int currentLast;
|
|
|
|
int startTime;
|
2021-02-10 13:33:54 +01:00
|
|
|
int endTime;
|
2016-02-06 09:55:15 +01:00
|
|
|
int duration;
|
|
|
|
int GetLiveBuffer(void);
|
|
|
|
public:
|
|
|
|
cVeDcProgressBar(void);
|
|
|
|
virtual ~cVeDcProgressBar(void);
|
|
|
|
void Close(void);
|
|
|
|
void SetTokenContainer(void);
|
|
|
|
void Set(const cEvent *p);
|
|
|
|
bool Parse(bool forced = false);
|
|
|
|
};
|
|
|
|
/******************************************************************
|
|
|
|
* cVeDcStatusInfo
|
|
|
|
******************************************************************/
|
|
|
|
class cVeDcStatusInfo : public cViewElement {
|
|
|
|
private:
|
2016-05-04 16:21:42 +02:00
|
|
|
cGlobalTimers *globalTimers;
|
2016-02-06 09:55:15 +01:00
|
|
|
bool CheckMails(void);
|
|
|
|
public:
|
|
|
|
cVeDcStatusInfo(void);
|
|
|
|
virtual ~cVeDcStatusInfo(void);
|
2016-05-04 16:21:42 +02:00
|
|
|
void SetGlobalTimers(cGlobalTimers *globalTimers) { this->globalTimers = globalTimers; };
|
2016-02-06 09:55:15 +01:00
|
|
|
void SetTokenContainer(void);
|
|
|
|
void Set(const cChannel *c);
|
|
|
|
};
|
|
|
|
/******************************************************************
|
|
|
|
* cVeDcAudioInfo
|
|
|
|
******************************************************************/
|
|
|
|
class cVeDcAudioInfo : public cViewElement {
|
|
|
|
private:
|
|
|
|
int lastNumAudioTracks;
|
|
|
|
int lastAudioChannel;
|
|
|
|
char *lastTracDesc;
|
|
|
|
char *lastTrackLang;
|
|
|
|
public:
|
|
|
|
cVeDcAudioInfo(void);
|
|
|
|
virtual ~cVeDcAudioInfo(void);
|
|
|
|
void Close(void);
|
|
|
|
void SetTokenContainer(void);
|
|
|
|
bool Parse(bool forced = false);
|
|
|
|
};
|
|
|
|
/******************************************************************
|
|
|
|
* cVeDcScreenResolution
|
|
|
|
******************************************************************/
|
|
|
|
class cVeDcScreenResolution : public cViewElement {
|
|
|
|
private:
|
|
|
|
int lastScreenWidth;
|
|
|
|
int lastScreenHeight;
|
2016-03-06 07:15:22 +01:00
|
|
|
double lastAspect;
|
2016-02-06 09:55:15 +01:00
|
|
|
public:
|
|
|
|
cVeDcScreenResolution(void);
|
|
|
|
virtual ~cVeDcScreenResolution(void);
|
|
|
|
void Close(void);
|
|
|
|
void SetTokenContainer(void);
|
|
|
|
bool Parse(bool forced = false);
|
|
|
|
};
|
|
|
|
/******************************************************************
|
|
|
|
* cVeDcSignalQuality
|
|
|
|
******************************************************************/
|
|
|
|
class cVeDcSignalQuality : public cViewElement {
|
|
|
|
private:
|
|
|
|
int lastSignalDisplay;
|
|
|
|
int lastSignalStrength;
|
|
|
|
int lastSignalQuality;
|
|
|
|
public:
|
|
|
|
cVeDcSignalQuality(void);
|
|
|
|
virtual ~cVeDcSignalQuality(void);
|
|
|
|
void Close(void);
|
|
|
|
void SetTokenContainer(void);
|
|
|
|
bool Parse(bool forced = false);
|
|
|
|
};
|
|
|
|
/******************************************************************
|
|
|
|
* cVeDcScraperContent
|
|
|
|
******************************************************************/
|
|
|
|
class cVeDcScraperContent : public cViewElement, public cScrapManager {
|
|
|
|
private:
|
|
|
|
public:
|
|
|
|
cVeDcScraperContent(void);
|
|
|
|
virtual ~cVeDcScraperContent(void);
|
2016-03-30 17:17:34 +02:00
|
|
|
void Close(void);
|
2016-02-06 09:55:15 +01:00
|
|
|
void SetTokenContainer(void);
|
|
|
|
void Set(const cEvent *e);
|
|
|
|
};
|
|
|
|
/******************************************************************
|
|
|
|
* cVeDcEcmInfo
|
|
|
|
******************************************************************/
|
|
|
|
class cVeDcEcmInfo : public cViewElement {
|
|
|
|
private:
|
|
|
|
int channelSid;
|
|
|
|
sDVBAPIEcmInfo lastEcmInfo;
|
|
|
|
bool CompareECMInfos(sDVBAPIEcmInfo *ecmInfo);
|
|
|
|
public:
|
|
|
|
cVeDcEcmInfo(void);
|
|
|
|
virtual ~cVeDcEcmInfo(void);
|
|
|
|
void Close(void);
|
|
|
|
void SetTokenContainer(void);
|
|
|
|
void Set(const cChannel *c);
|
|
|
|
bool Parse(bool forced = false);
|
|
|
|
};
|
|
|
|
|
2016-05-26 10:47:45 +02:00
|
|
|
/******************************************************************
|
|
|
|
* cVeDcChannelHints
|
|
|
|
******************************************************************/
|
|
|
|
class cVeDcChannelHints : public cViewElement {
|
|
|
|
private:
|
|
|
|
const cChannel **hints;
|
|
|
|
int numHints;
|
|
|
|
int current;
|
|
|
|
int hintsIndex;
|
|
|
|
bool active;
|
|
|
|
public:
|
|
|
|
cVeDcChannelHints(void);
|
|
|
|
virtual ~cVeDcChannelHints(void);
|
|
|
|
void Close(void);
|
|
|
|
void SetTokenContainer(void);
|
|
|
|
void SetNumHints(int num);
|
|
|
|
void SetHint(const cChannel *c);
|
|
|
|
bool Parse(bool forced = false);
|
|
|
|
bool Active(void) { return active; };
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************
|
|
|
|
* cVeDcChannelDetail
|
|
|
|
******************************************************************/
|
|
|
|
class cVeDcChannelDetail : public cViewElement, public cScrapManager {
|
|
|
|
private:
|
|
|
|
const cChannel *channel;
|
|
|
|
int actorsIndex;
|
|
|
|
public:
|
|
|
|
cVeDcChannelDetail(void);
|
|
|
|
virtual ~cVeDcChannelDetail(void);
|
|
|
|
void Close(void);
|
|
|
|
void SetTokenContainer(void);
|
|
|
|
void Set(const cChannel *c);
|
|
|
|
bool Parse(bool forced = false);
|
|
|
|
};
|
|
|
|
|
|
|
|
class cVeDcChannelListDetail : public cVeDcChannelDetail {
|
|
|
|
public:
|
|
|
|
cVeDcChannelListDetail(void) {};
|
|
|
|
virtual ~cVeDcChannelListDetail(void) {};
|
|
|
|
};
|
|
|
|
|
|
|
|
class cVeDcGroupChannelListDetail : public cVeDcChannelDetail {
|
|
|
|
public:
|
|
|
|
cVeDcGroupChannelListDetail(void) {};
|
|
|
|
virtual ~cVeDcGroupChannelListDetail(void) {};
|
|
|
|
};
|
2021-02-10 13:33:54 +01:00
|
|
|
#endif //__VIEWELEMENTSDC_H
|