X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/83068cdf211abb9ea524d3e75f8228d987e7bdd6..1d9b83e416ec6471e53844c80626dbf22a411e90:/lib/dvb/dvb.h diff --git a/lib/dvb/dvb.h b/lib/dvb/dvb.h index d0deb2fc..0e1c8af5 100644 --- a/lib/dvb/dvb.h +++ b/lib/dvb/dvb.h @@ -158,14 +158,17 @@ public: /* allocate channel... */ RESULT allocateChannel(const eDVBChannelID &channelid, eUsePtr &channel); RESULT allocateRawChannel(eUsePtr &channel); - RESULT allocatePVRChannel(int caps); + RESULT allocatePVRChannel(eUsePtr &channel); RESULT connectChannelAdded(const Slot1 &channelAdded, ePtr &connection); RESULT connectChannelRemoved(const Slot1 &channelRemoved, ePtr &connection); RESULT connectChannelRunning(const Slot1 &channelRemoved, ePtr &connection); }; -class eDVBChannel: public iDVBChannel, public Object +class eFilePushThread; + + /* iDVBPVRChannel includes iDVBChannel. don't panic. */ +class eDVBChannel: public iDVBPVRChannel, public Object { DECLARE_REF(eDVBChannel); private: @@ -182,6 +185,9 @@ private: void frontendStateChanged(iDVBFrontend*fe); ePtr m_conn_frontendStateChanged; + + /* for PVR playback */ + eFilePushThread *m_pvr_thread; friend class eUsePtr; /* use count */ @@ -193,6 +199,7 @@ public: virtual ~eDVBChannel(); /* only for managed channels - effectively tunes to the channelid. should not be used... */ + /* cannot be used for PVR channels. */ RESULT setChannel(const eDVBChannelID &id); eDVBChannelID getChannelID() { return m_channel_id; } @@ -202,6 +209,9 @@ public: RESULT setCIRouting(const eDVBCIRouting &routing); RESULT getDemux(ePtr &demux); RESULT getFrontend(ePtr &frontend); + + /* iDVBPVRChannel */ + RESULT playFile(const char *file); }; #endif