Remove check legacy dvbapi version.
[vuplus_dvbapp] / lib / dvb / frontend.h
index 3e8cdbd..6a8c39d 100644 (file)
@@ -47,6 +47,9 @@ class eDVBFrontend: public iDVBFrontend, public Object
 {
 public:
        enum {
+               LINKABLE_CSW,
+               LINKABLE_UCSW,
+               LINKABLE_TONEBURST,
                NEW_CSW,
                NEW_UCSW,
                NEW_TONEBURST,
@@ -64,6 +67,8 @@ public:
                CUR_VOLTAGE,          // current voltage
                CUR_TONE,             // current continuous tone
                SATCR,                // current SatCR
+               DICTION,              // current diction
+               PIN,                  // pin 
                NUM_DATA_ENTRIES
        };
        Signal1<void,iDVBFrontend*> m_stateChanged;
@@ -71,6 +76,8 @@ private:
        DECLARE_REF(eDVBFrontend);
        bool m_simulate;
        bool m_enabled;
+       bool m_fbc;
+       bool m_is_usbtuner;
        eDVBFrontend *m_simulate_fe; // only used to set frontend type in dvb.cpp
        int m_dvbid;
        int m_slotid;
@@ -80,10 +87,6 @@ private:
        std::map<fe_delivery_system_t, bool> m_delsys, m_delsys_whitelist;
        char m_filename[128];
        char m_description[128];
-#if HAVE_DVB_API_VERSION < 3
-       int m_secfd;
-       char m_sec_filename[128];
-#endif
        FRONTENDPARAMETERS parm;
        eDVBFrontendParameters oparm;
 
@@ -144,6 +147,7 @@ public:
        static int getTypePriorityOrder() { return PriorityOrder; }
        static void setPreferredFrontend(int index) { PreferredFrontendIndex = index; }
        static int getPreferredFrontend() { return PreferredFrontendIndex; }
+
        bool supportsDeliverySystem(const fe_delivery_system_t &sys, bool obeywhitelist);
        void setDeliverySystemWhitelist(const std::vector<fe_delivery_system_t> &whitelist);
 
@@ -152,6 +156,13 @@ public:
        int closeFrontend(bool force=false, bool no_delayed=false);
        const char *getDescription() const { return m_description; }
        bool is_simulate() const { return m_simulate; }
+       bool is_FBCTuner() { return m_fbc; }
+       void setFBCTuner(bool enable) { m_fbc = enable; }
+       bool getEnabled() { return m_enabled; }
+       void setEnabled(bool enable) { m_enabled = enable; }
+       bool isLoopTimerActive() { return m_tuneTimer->isActive(); }
+       bool isScheduledSendDiseqc();
+       void setUSBTuner(bool yesno) { m_is_usbtuner = yesno; }
 };
 
 #endif // SWIG