}
std::list<ePtr<iDVBFrontendParameters> > list;
-
m_scan = new eDVBScan(channel);
m_scan->connectEvent(slot(*this, &eComponentScan::scanEvent), m_scan_event_connection);
+
+ if (!(flags & scanRemoveServices))
+ {
+ ePtr<iDVBChannelList> db;
+ ePtr<eDVBResourceManager> res;
+ int err;
+ if ((err = eDVBResourceManager::getInstance(res)) != 0)
+ eDebug("no resource manager");
+ else if ((err = res->getChannelList(db)) != 0)
+ eDebug("no channel list");
+ else
+ {
+ if (m_initial.size() > 1)
+ {
+ iDVBFrontendParameters *tp = m_initial.first();
+ int type;
+ if (tp && !tp->getSystem(type))
+ {
+ switch(type)
+ {
+ case iDVBFrontend::feSatellite:
+ {
+ eDVBFrontendParametersSatellite parm;
+ tp->getDVBS(parm);
+ db->removeFlags(eDVBService::dxNewFound, -1, -1, -1, parm.orbital_position);
+ break;
+ }
+ case iDVBFrontend::feCable:
+ db->removeFlags(eDVBService::dxNewFound, 0xFFFF0000, -1, -1, -1);
+ break;
+ case iDVBFrontend::feTerrestrial:
+ db->removeFlags(eDVBService::dxNewFound, 0xEEEE0000, -1, -1, -1);
+ break;
+ }
+ }
+ }
+ }
+ }
m_scan->start(m_initial, flags);
-
+
return 0;
}