4 #include <lib/dvb/idvb.h>
6 class iDVBSectionReader: public iObject
9 virtual RESULT setBufferSize(int size)=0;
10 virtual RESULT start(const eDVBSectionFilterMask &mask)=0;
11 virtual RESULT stop()=0;
12 virtual RESULT connectRead(const Slot1<void,const __u8*> &read, ePtr<eConnection> &conn)=0;
13 virtual ~iDVBSectionReader() { };
16 class iDVBPESReader: public iObject
19 virtual RESULT setBufferSize(int size)=0;
20 virtual RESULT start(int pid)=0;
21 virtual RESULT stop()=0;
22 virtual RESULT connectRead(const Slot2<void,const __u8*, int> &read, ePtr<eConnection> &conn)=0;
23 virtual ~iDVBPESReader() { };
26 /* records a given set of pids into a file descriptor. */
27 /* the FD must not be modified between start() and stop() ! */
28 class iDVBTSRecorder: public iObject
31 virtual RESULT setBufferSize(int size) = 0;
32 virtual RESULT start() = 0;
33 virtual RESULT addPID(int pid) = 0;
34 virtual RESULT removePID(int pid) = 0;
36 virtual RESULT setTimingPID(int pid, int type) = 0;
38 virtual RESULT setTargetFD(int fd) = 0;
39 /* for saving additional meta data. */
40 virtual RESULT setTargetFilename(const char *filename) = 0;
41 virtual RESULT setBoundary(off_t max) = 0;
43 virtual RESULT stop() = 0;
45 virtual RESULT getCurrentPCR(pts_t &pcr) = 0;
49 /* a write error has occured. data won't get lost if fd is writable after return. */
50 /* you MUST respond with either stop() or fixing the problems, else you get the error */
53 /* the programmed boundary was reached. you might set a new target fd. you can close the */
56 virtual RESULT connectEvent(const Slot1<void,int> &event, ePtr<eConnection> &conn)=0;