1 #ifndef __lib_components_scan_h
2 #define __lib_components_scan_h
4 #include <lib/base/object.h>
5 #include <lib/dvb/idvb.h>
9 class eComponentScan: public Object, public iObject
11 DECLARE_REF(eComponentScan);
13 void scanEvent(int event);
14 ePtr<eConnection> m_scan_event_connection;
15 ePtr<eDVBScan> m_scan;
18 eSmartPtrList<iDVBFrontendParameters> m_initial;
24 PSignal0<void> statusChanged;
25 PSignal0<void> newService;
27 /* progress between 0 and 100 */
30 /* get number of services */
33 /* true when done or error */
36 /* get last added service */
37 void getLastServiceName(std::string &SWIG_OUTPUT);
42 void addInitial(const eDVBFrontendParametersSatellite &p);
43 void addInitial(const eDVBFrontendParametersCable &p);
44 void addInitial(const eDVBFrontendParametersTerrestrial &p);
46 /* please keep the flags in sync with lib/dvb/scan.h ! */
47 enum { scanNetworkSearch=1, scanRemoveServices=4, scanDontRemoveFeeds=8, scanDontRemoveUnscanned=16, clearToScanOnFirstNIT = 32, scanOnlyFree = 64 };
49 int start(int feid, int flags=0 );
50 SWIG_VOID(RESULT) getFrontend(ePtr<iDVBFrontend> &SWIG_OUTPUT);
51 SWIG_VOID(RESULT) getCurrentTransponder(ePtr<iDVBFrontendParameters> &SWIG_OUTPUT);