X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/54bd4123728628a6f77bad2584b70d1353a91666..a77b04e93ff947170098f105d9780cea501fd84d:/lib/components/scan.h diff --git a/lib/components/scan.h b/lib/components/scan.h index afa68689..b5acf91a 100644 --- a/lib/components/scan.h +++ b/lib/components/scan.h @@ -2,23 +2,28 @@ #define __lib_components_scan_h #include +#include class eDVBScan; class eComponentScan: public Object, public iObject { -DECLARE_REF; +DECLARE_REF(eComponentScan); private: +#ifndef SWIG void scanEvent(int event); ePtr m_scan_event_connection; ePtr m_scan; - int m_done; + int m_done, m_failed; + eSmartPtrList m_initial; +#endif public: eComponentScan(); ~eComponentScan(); PSignal0 statusChanged; + PSignal0 newService; /* progress between 0 and 100 */ int getProgress(); @@ -26,10 +31,24 @@ public: /* get number of services */ int getNumServices(); - /* true when done. */ + /* true when done or error */ int isDone(); - int start(); + /* 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); + + /* 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 &SWIG_OUTPUT); + SWIG_VOID(RESULT) getCurrentTransponder(ePtr &SWIG_OUTPUT); }; #endif