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