2004-03-03 03:20:00 +01:00
|
|
|
/*
|
|
|
|
* Frontend Status Monitor plugin for the Video Disk Recorder
|
|
|
|
*
|
|
|
|
* See the README file for copyright information and how to reach the author.
|
|
|
|
*
|
|
|
|
* $Id$
|
|
|
|
*/
|
|
|
|
|
2004-02-15 03:20:00 +01:00
|
|
|
#ifndef __FEMONOSD_H
|
|
|
|
#define __FEMONOSD_H
|
|
|
|
|
|
|
|
#include <linux/dvb/frontend.h>
|
|
|
|
#include <sys/time.h>
|
|
|
|
#include <sys/ioctl.h>
|
|
|
|
#include <vdr/osd.h>
|
|
|
|
#include <vdr/thread.h>
|
|
|
|
#include <vdr/status.h>
|
|
|
|
#include <vdr/channels.h>
|
|
|
|
#include <vdr/font.h>
|
|
|
|
|
|
|
|
class cFemonOsd : public cOsdObject, public cThread, public cStatus {
|
|
|
|
private:
|
|
|
|
bool m_Active;
|
|
|
|
cOsdBase *m_Osd;
|
2004-03-03 03:20:00 +01:00
|
|
|
tWindowHandle m_InfoWindow;
|
|
|
|
tWindowHandle m_StatusWindow;
|
2004-02-26 03:20:00 +01:00
|
|
|
cFemonReceiver *m_Receiver;
|
2004-02-15 03:20:00 +01:00
|
|
|
int m_Frontend;
|
|
|
|
struct dvb_frontend_info m_FrontendInfo;
|
|
|
|
int m_Number;
|
2004-03-16 03:20:00 +01:00
|
|
|
int m_OldNumber;
|
2004-02-15 03:20:00 +01:00
|
|
|
int m_InputTime;
|
2004-03-03 03:20:00 +01:00
|
|
|
uint16_t m_SNR;
|
|
|
|
uint16_t m_Signal;
|
|
|
|
uint32_t m_BER;
|
|
|
|
uint32_t m_UNC;
|
|
|
|
fe_status_t m_FrontendStatus;
|
|
|
|
int m_DisplayMode;
|
|
|
|
cMutex* m_Mutex;
|
|
|
|
void DrawStatusWindow(void);
|
|
|
|
void DrawInfoWindow(void);
|
2004-02-15 03:20:00 +01:00
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void Action(void);
|
|
|
|
virtual void ChannelSwitch(const cDevice * device, int channelNumber);
|
|
|
|
|
|
|
|
public:
|
|
|
|
cFemonOsd(void);
|
|
|
|
~cFemonOsd();
|
|
|
|
|
|
|
|
virtual void Show(void);
|
|
|
|
virtual eOSState ProcessKey(eKeys Key);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //__FEMONOSD_H
|
|
|
|
|