- fixed console input mode restore
[enigma2.git] / lib / components / scan.h
diff --git a/lib/components/scan.h b/lib/components/scan.h
new file mode 100644 (file)
index 0000000..afa6868
--- /dev/null
@@ -0,0 +1,35 @@
+#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;
+private:
+       void scanEvent(int event);
+       ePtr<eConnection> m_scan_event_connection;
+       ePtr<eDVBScan> m_scan;
+       
+       int m_done;
+public:
+       eComponentScan();
+       ~eComponentScan();
+       
+       PSignal0<void> statusChanged;
+       
+               /* progress between 0 and 100 */
+       int getProgress();
+       
+               /* get number of services */
+       int getNumServices();
+       
+               /* true when done. */
+       int isDone();
+       
+       int start();
+};
+
+#endif