X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fcomponents%2Fscan.h;h=222158bce7dd820252ff17c97fb72f6ee676a64f;hb=7ce0a84a10b827f2a9cd0a123f759e16e1375b70;hp=d90331cdcbe5db844a5bc3fe9b503850e16cefcb;hpb=d6e0b1fd881d459036f5b7ace9fa7a61f6bcce8f;p=vuplus_dvbapp diff --git a/lib/components/scan.h b/lib/components/scan.h index d90331c..222158b 100644 --- a/lib/components/scan.h +++ b/lib/components/scan.h @@ -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 m_scan_event_connection; @@ -23,6 +22,7 @@ public: ~eComponentScan(); PSignal0 statusChanged; + PSignal0 newService; /* progress between 0 and 100 */ int getProgress(); @@ -33,13 +33,22 @@ 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, scanDontRemoveUnscanned=16, clearToScanOnFirstNIT = 32, scanOnlyFree = 64 }; + + int start(int feid, int flags=0 ); + SWIG_VOID(RESULT) getFrontend(ePtr &SWIG_OUTPUT); + SWIG_VOID(RESULT) getCurrentTransponder(ePtr &SWIG_OUTPUT); }; #endif