TBool DviDevice::HasService(const OpenHome::Net::ServiceType& aServiceType) const { for (TUint i=0; i<iServices.size(); i++) { const OpenHome::Net::ServiceType& serviceType = iServices[i]->ServiceType(); if (serviceType.Version() == aServiceType.Version() && serviceType.Domain() == aServiceType.Domain() && serviceType.Name() == aServiceType.Name()) { return true; } } return ChildHasService(aServiceType); }
void MsearchResponse::StartServiceType(IUpnpAnnouncementData& aAnnouncementData, const Endpoint& aRemote, TUint aMx, const OpenHome::Net::ServiceType& aServiceType, const Brx& aUri, TUint aConfigId) { LogNotifierStart("StartServiceType"); TUint index = 0; for (;;) { const OpenHome::Net::ServiceType& st = aAnnouncementData.Service(index).ServiceType(); if (st.Domain() == aServiceType.Domain() && st.Name() == aServiceType.Name() && st.Version() == aServiceType.Version()) { break; } index++; } Start(aAnnouncementData, 1, NEXT_MSG_SERVICE_TYPE + index, aRemote, aMx, aUri, aConfigId); }