X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/dba614edd2aad3c17e244914eaef3809d8300cb1..e4034b7fce157a23fcd2668a59ccc7a32d19ac84:/lib/components/scan.h diff --git a/lib/components/scan.h b/lib/components/scan.h index ca64f5e2..eb18f104 100644 --- a/lib/components/scan.h +++ b/lib/components/scan.h @@ -2,6 +2,7 @@ #define __lib_components_scan_h #include +#include class eDVBScan; @@ -9,11 +10,14 @@ class eComponentScan: public Object, public iObject { DECLARE_REF(eComponentScan); private: +#ifndef SWIG void scanEvent(int event); ePtr m_scan_event_connection; ePtr m_scan; int m_done, m_failed; + eSmartPtrList m_initial; +#endif public: eComponentScan(); ~eComponentScan(); @@ -26,10 +30,19 @@ public: /* get number of services */ int getNumServices(); - /* true when done. */ + /* true when done or error */ int isDone(); - int start(); + 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 }; + int start(int feid, int flags=0); }; #endif