add ability to select in scan what is todo with existing services (Clear before scan)
[enigma2.git] / lib / components / scan.cpp
index bfbb02d..c21e8f4 100644 (file)
@@ -33,6 +33,12 @@ void eComponentScan::scanEvent(int evt)
                }
        }
        
                }
        }
        
+       if (evt == eDVBScan::evtNewService)
+       {
+               newService();
+               return;
+       }
+       
        if (evt == eDVBScan::evtFail)
        {
                eDebug("scan failed.");
        if (evt == eDVBScan::evtFail)
        {
                eDebug("scan failed.");
@@ -137,3 +143,10 @@ int eComponentScan::getError()
 {
        return m_failed;
 }
 {
        return m_failed;
 }
+
+void eComponentScan::getLastServiceName(std::string &string)
+{
+       if (!m_scan)
+               return;
+       m_scan->getLastServiceName(string);
+}