void eComponentScan::scanEvent(int evt)
{
- eDebug("scan event %d!", evt);
+// eDebug("scan event %d!", evt);
if (evt == eDVBScan::evtFinish)
{
}
}
+ if (evt == eDVBScan::evtNewService)
+ {
+ newService();
+ return;
+ }
+
if (evt == eDVBScan::evtFail)
{
eDebug("scan failed.");
}
-int eComponentScan::start(int flags)
+int eComponentScan::start(int feid, int flags)
{
if (m_initial.empty())
return -2;
eUsePtr<iDVBChannel> channel;
- if (mgr->allocateRawChannel(channel))
+ if (mgr->allocateRawChannel(channel, feid))
{
- eDebug("scan: allocating raw channel failed!");
+ eDebug("scan: allocating raw channel (on frontend %d) failed!", feid);
return -1;
}
std::list<ePtr<iDVBFrontendParameters> > list;
-
+
m_scan = new eDVBScan(channel);
m_scan->connectEvent(slot(*this, &eComponentScan::scanEvent), m_scan_event_connection);
m_scan->start(m_initial, flags);
{
return m_failed;
}
+
+void eComponentScan::getLastServiceName(std::string &string)
+{
+ if (!m_scan)
+ return;
+ m_scan->getLastServiceName(string);
+}