connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/registry/Registry.java
changeset 1966 67581ab567b1
parent 1846 02332f802224
equal deleted inserted replaced
1965:0dd7f79ee65d 1966:67581ab567b1
   209 		}
   209 		}
   210 	}
   210 	}
   211 
   211 
   212 	public Collection<String> getCompatibleConnectionTypeIds(IService service) {
   212 	public Collection<String> getCompatibleConnectionTypeIds(IService service) {
   213 		Collection<String> compatibleConnectionTypeIds = new HashSet<String>();
   213 		Collection<String> compatibleConnectionTypeIds = new HashSet<String>();
   214 		for (IConnectedServiceFactory factory : connectedServiceFactories) {
   214 		if (service != null) {
   215 			compatibleConnectionTypeIds.addAll(factory.getCompatibleConnectionTypeIds(service));
   215 			for (IConnectedServiceFactory factory : connectedServiceFactories) {
       
   216 				compatibleConnectionTypeIds.addAll(factory.getCompatibleConnectionTypeIds(service));
       
   217 			}
   216 		}
   218 		}
   217 		return compatibleConnectionTypeIds;
   219 		return compatibleConnectionTypeIds;
   218 	}
   220 	}
   219 
   221 
   220 	private boolean acceptConnectedService(String serviceId, String connectionTypeId) {
   222 	private boolean acceptConnectedService(String serviceId, String connectionTypeId) {