mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
45 lines
2.6 KiB
C++
45 lines
2.6 KiB
C++
#ifndef __VIEWHELPERS_H
|
|
#define __VIEWHELPERS_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;
|
|
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);
|
|
protected:
|
|
void InitDevices(void);
|
|
bool SetDevices(bool initial, 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(map < string, string > &stringTokens, map < string, int > &intTokens);
|
|
bool SetDate(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);
|
|
public:
|
|
cViewHelpers(void);
|
|
virtual ~cViewHelpers(void);
|
|
};
|
|
|
|
#endif //__VIEWHELPERS_H
|