-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadapter.h
52 lines (33 loc) · 1.01 KB
/
adapter.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef _ADAPTER_H_
#define _ADAPTER_H_
/*
DVB API Profiler by Greg Wickham is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
*/
#include <glibmm.h>
class Adapter {
public:
Adapter( int index, int delay );
void run( void );
protected:
virtual int tune( void ) = 0;
gboolean start( void );
gboolean stop( void );
gboolean eventFe( Glib::IOCondition io );
gboolean readDvr( Glib::IOCondition io );
void startDemux( void );
int _index;
char *_fe_path;
int _fe;
sigc::connection _fe_conn;
char *_dvr_path;
int _dvr;
sigc::connection _dvr_conn;
struct timeval _dvr_time;
char *_demux_path;
int _demux;
sigc::connection _stop_conn;
sigc::connection _start_conn;
int _delay;
private:
};
#endif