dont show the infobar when close the last open screen
[enigma2.git] / lib / dvb / idemux.h
1 #ifndef __dvb_idemux_h
2 #define __dvb_idemux_h
3
4 #include <lib/dvb/idvb.h>
5
6 class iDVBSectionReader: public iObject
7 {
8 public:
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() { };
13 };
14
15 class iDVBPESReader: public iObject
16 {
17 public:
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() { };
22 };
23
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
27 {
28 public:
29         virtual RESULT start() = 0;
30         virtual RESULT addPID(int pid) = 0;
31         virtual RESULT removePID(int pid) = 0;
32         
33         virtual RESULT setTimingPID(int pid) = 0;
34         
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;
39         
40         virtual RESULT stop() = 0;
41         
42         enum {
43                 eventWriteError,
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 */
46                                 /* again. */
47                 eventReachedBoundary,
48                                 /* the programmed boundary was reached. you might set a new target fd. you can close the */
49                                 /* old one. */
50         };
51         virtual RESULT connectEvent(const Slot1<void,int> &event, ePtr<eConnection> &conn)=0;
52 };
53
54 #endif