after DECLARE_REF now all is private.. not public
[enigma2.git] / lib / components / scan.h
index d90331c..3d8984e 100644 (file)
@@ -8,8 +8,7 @@ class eDVBScan;
 
 class eComponentScan: public Object, public iObject
 {
-DECLARE_REF(eComponentScan);
-private:
+       DECLARE_REF(eComponentScan);
 #ifndef SWIG
        void scanEvent(int event);
        ePtr<eConnection> m_scan_event_connection;
@@ -23,6 +22,7 @@ public:
        ~eComponentScan();
        
        PSignal0<void> statusChanged;
+       PSignal0<void> newService;
        
                /* progress between 0 and 100 */
        int getProgress();
@@ -33,13 +33,21 @@ public:
                /* true when done or error */
        int isDone();
        
+               /* get last added service */
+       void getLastServiceName(std::string &SWIG_OUTPUT);
+       
        int getError();
        
        void clear();
        void addInitial(const eDVBFrontendParametersSatellite &p);
        void addInitial(const eDVBFrontendParametersCable &p);
        void addInitial(const eDVBFrontendParametersTerrestrial &p);
-       int start();
+       
+               /* please keep the flags in sync with lib/dvb/scan.h ! */
+       enum { scanNetworkSearch=1, scanRemoveServices=4, scanDontRemoveFeeds=8, clearToScanOnFirstNIT = 16 };
+       int start(int feid, int flags=0 );
+       SWIG_VOID(RESULT) getFrontend(ePtr<iDVBFrontend> &SWIG_OUTPUT);
+       SWIG_VOID(RESULT) getCurrentTransponder(ePtr<iDVBFrontendParameters> &SWIG_OUTPUT);
 };
 
 #endif