add lockState and syncState to getFrontendInfo call
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 3 Mar 2006 01:47:19 +0000 (01:47 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 3 Mar 2006 01:47:19 +0000 (01:47 +0000)
add skeleton for getTransponderInfo call

lib/dvb/frontend.cpp
lib/dvb/frontend.h
lib/dvb/idvb.h
lib/service/iservice.h
lib/service/servicedvb.cpp
lib/service/servicedvb.h

index 464ef78..5bb6aeb 100644 (file)
@@ -504,6 +504,12 @@ int eDVBFrontend::readFrontendData(int type)
        return 0;
 }
 
+PyObject *eDVBFrontend::readTransponderData()
+{
+       Py_INCREF(Py_None);
+       return Py_None;
+}
+
 #ifndef FP_IOCTL_GET_ID
 #define FP_IOCTL_GET_ID 0
 #endif
index c28399b..8c5b757 100644 (file)
@@ -101,6 +101,8 @@ public:
        RESULT setData(int num, int val);
 
        int readFrontendData(int type); // bitErrorRate, signalPower, signalQuality, Locked, Synced
+       PyObject *readTransponderData();
+
        int isCompatibleWith(ePtr<iDVBFrontendParameters> &feparm);
        int getID() { return m_fe; }
 
index ada337c..a8f361a 100644 (file)
@@ -361,6 +361,7 @@ public:
                bitErrorRate, signalPower, signalQuality, Locked, Synced
        };
        virtual int readFrontendData(int type)=0;
+       virtual PyObject *readTransponderData()=0;
 
        virtual RESULT getData(int num, int &data)=0;
        virtual RESULT setData(int num, int val)=0;
index 86f2a29..f318318 100644 (file)
@@ -271,9 +271,12 @@ public:
        enum {
                bitErrorRate,
                signalPower,
-               signalQuality
+               signalQuality,
+               LockState,
+               SyncState
        };
        virtual int getFrontendInfo(int w)=0;
+       virtual PyObject *getFrontendTransponderData()=0;
 };
 
 TEMPLATE_TYPEDEF(ePtr<iFrontendStatusInformation>, iFrontendStatusInformationPtr);
index 8ff0725..c3bd1e6 100644 (file)
@@ -1152,6 +1152,26 @@ int eDVBServicePlay::getFrontendInfo(int w)
        return fe->readFrontendData(w);
 }
 
+PyObject *eDVBServicePlay::getFrontendTransponderData()
+{
+       PyObject *ret=0;
+
+       eUsePtr<iDVBChannel> channel;
+       if(!m_service_handler.getChannel(channel))
+       {
+               ePtr<iDVBFrontend> fe;
+               if(!channel->getFrontend(fe))
+                       ret = fe->readTransponderData();
+       }
+
+       if (!ret)
+       {
+               ret = Py_None;
+               Py_INCREF(ret);
+       }
+       return ret;
+}
+
 int eDVBServicePlay::getNumberOfSubservices()
 {
        ePtr<eServiceEvent> evt;
index b243ee0..437a454 100644 (file)
@@ -105,6 +105,7 @@ public:
 
                // iFrontendStatusInformation
        int getFrontendInfo(int w);
+       PyObject *getFrontendTransponderData();
 
                // iSubserviceList
        int getNumberOfSubservices();