aboutsummaryrefslogtreecommitdiff
path: root/lib/components/scan.h
blob: 6245613832ba666dc09534ccf65faaa58a780372 (plain)
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
#ifndef __lib_components_scan_h
#define __lib_components_scan_h

#include <lib/base/object.h>

class eDVBScan;

class eComponentScan: public Object, public iObject
{
DECLARE_REF(eComponentScan);
private:
	void scanEvent(int event);
	ePtr<eConnection> m_scan_event_connection;
	ePtr<eDVBScan> m_scan;
	
	int m_done, m_failed;
public:
	eComponentScan();
	~eComponentScan();
	
	PSignal0<void> statusChanged;
	
		/* progress between 0 and 100 */
	int getProgress();
	
		/* get number of services */
	int getNumServices();
	
		/* true when done or error */
	int isDone();
	
	int getError();
	
	int start();
};

#endif