connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/interfaces/IConnectionsManager.java
changeset 0 fb279309251b
child 687 593d05f9d5ca
child 857 d66843399035
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/interfaces/IConnectionsManager.java	Fri Apr 03 23:33:03 2009 +0100
@@ -0,0 +1,59 @@
+/*
+* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: 
+*
+*/
+
+
+package com.nokia.carbide.remoteconnections.interfaces;
+
+
+import java.util.Collection;
+
+/**
+ * An interface encapsulating the manager of connection objects
+ */
+public interface IConnectionsManager {
+
+	public interface IConnectionsManagerListener {
+		void connectionStoreChanged();
+		void displayChanged();
+	}
+
+	void loadConnections();
+
+	void storeConnections();
+
+	void addConnectionStoreChangedListener(IConnectionsManagerListener listener);
+	
+	void removeConnectionStoreChangedListener(IConnectionsManagerListener listener);
+
+	void addConnection(IConnection connection);
+
+	void removeConnection(IConnection connection);
+
+	Collection<IConnection> getConnections();
+	
+	Collection<IConnectedService> getConnectedServices(IConnection connection);
+	
+	String getUniqueConnectionId();
+	
+	boolean connectionNameInUse(String name);
+	
+	void updateDisplays();
+	
+	IClientServiceSiteUI getClientSiteUI(IService service);
+	
+	IConnectedService createConnectedService(IService service, IConnection connection);
+}
\ No newline at end of file