2014-10-25 20:10:00 +02:00
|
|
|
#ifndef __VIEWHELPERS_H
|
|
|
|
#define __VIEWHELPERS_H
|
|
|
|
|
2014-11-01 13:19:07 +01:00
|
|
|
class cViewHelpers {
|
2014-10-25 20:10:00 +02:00
|
|
|
private:
|
|
|
|
bool devicesInit;
|
|
|
|
int* lastSignalStrength;
|
|
|
|
int* lastSignalQuality;
|
|
|
|
bool* recDevices;
|
2015-01-06 06:07:48 +01:00
|
|
|
int lastSecond;
|
|
|
|
int lastMinute;
|
2014-10-25 20:10:00 +02:00
|
|
|
protected:
|
2014-10-28 16:39:42 +01:00
|
|
|
void InitDevices(void);
|
|
|
|
bool SetDevices(bool initial, map<string,int> *intTokens, vector<map<string,string> > *devices);
|
2014-11-15 16:24:07 +01:00
|
|
|
bool CheckNewMails(void);
|
2014-11-29 11:23:54 +01:00
|
|
|
void SetScraperTokens(const cEvent *event, const cRecording *recording, map < string, string > &stringTokens, map < string, int > &intTokens, map < string, vector< map< string, string > > > &loopTokens);
|
2015-01-06 06:07:48 +01:00
|
|
|
bool SetTime(map < string, string > &stringTokens, map < string, int > &intTokens);
|
|
|
|
bool SetDate(map < string, string > &stringTokens, map < string, int > &intTokens);
|
2015-01-14 14:20:22 +01:00
|
|
|
bool SetCurrentWeatherTokens(map < string, string > &stringTokens, map < string, int > &intTokens);
|
2014-10-25 20:10:00 +02:00
|
|
|
public:
|
|
|
|
cViewHelpers(void);
|
|
|
|
virtual ~cViewHelpers(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //__VIEWHELPERS_H
|