X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/c61d41422afe49ea1c31bc14913452ef3b571c21..68794a76cf18bbf9fd6970bdce4e5074896129c7:/lib/dvb/frontend.h diff --git a/lib/dvb/frontend.h b/lib/dvb/frontend.h index 3670ceb8..6bf36466 100644 --- a/lib/dvb/frontend.h +++ b/lib/dvb/frontend.h @@ -14,6 +14,7 @@ class eDVBFrontendParameters: public iDVBFrontendParameters int m_type; public: eDVBFrontendParameters(); + ~eDVBFrontendParameters() {} RESULT getSystem(int &type) const; RESULT getDVBS(eDVBFrontendParametersSatellite &SWIG_OUTPUT) const; @@ -24,7 +25,7 @@ public: RESULT setDVBC(const eDVBFrontendParametersCable &p); RESULT setDVBT(const eDVBFrontendParametersTerrestrial &p); - RESULT calculateDifference(const iDVBFrontendParameters *parm, int &SWIG_OUTPUT) const; + RESULT calculateDifference(const iDVBFrontendParameters *parm, int &SWIG_OUTPUT, bool exact) const; RESULT getHash(unsigned long &SWIG_OUTPUT) const; }; @@ -37,10 +38,14 @@ class eSecCommandList; class eDVBFrontend: public iDVBFrontend, public Object { DECLARE_REF(eDVBFrontend); + bool m_enabled; int m_type; - int m_fe; + int m_dvbid; + int m_slotid; int m_fd; + bool m_need_rotor_workaround; char m_filename[128]; + char m_description[128]; #if HAVE_DVB_API_VERSION < 3 int m_secfd; char m_sec_filename[128]; @@ -69,6 +74,8 @@ class eDVBFrontend: public iDVBFrontend, public Object LINKED_NEXT_PTR, // next double linked list (for linked FEs) SATPOS_DEPENDS_PTR, // pointer to FE with configured rotor (with twin/quattro lnb) FREQ_OFFSET, // current frequency offset + CUR_VOLTAGE, // current voltage + CUR_TONE, // current continuous tone NUM_DATA_ENTRIES }; @@ -79,7 +86,6 @@ class eDVBFrontend: public iDVBFrontend, public Object int m_timeoutCount; // needed for timeout int m_retryCount; // diseqc retry for rotor - int m_curVoltage; void feEvent(int); void timeout(); @@ -87,6 +93,7 @@ class eDVBFrontend: public iDVBFrontend, public Object void setFrontend(); int readInputpower(); bool setSecSequencePos(int steps); + void setRotorData(int pos, int cmd); public: eDVBFrontend(int adap, int fe, int &ok); virtual ~eDVBFrontend(); @@ -107,11 +114,15 @@ public: RESULT getData(int num, int &data); RESULT setData(int num, int val); - int readFrontendData(int type); // bitErrorRate, signalPower, signalQuality, locked, synced - PyObject *readTransponderData(bool original); + int readFrontendData(int type); // bitErrorRate, signalPower, signalPowerdB, signalQuality, locked, synced + void getFrontendStatus(ePyObject dest); + void getTransponderData(ePyObject dest, bool original); + void getFrontendData(ePyObject dest); int isCompatibleWith(ePtr &feparm); - int getID() { return m_fe; } + int getDVBID() { return m_dvbid; } + int getSlotID() { return m_slotid; } + bool setSlotInfo(ePyObject obj); // get a tuple (slotid, slotdescr) int openFrontend(); int closeFrontend();