connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/interfaces/IConnectionsManager.java
changeset 0 fb279309251b
child 687 593d05f9d5ca
child 857 d66843399035
equal deleted inserted replaced
-1:000000000000 0:fb279309251b
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 package com.nokia.carbide.remoteconnections.interfaces;
       
    20 
       
    21 
       
    22 import java.util.Collection;
       
    23 
       
    24 /**
       
    25  * An interface encapsulating the manager of connection objects
       
    26  */
       
    27 public interface IConnectionsManager {
       
    28 
       
    29 	public interface IConnectionsManagerListener {
       
    30 		void connectionStoreChanged();
       
    31 		void displayChanged();
       
    32 	}
       
    33 
       
    34 	void loadConnections();
       
    35 
       
    36 	void storeConnections();
       
    37 
       
    38 	void addConnectionStoreChangedListener(IConnectionsManagerListener listener);
       
    39 	
       
    40 	void removeConnectionStoreChangedListener(IConnectionsManagerListener listener);
       
    41 
       
    42 	void addConnection(IConnection connection);
       
    43 
       
    44 	void removeConnection(IConnection connection);
       
    45 
       
    46 	Collection<IConnection> getConnections();
       
    47 	
       
    48 	Collection<IConnectedService> getConnectedServices(IConnection connection);
       
    49 	
       
    50 	String getUniqueConnectionId();
       
    51 	
       
    52 	boolean connectionNameInUse(String name);
       
    53 	
       
    54 	void updateDisplays();
       
    55 	
       
    56 	IClientServiceSiteUI getClientSiteUI(IService service);
       
    57 	
       
    58 	IConnectedService createConnectedService(IService service, IConnection connection);
       
    59 }