X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/fba15fa1e8e9dacba942dd21ad3245a4a68c3be8..f990151461bd800976ffc1382b674a537b8f1a3a:/lib/dvb/dvb.h diff --git a/lib/dvb/dvb.h b/lib/dvb/dvb.h index bc51ccd8..037c1974 100644 --- a/lib/dvb/dvb.h +++ b/lib/dvb/dvb.h @@ -23,6 +23,7 @@ class eDVBRegisteredFrontend: public iObject, public Object { DECLARE_REF(eDVBRegisteredFrontend); eTimer *disable; + Signal0 stateChanged; void closeFrontend() { if (!m_inuse && m_frontend->closeFrontend()) // frontend busy @@ -38,12 +39,18 @@ public: void dec_use() { if (!--m_inuse) + { + /* emit */ stateChanged(); disable->start(3000, true); + } } void inc_use() { if (++m_inuse == 1) + { m_frontend->openFrontend(); + /* emit */ stateChanged(); + } } iDVBAdapter *m_adapter; ePtr m_frontend; @@ -168,13 +175,14 @@ class eDVBResourceManager: public iObject, public Object Signal1 m_channelAdded; - bool canAllocateFrontend(ePtr &feparm); + int canAllocateFrontend(ePtr &feparm); eUsePtr m_cached_channel; Connection m_cached_channel_state_changed_conn; eTimer m_releaseCachedChannelTimer; void DVBChannelStateChanged(iDVBChannel*); void releaseCachedChannel(); + void feStateChanged(); #ifndef SWIG public: #endif @@ -191,7 +199,7 @@ public: }; RESULT connectChannelAdded(const Slot1 &channelAdded, ePtr &connection); - bool canAllocateChannel(const eDVBChannelID &channelid, const eDVBChannelID &ignore); + int canAllocateChannel(const eDVBChannelID &channelid, const eDVBChannelID &ignore); /* allocate channel... */ RESULT allocateChannel(const eDVBChannelID &channelid, eUsePtr &channel); @@ -199,6 +207,7 @@ public: #ifdef SWIG public: #endif + PSignal1 frontendUseMaskChanged; RESULT allocateRawChannel(eUsePtr &, int frontend_index); static RESULT getInstance(ePtr &); };