mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
50 lines
2.8 KiB
C++
50 lines
2.8 KiB
C++
#ifndef __VIEWHELPERS_H
|
|
#define __VIEWHELPERS_H
|
|
|
|
#include "../services/dvbapi.h"
|
|
|
|
class cViewHelpers {
|
|
private:
|
|
int numDevices;
|
|
bool devicesInit;
|
|
int* lastSignalStrength;
|
|
int* lastSignalQuality;
|
|
bool* recDevices;
|
|
int lSignalDisplay;
|
|
int lSignalStrength;
|
|
int lSignalQuality;
|
|
int lastSecond;
|
|
int lastMinute;
|
|
double lastSystemLoad;
|
|
int lastMemUsage;
|
|
sDVBAPIEcmInfo lastEcmInfo;
|
|
void RecName(string &path, string &name, string &folder);
|
|
void RecPoster(const cRecording *rec, int &posterWidth, int &posterHeight, string &path, bool &hasPoster);
|
|
void SetCurrentScheduleFromChannel(const cChannel *channel, map < string, string > &stringTokens, map < string, int > &intTokens);
|
|
void SetCurrentScheduleFromRecording(const cRecording *recording, map < string, string > &stringTokens, map < string, int > &intTokens);
|
|
bool CompareECMInfos(sDVBAPIEcmInfo *ecmInfo);
|
|
protected:
|
|
void InitDevices(void);
|
|
bool SetDevices(bool initial, bool light, map<string,int> *intTokens, vector<map<string,string> > *devices);
|
|
bool SetSignal(map < string, int > &intTokens);
|
|
bool CheckNewMails(void);
|
|
void SetScraperTokens(const cEvent *event, const cRecording *recording, map < string, string > &stringTokens, map < string, int > &intTokens, map < string, vector< map< string, string > > > &loopTokens);
|
|
void SetPosterBanner(const cEvent *event, map < string, string > &stringTokens, map < string, int > &intTokens);
|
|
bool SetTime(bool forced, map < string, string > &stringTokens, map < string, int > &intTokens);
|
|
bool SetDate(bool forced, map < string, string > &stringTokens, map < string, int > &intTokens);
|
|
bool SetCurrentWeatherTokens(map < string, string > &stringTokens, map < string, int > &intTokens);
|
|
void SetTimers(map<string,int> *intTokens, map<string,string> *stringTokens, vector<map<string,string> > *timers);
|
|
void SetLastRecordings(map<string,int> *intTokens, map<string,string> *stringTokens, vector<map<string,string> > *lastRecordings);
|
|
void SetMenuHeader(eMenuCategory cat, string menuTitle, map < string, string > &stringTokens, map < string, int > &intTokens);
|
|
void SetDiscUsage(map < string, string > &stringTokens, map < string, int > &intTokens);
|
|
bool SetSystemLoad(map < string, string > &stringTokens, map < string, int > &intTokens);
|
|
bool SetSystemMemory(map < string, string > &stringTokens, map < string, int > &intTokens);
|
|
bool SetSystemTemperatures(map < string, string > &stringTokens, map < string, int > &intTokens);
|
|
void SetCurrentSchedule(string recName, map < string, string > &stringTokens, map < string, int > &intTokens);
|
|
bool SetEcmInfos(int channelSid, map < string, string > &stringTokens, map < string, int > &intTokens);
|
|
public:
|
|
cViewHelpers(void);
|
|
virtual ~cViewHelpers(void);
|
|
};
|
|
|
|
#endif //__VIEWHELPERS_H
|