X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/1cdf6cb021fcaa6548b90ba7b6765cf1e8b8b37b..1213cbcff4f8b31aa77825325f102a134d246e0a:/lib/components/scan.h diff --git a/lib/components/scan.h b/lib/components/scan.h index 073919c7..eb18f104 100644 --- a/lib/components/scan.h +++ b/lib/components/scan.h @@ -2,18 +2,22 @@ #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, 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