aboutsummaryrefslogtreecommitdiff
path: root/lib/components/scan.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/components/scan.cpp')
-rw-r--r--lib/components/scan.cpp13
1 files changed, 13 insertions, 0 deletions
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);
+}