X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fdvb%2Ffrontend.h;h=41de874b158e7c48b30c20274434439504e7b45b;hp=0bef95d1ad8eb6c246719995c341deb2b4823cdf;hb=0980594e3037839b361eae71646ccf960aaa2659;hpb=49fbebfa0877a8c794163b5b0fcb89fd38141c1b diff --git a/lib/dvb/frontend.h b/lib/dvb/frontend.h index 0bef95d..41de874 100644 --- a/lib/dvb/frontend.h +++ b/lib/dvb/frontend.h @@ -2,6 +2,7 @@ #define __dvb_frontend_h #include + class eDVBFrontendParameters: public iDVBFrontendParameters { DECLARE_REF(eDVBFrontendParameters); @@ -14,20 +15,22 @@ class eDVBFrontendParameters: public iDVBFrontendParameters int m_type; public: eDVBFrontendParameters(); - ~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 getDVBS(eDVBFrontendParametersSatellite &) const; + RESULT getDVBC(eDVBFrontendParametersCable &) const; + RESULT getDVBT(eDVBFrontendParametersTerrestrial &) 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; + + RESULT calculateDifference(const iDVBFrontendParameters *parm, int &, bool exact) const; + + RESULT getHash(unsigned long &) const; }; #ifndef SWIG @@ -38,6 +41,7 @@ class eSecCommandList; class eDVBFrontend: public iDVBFrontend, public Object { DECLARE_REF(eDVBFrontend); + bool m_enabled; int m_type; int m_dvbid; int m_slotid; @@ -93,6 +97,7 @@ class eDVBFrontend: public iDVBFrontend, public Object int readInputpower(); bool setSecSequencePos(int steps); void setRotorData(int pos, int cmd); + static int PriorityOrder; public: eDVBFrontend(int adap, int fe, int &ok); virtual ~eDVBFrontend(); @@ -113,7 +118,7 @@ public: RESULT getData(int num, int &data); RESULT setData(int num, int val); - int readFrontendData(int type); // bitErrorRate, signalPower, signalPowerdB, signalQuality, locked, synced + int readFrontendData(int type); // bitErrorRate, signalPower, signalQualitydB, signalQuality, locked, synced void getFrontendStatus(ePyObject dest); void getTransponderData(ePyObject dest, bool original); void getFrontendData(ePyObject dest); @@ -121,7 +126,9 @@ public: int isCompatibleWith(ePtr &feparm); int getDVBID() { return m_dvbid; } int getSlotID() { return m_slotid; } - void setSlotInfo(ePyObject obj); // get a tuple (slotid, slotdescr) + bool setSlotInfo(ePyObject obj); // get a tuple (slotid, slotdescr) + static void setTypePriorityOrder(int val) { PriorityOrder = val; } + static int getTypePriorityOrder() { return PriorityOrder; } int openFrontend(); int closeFrontend();