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 cViewElementScraperContent : public cViewElement, public cViewHelpers {
|
|
|
|
private:
|
|
|
|
const cEvent *event;
|
2015-06-13 15:41:41 +02:00
|
|
|
const cRecording *recording;
|
2015-03-28 11:57:51 +01:00
|
|
|
public:
|
2015-06-13 15:41:41 +02:00
|
|
|
cViewElementScraperContent(const cEvent *event, const cRecording *recording, cTemplateViewElement *tmplViewElement);
|
2015-03-28 11:57:51 +01:00
|
|
|
virtual ~cViewElementScraperContent() {};
|
2015-05-14 06:45:03 +02:00
|
|
|
void SetEvent(const cEvent *event) { this->event = event; };
|
2015-06-13 15:41:41 +02:00
|
|
|
void SetRecording(const cRecording *recording) { this->recording = recording; };
|
2015-03-28 11:57:51 +01:00
|
|
|
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-05-10 12:55:23 +02:00
|
|
|
class cViewElementCurrentSchedule : public cViewElement, public cViewHelpers {
|
2015-03-28 11:57:51 +01:00
|
|
|
private:
|
2015-05-10 12:55:23 +02:00
|
|
|
string currentRecording;
|
2015-03-28 11:57:51 +01:00
|
|
|
public:
|
2015-05-10 12:55:23 +02:00
|
|
|
cViewElementCurrentSchedule(cTemplateViewElement *tmplViewElement, string currentRecording);
|
|
|
|
virtual ~cViewElementCurrentSchedule() {};
|
2015-03-28 11:57:51 +01:00
|
|
|
bool Render(void);
|
|
|
|
};
|
|
|
|
|
2015-05-10 12:55:23 +02:00
|
|
|
class cViewElementMenuHeader : public cViewElement, public cViewHelpers {
|
2015-03-28 11:57:51 +01:00
|
|
|
private:
|
2015-05-10 12:55:23 +02:00
|
|
|
eMenuCategory cat;
|
|
|
|
string menuTitle;
|
2015-03-28 11:57:51 +01:00
|
|
|
public:
|
2015-05-10 12:55:23 +02:00
|
|
|
cViewElementMenuHeader(cTemplateViewElement *tmplViewElement, eMenuCategory cat, string menuTitle);
|
|
|
|
virtual ~cViewElementMenuHeader() {};
|
2015-03-28 11:57:51 +01:00
|
|
|
bool Render(void);
|
|
|
|
};
|
|
|
|
|
2015-05-14 11:26:30 +02:00
|
|
|
class cViewElementMenuMessage : public cViewElement, public cViewHelpers {
|
|
|
|
private:
|
|
|
|
eMessageType type;
|
|
|
|
string text;
|
|
|
|
public:
|
|
|
|
cViewElementMenuMessage(cTemplateViewElement *tmplViewElement, eMessageType type, string text);
|
|
|
|
virtual ~cViewElementMenuMessage() {};
|
|
|
|
bool Render(void);
|
|
|
|
};
|
|
|
|
|
2015-03-28 11:57:51 +01:00
|
|
|
#endif //__DISPLAYCHANNELVIEWELEMENTS_H
|