2014-10-25 20:10:00 +02:00
|
|
|
#ifndef __VIEWHELPERS_H
|
|
|
|
#define __VIEWHELPERS_H
|
|
|
|
|
2014-10-28 16:39:42 +01:00
|
|
|
#include <vdr/status.h>
|
|
|
|
#include "../libcore/femonreceiver.h"
|
|
|
|
|
|
|
|
class cViewHelpers : public cStatus {
|
2014-10-25 20:10:00 +02:00
|
|
|
private:
|
|
|
|
bool devicesInit;
|
|
|
|
int* lastSignalStrength;
|
|
|
|
int* lastSignalQuality;
|
|
|
|
bool* recDevices;
|
2014-10-28 16:39:42 +01:00
|
|
|
cFemonReceiver *femonReceiver;
|
|
|
|
double bitrateVideoLast;
|
|
|
|
double bitrateAudioLast;
|
|
|
|
double bitrateDolbyLast;
|
2014-10-25 20:10:00 +02:00
|
|
|
protected:
|
2014-10-28 16:39:42 +01:00
|
|
|
virtual void ChannelSwitch(const cDevice *device, int channelNumber, bool liveView);
|
|
|
|
virtual void SetAudioTrack(int Index, const char * const *Tracks);
|
|
|
|
void InitDevices(void);
|
|
|
|
bool SetDevices(bool initial, map<string,int> *intTokens, vector<map<string,string> > *devices);
|
|
|
|
void InitFemonReceiver(void);
|
|
|
|
bool GetBitrates(double &bitrateVideo, double &bitrateAudio, double &bitrateDolby);
|
2014-10-25 20:10:00 +02:00
|
|
|
public:
|
|
|
|
cViewHelpers(void);
|
|
|
|
virtual ~cViewHelpers(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //__VIEWHELPERS_H
|