deleting timers redrawing working ping
[enigma2.git] / lib / components / scan.h
1 #ifndef __lib_components_scan_h
2 #define __lib_components_scan_h
3
4 #include <lib/base/object.h>
5
6 class eDVBScan;
7
8 class eComponentScan: public Object, public iObject
9 {
10 DECLARE_REF(eComponentScan);
11 private:
12         void scanEvent(int event);
13         ePtr<eConnection> m_scan_event_connection;
14         ePtr<eDVBScan> m_scan;
15         
16         int m_done, m_failed;
17 public:
18         eComponentScan();
19         ~eComponentScan();
20         
21         PSignal0<void> statusChanged;
22         
23                 /* progress between 0 and 100 */
24         int getProgress();
25         
26                 /* get number of services */
27         int getNumServices();
28         
29                 /* true when done or error */
30         int isDone();
31         
32         int getError();
33         
34         int start();
35 };
36
37 #endif