X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/742956672b795d0ffa44575f9a8e0255b768915c..cc9862b55b147eb78581813ba70d574940ac103d:/lib/components/scan.cpp?ds=sidebyside diff --git a/lib/components/scan.cpp b/lib/components/scan.cpp index bfbb02da..c21e8f4b 100644 --- a/lib/components/scan.cpp +++ b/lib/components/scan.cpp @@ -33,6 +33,12 @@ void eComponentScan::scanEvent(int evt) } } + if (evt == eDVBScan::evtNewService) + { + newService(); + return; + } + if (evt == eDVBScan::evtFail) { eDebug("scan failed."); @@ -137,3 +143,10 @@ int eComponentScan::getError() { return m_failed; } + +void eComponentScan::getLastServiceName(std::string &string) +{ + if (!m_scan) + return; + m_scan->getLastServiceName(string); +}