2015-03-28 11:57:51 +01:00
|
|
|
#ifndef __DISPLAYCHANNELVIEWELEMENTS_H
|
|
|
|
#define __DISPLAYCHANNELVIEWELEMENTS_H
|
|
|
|
|
|
|
|
#include "../libtemplate/template.h"
|
|
|
|
#include "view.h"
|
|
|
|
#include "viewhelpers.h"
|
|
|
|
|
|
|
|
class cViewElementDevices : public cViewElement, public cViewHelpers {
|
|
|
|
private:
|
|
|
|
bool init;
|
2015-04-01 13:26:36 +02:00
|
|
|
bool light;
|
2015-03-28 11:57:51 +01:00
|
|
|
public:
|
2015-04-01 13:26:36 +02:00
|
|
|
cViewElementDevices(bool light, cTemplateViewElement *tmplViewElement);
|
2015-03-28 11:57:51 +01:00
|
|
|
virtual ~cViewElementDevices() {};
|
|
|
|
bool Render(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
class cViewElementSignal : public cViewElement, public cViewHelpers {
|
|
|
|
private:
|
|
|
|
public:
|
|
|
|
cViewElementSignal(cTemplateViewElement *tmplViewElement);
|
|
|
|
virtual ~cViewElementSignal() {};
|
|
|
|
bool Render(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
class cViewElementWeather : public cViewElement, public cViewHelpers {
|
|
|
|
private:
|
|
|
|
public:
|
|
|
|
cViewElementWeather(cTemplateViewElement *tmplViewElement);
|
|
|
|
virtual ~cViewElementWeather() {};
|
|
|
|
bool Render(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
class cViewElementDate : public cViewElement, public cViewHelpers {
|
|
|
|
private:
|
2015-04-07 17:46:39 +02:00
|
|
|
bool init;
|
2015-03-28 11:57:51 +01:00
|
|
|
public:
|
|
|
|
cViewElementDate(cTemplateViewElement *tmplViewElement);
|
|
|
|
virtual ~cViewElementDate() {};
|
|
|
|
bool Render(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
class cViewElementTime : public cViewElement, public cViewHelpers {
|
|
|
|
private:
|
2015-04-07 17:46:39 +02:00
|
|
|
bool init;
|
2015-03-28 11:57:51 +01:00
|
|
|
public:
|
|
|
|
cViewElementTime(cTemplateViewElement *tmplViewElement);
|
|
|
|
virtual ~cViewElementTime() {};
|
|
|
|
bool Render(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
enum ScraperContentType {
|
|
|
|
ctPosterBanner,
|
|
|
|
ctFull
|
|
|
|
};
|
|
|
|
|
|
|
|
class cViewElementScraperContent : public cViewElement, public cViewHelpers {
|
|
|
|
private:
|
|
|
|
ScraperContentType type;
|
|
|
|
const cEvent *event;
|
|
|
|
public:
|
|
|
|
cViewElementScraperContent(const cEvent *event, ScraperContentType type, cTemplateViewElement *tmplViewElement);
|
|
|
|
virtual ~cViewElementScraperContent() {};
|
|
|
|
bool Render(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
class cViewElementCustomTokens : public cViewElement, public cViewHelpers {
|
|
|
|
private:
|
|
|
|
cTemplateView *tmplView;
|
|
|
|
public:
|
|
|
|
cViewElementCustomTokens(cTemplateViewElement *tmplViewElement, cTemplateView *tmplView);
|
|
|
|
virtual ~cViewElementCustomTokens() {};
|
|
|
|
bool Render(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
class cViewElementTimers : public cViewElement, public cViewHelpers {
|
|
|
|
private:
|
|
|
|
public:
|
|
|
|
cViewElementTimers(cTemplateViewElement *tmplViewElement);
|
|
|
|
virtual ~cViewElementTimers() {};
|
|
|
|
bool Render(void);
|
|
|
|
};
|
|
|
|
|
2015-03-29 13:29:59 +02:00
|
|
|
class cViewElementLastRecordings : public cViewElement, public cViewHelpers {
|
|
|
|
private:
|
|
|
|
public:
|
|
|
|
cViewElementLastRecordings(cTemplateViewElement *tmplViewElement);
|
|
|
|
virtual ~cViewElementLastRecordings() {};
|
|
|
|
bool Render(void);
|
|
|
|
};
|
|
|
|
|
2015-03-28 11:57:51 +01:00
|
|
|
class cViewElementDiscUsage : public cViewElement, public cViewHelpers {
|
|
|
|
private:
|
|
|
|
public:
|
|
|
|
cViewElementDiscUsage(cTemplateViewElement *tmplViewElement);
|
|
|
|
virtual ~cViewElementDiscUsage() {};
|
|
|
|
bool Render(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
class cViewElementSystemLoad : public cViewElement, public cViewHelpers {
|
|
|
|
private:
|
|
|
|
public:
|
|
|
|
cViewElementSystemLoad(cTemplateViewElement *tmplViewElement);
|
|
|
|
virtual ~cViewElementSystemLoad() {};
|
|
|
|
bool Render(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
class cViewElementSystemMemory : public cViewElement, public cViewHelpers {
|
|
|
|
private:
|
|
|
|
public:
|
|
|
|
cViewElementSystemMemory(cTemplateViewElement *tmplViewElement);
|
|
|
|
virtual ~cViewElementSystemMemory() {};
|
|
|
|
bool Render(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
class cViewElementTemperature : public cViewElement, public cViewHelpers {
|
|
|
|
private:
|
|
|
|
public:
|
|
|
|
cViewElementTemperature(cTemplateViewElement *tmplViewElement);
|
|
|
|
virtual ~cViewElementTemperature() {};
|
|
|
|
bool Render(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
class cViewElementCurrentSchedule : public cViewElement, public cViewHelpers {
|
|
|
|
private:
|
2015-04-01 10:14:26 +02:00
|
|
|
string currentRecording;
|
2015-03-28 11:57:51 +01:00
|
|
|
public:
|
2015-04-01 10:14:26 +02:00
|
|
|
cViewElementCurrentSchedule(cTemplateViewElement *tmplViewElement, string currentRecording);
|
2015-03-28 11:57:51 +01:00
|
|
|
virtual ~cViewElementCurrentSchedule() {};
|
|
|
|
bool Render(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //__DISPLAYCHANNELVIEWELEMENTS_H
|