X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fdvb%2Fdvb.h;h=ff9ea6ff44e64d501ce3d56ca23f09d8168468c7;hp=f612affb67c1ebe930a4c938e0845c44352c8072;hb=46c144d3f294b74996cc9276528a9862e4d70efe;hpb=0b019e9dd85ac88917984e90a9e27ae4cb496b0b diff --git a/lib/dvb/dvb.h b/lib/dvb/dvb.h index f612aff..ff9ea6f 100644 --- a/lib/dvb/dvb.h +++ b/lib/dvb/dvb.h @@ -12,6 +12,7 @@ #include #include #include +#include #include @@ -135,7 +136,7 @@ class eDVBResourceManager: public iObject, public Object DECLARE_REF(eDVBResourceManager); int avail, busy; - enum { DM7025, DM800, DM500HD, DM800SE, DM8000 }; + enum { DM7025, DM800, DM500HD, DM800SE, DM8000, DM7020HD }; int m_boxtype; @@ -158,8 +159,11 @@ class eDVBResourceManager: public iObject, public Object ePtr m_list; ePtr m_sec; static eDVBResourceManager *instance; - + + ePtr m_fbc_mng; + friend class eDVBChannel; + friend class eFBCTunerManager; RESULT addChannel(const eDVBChannelID &chid, eDVBChannel *ch); RESULT removeChannel(eDVBChannel *ch); @@ -191,11 +195,11 @@ public: }; RESULT connectChannelAdded(const Slot1 &channelAdded, ePtr &connection); - int canAllocateChannel(const eDVBChannelID &channelid, const eDVBChannelID &ignore, bool simulate=false); + int canAllocateChannel(const eDVBChannelID &channelid, const eDVBChannelID &ignore, int &system, bool simulate=false); /* allocate channel... */ RESULT allocateChannel(const eDVBChannelID &channelid, eUsePtr &channel, bool simulate=false); - RESULT allocatePVRChannel(eUsePtr &channel); + RESULT allocatePVRChannel(const eDVBChannelID &channelid, eUsePtr &channel); static RESULT getInstance(ePtr &); /* allocates a frontend able to tune to frontend paramters 'feperm'. @@ -218,6 +222,8 @@ public: PSignal1 frontendUseMaskChanged; SWIG_VOID(RESULT) allocateRawChannel(eUsePtr &SWIG_OUTPUT, int slot_index); PyObject *setFrontendSlotInformations(SWIG_PYOBJECT(ePyObject) list); + bool frontendIsCompatible(int index, const char *type); + void setFrontendType(int index, const char *type); }; SWIG_TEMPLATE_TYPEDEF(ePtr, eDVBResourceManager); SWIG_EXTEND(ePtr, @@ -281,6 +287,7 @@ private: Signal1 m_stateChanged; Signal2 m_event; int m_state; + ePtr m_source; /* for channel list */ ePtr m_mgr;