debuggercdi/com.nokia.carbide.trk.support/src/com/nokia/carbide/trk/support/service/ConnectedServiceFactory.java
changeset 678 557efa279676
parent 666 4817219999f0
child 894 48b544aebc83
equal deleted inserted replaced
677:d13345e153e8 678:557efa279676
    34 	 */
    34 	 */
    35 	public IConnectedService createConnectedService(IService service, IConnection connection) {
    35 	public IConnectedService createConnectedService(IService service, IConnection connection) {
    36 		if (service instanceof TracingService &&
    36 		if (service instanceof TracingService &&
    37 				isCompatibleConnection(getCompatibleTracingConnectionTypeIds(), connection)) {
    37 				isCompatibleConnection(getCompatibleTracingConnectionTypeIds(), connection)) {
    38 			if (HostOS.IS_UNIX)
    38 			if (HostOS.IS_UNIX)
    39 				return null;		// TODO: not ported
    39 				return new RemoteConnectedService(service);		// TODO: not ported
    40 			return new TracingConnectedService(service, (AbstractSynchronizedConnection) connection);
    40 			return new TracingConnectedService(service, (AbstractSynchronizedConnection) connection);
    41 		}
    41 		}
    42 		else if (service instanceof TRKService &&
    42 		else if (service instanceof TRKService &&
    43 				isCompatibleConnection(getCompatibleTRKConnectionTypeIds(), connection)) {
    43 				isCompatibleConnection(getCompatibleTRKConnectionTypeIds(), connection)) {
    44 			if (HostOS.IS_UNIX)
    44 			if (HostOS.IS_UNIX)
    45 				return null;		// TODO: not ported
    45 				return new RemoteConnectedService(service);	// TODO: not ported
    46 			return new TRKConnectedService(service, (AbstractSynchronizedConnection) connection);
    46 			return new TRKConnectedService(service, (AbstractSynchronizedConnection) connection);
    47 		}
    47 		}
    48 		
    48 		
    49 		return null;
    49 		return null;
    50 	}
    50 	}