+
+ 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)
+ {
+ ePtr<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;
+ }
+ }
+ }
+ }
+ }