X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fdvb%2Ffrontend.h;h=db1c364445ab9428cb798e9e4da36b6cf5bbc46b;hb=3e3832c8784e966dca29354c158ffb636f33c8cb;hp=df028c19c3a29ee41a970ebfaac51e0e715ee26c;hpb=d28a04695ff2ac8931c89c0d08a4cc7931916dd8;p=vuplus_dvbapp diff --git a/lib/dvb/frontend.h b/lib/dvb/frontend.h index df028c1..db1c364 100644 --- a/lib/dvb/frontend.h +++ b/lib/dvb/frontend.h @@ -16,18 +16,18 @@ public: eDVBFrontendParameters(); ~eDVBFrontendParameters() {} - RESULT getSystem(int &type) const; - RESULT getDVBS(eDVBFrontendParametersSatellite &SWIG_OUTPUT) const; - RESULT getDVBC(eDVBFrontendParametersCable &SWIG_OUTPUT) const; - RESULT getDVBT(eDVBFrontendParametersTerrestrial &SWIG_OUTPUT) const; - RESULT setDVBS(const eDVBFrontendParametersSatellite &p, bool no_rotor_command_on_tune=false); RESULT setDVBC(const eDVBFrontendParametersCable &p); RESULT setDVBT(const eDVBFrontendParametersTerrestrial &p); - - RESULT calculateDifference(const iDVBFrontendParameters *parm, int &SWIG_OUTPUT, bool exact) const; - - RESULT getHash(unsigned long &SWIG_OUTPUT) const; + +#ifndef SWIG + RESULT getSystem(int &type) const; + RESULT getDVBS(eDVBFrontendParametersSatellite &) const; + RESULT getDVBC(eDVBFrontendParametersCable &) const; + RESULT getDVBT(eDVBFrontendParametersTerrestrial &) const; + RESULT calculateDifference(const iDVBFrontendParameters *parm, int &, bool exact) const; + RESULT getHash(unsigned long &) const; +#endif }; #ifndef SWIG @@ -38,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]; @@ -89,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(); @@ -109,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();