- improved scan error handling
[enigma2.git] / lib / components / scan.h
index afa6868..6245613 100644 (file)
@@ -7,13 +7,13 @@ class eDVBScan;
 
 class eComponentScan: public Object, public iObject
 {
-DECLARE_REF;
+DECLARE_REF(eComponentScan);
 private:
        void scanEvent(int event);
        ePtr<eConnection> m_scan_event_connection;
        ePtr<eDVBScan> m_scan;
        
-       int m_done;
+       int m_done, m_failed;
 public:
        eComponentScan();
        ~eComponentScan();
@@ -26,9 +26,11 @@ public:
                /* get number of services */
        int getNumServices();
        
-               /* true when done. */
+               /* true when done or error */
        int isDone();
        
+       int getError();
+       
        int start();
 };