connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/registry/Registry.java
changeset 687 593d05f9d5ca
parent 666 4817219999f0
child 698 9162f4cfad65
--- a/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/registry/Registry.java	Wed Dec 16 08:50:16 2009 -0600
+++ b/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/internal/registry/Registry.java	Wed Dec 16 10:27:32 2009 -0600
@@ -56,6 +56,7 @@
 	private Map<IConnection, List<IConnectedService>> connectionToConnectedServices;
 	private ListenerList<IConnectionsManagerListener> listeners;
 	private List<IConnectedServiceFactory> connectedServiceFactories;
+	private ListenerList<IConnectionListener> connectionListeners;
 
 	public static Registry instance() {
 		if (instance == null) {
@@ -455,4 +456,40 @@
 		}
 		return null;
 	}
+
+	public void addConnectionListener(IConnectionListener listener) {
+		if (connectionListeners == null)
+			connectionListeners = new ListenerList<IConnectionListener>();
+		connectionListeners.add(listener);
+	}
+
+	public void removeConnectionListener(IConnectionListener listener) {
+		if (connectionListeners != null)
+			connectionListeners.remove(listener);
+	}
+	
+	public void setDefaultConnection(IConnection connection, Object source) {
+		// TODO Auto-generated method stub
+		
+	}
+
+	public IConnection ensureConnection(String id, IService service) throws CoreException {
+		// TODO Auto-generated method stub
+		return null;
+	}
+
+	public void setDefaultConnection(IConnection connection) {
+		// TODO Auto-generated method stub
+		
+	}
+
+	public void disconnect(IConnection connection) {
+		// TODO Auto-generated method stub
+		
+	}
+
+	public boolean reconnect(IConnection connection) {
+		// TODO Auto-generated method stub
+		return false;
+	}
 }
\ No newline at end of file