X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/5cdabb1038ec3f628001f26f5d587eb95ca6465d..c61d41422afe49ea1c31bc14913452ef3b571c21:/lib/components/scan.cpp diff --git a/lib/components/scan.cpp b/lib/components/scan.cpp index bfbb02da..2870388a 100644 --- a/lib/components/scan.cpp +++ b/lib/components/scan.cpp @@ -8,7 +8,7 @@ DEFINE_REF(eComponentScan); void eComponentScan::scanEvent(int evt) { - eDebug("scan event %d!", evt); +// eDebug("scan event %d!", evt); if (evt == eDVBScan::evtFinish) { @@ -33,6 +33,12 @@ void eComponentScan::scanEvent(int evt) } } + if (evt == eDVBScan::evtNewService) + { + newService(); + return; + } + if (evt == eDVBScan::evtFail) { eDebug("scan failed."); @@ -100,7 +106,7 @@ int eComponentScan::start(int feid, int flags) } std::list > list; - + m_scan = new eDVBScan(channel); m_scan->connectEvent(slot(*this, &eComponentScan::scanEvent), m_scan_event_connection); m_scan->start(m_initial, flags); @@ -137,3 +143,10 @@ int eComponentScan::getError() { return m_failed; } + +void eComponentScan::getLastServiceName(std::string &string) +{ + if (!m_scan) + return; + m_scan->getLastServiceName(string); +}