X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/1aeefd997cc362c3b37c1587c5f08891b35c3a75..4f17f88e3c8f08b73081d264e5ea734de3c66ace:/lib/dvb/frontend.h diff --git a/lib/dvb/frontend.h b/lib/dvb/frontend.h index c179d574..1a68f89e 100644 --- a/lib/dvb/frontend.h +++ b/lib/dvb/frontend.h @@ -1,11 +1,15 @@ #ifndef __dvb_frontend_h #define __dvb_frontend_h +#include #include +#include + +class eSecCommandList; class eDVBFrontendParameters: public iDVBFrontendParameters { - DECLARE_REF; + DECLARE_REF(eDVBFrontendParameters); union { eDVBFrontendParametersSatellite sat; @@ -32,18 +36,26 @@ public: class eDVBFrontend: public iDVBFrontend, public Object { - DECLARE_REF; + DECLARE_REF(eDVBFrontend); int m_type; int m_fd; +#if HAVE_DVB_API_VERSION < 3 + int m_secfd; +#endif + FRONTENDPARAMETERS parm; int m_state; Signal1 m_stateChanged; ePtr m_sec; eSocketNotifier *m_sn; int m_tuning; eTimer *m_timeout; - + eTimer *m_tuneTimer; + void feEvent(int); void timeout(); + eSecCommandList m_sec_sequence; + void tuneLoop(); // called by m_tuneTimer + void setFrontend(); public: eDVBFrontend(int adap, int fe, int &ok); virtual ~eDVBFrontend(); @@ -55,7 +67,9 @@ public: RESULT setTone(int tone); RESULT setVoltage(int voltage); RESULT sendDiseqc(const eDVBDiseqcCommand &diseqc); + RESULT sendToneburst(int burst); RESULT setSEC(iDVBSatelliteEquipmentControl *sec); + RESULT setSecSequence(const eSecCommandList &list); }; #endif