author | Ed Swartz <ed.swartz@nokia.com> |
Wed, 08 Sep 2010 17:12:10 -0500 | |
changeset 1965 | 0dd7f79ee65d |
parent 1557 | c431b953b863 |
permissions | -rw-r--r-- |
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
1 |
/* |
687 | 2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
3 |
* All rights reserved. |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
4 |
* This component and the accompanying materials are made available |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
5 |
* under the terms of the License "Eclipse Public License v1.0" |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
6 |
* which accompanies this distribution, and is available |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
8 |
* |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
9 |
* Initial Contributors: |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
10 |
* Nokia Corporation - initial contribution. |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
11 |
* |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
12 |
* Contributors: |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
13 |
* |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
14 |
* Description: |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
15 |
* |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
16 |
*/ |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
17 |
|
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
18 |
|
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
19 |
package com.nokia.carbide.remoteconnections.interfaces; |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
20 |
|
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
21 |
|
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
22 |
import java.util.Collection; |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
23 |
|
687 | 24 |
import org.eclipse.core.runtime.CoreException; |
25 |
||
701
1912b5c050e6
make disconnect api based on new connection interface
dadubrow
parents:
698
diff
changeset
|
26 |
import com.nokia.carbide.remoteconnections.internal.api.IConnection2; |
1912b5c050e6
make disconnect api based on new connection interface
dadubrow
parents:
698
diff
changeset
|
27 |
|
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
28 |
/** |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
29 |
* An interface encapsulating the manager of connection objects |
687 | 30 |
* @noimplement |
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
31 |
*/ |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
32 |
public interface IConnectionsManager { |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
33 |
|
687 | 34 |
/** |
35 |
* Listener interface for connection manager events |
|
36 |
* (These tend to be used internally by remote connections UI) |
|
37 |
* @deprecated |
|
38 |
*/ |
|
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
39 |
public interface IConnectionsManagerListener { |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
40 |
void connectionStoreChanged(); |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
41 |
void displayChanged(); |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
42 |
} |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
43 |
|
687 | 44 |
/** |
901
3a0c0b389d0d
10658 - fix up launch config when ensureConnection returns
dadubrow
parents:
899
diff
changeset
|
45 |
* Return value for IConnectionsManager.ensureConnection |
3a0c0b389d0d
10658 - fix up launch config when ensureConnection returns
dadubrow
parents:
899
diff
changeset
|
46 |
*/ |
3a0c0b389d0d
10658 - fix up launch config when ensureConnection returns
dadubrow
parents:
899
diff
changeset
|
47 |
public interface ISelectedConnectionInfo { |
3a0c0b389d0d
10658 - fix up launch config when ensureConnection returns
dadubrow
parents:
899
diff
changeset
|
48 |
IConnection getConnection(); |
3a0c0b389d0d
10658 - fix up launch config when ensureConnection returns
dadubrow
parents:
899
diff
changeset
|
49 |
String getStorableId(); |
3a0c0b389d0d
10658 - fix up launch config when ensureConnection returns
dadubrow
parents:
899
diff
changeset
|
50 |
} |
3a0c0b389d0d
10658 - fix up launch config when ensureConnection returns
dadubrow
parents:
899
diff
changeset
|
51 |
|
3a0c0b389d0d
10658 - fix up launch config when ensureConnection returns
dadubrow
parents:
899
diff
changeset
|
52 |
/** |
687 | 53 |
* Internal method for loading connections from persisted state |
54 |
* @deprecated |
|
55 |
*/ |
|
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
56 |
void loadConnections(); |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
57 |
|
687 | 58 |
/** |
59 |
* Internal method for persisting connections |
|
60 |
* @deprecated |
|
61 |
*/ |
|
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
62 |
void storeConnections(); |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
63 |
|
687 | 64 |
|
65 |
/** |
|
761
19123c07e2ab
Refactor API and related from default connection to current + update heuristics
dadubrow
parents:
759
diff
changeset
|
66 |
* Listener interface for connections which are added, removed and set as current |
899 | 67 |
* @since 2.5 |
687 | 68 |
*/ |
69 |
public interface IConnectionListener { |
|
70 |
void connectionAdded(IConnection connection); |
|
71 |
void connectionRemoved(IConnection connection); |
|
761
19123c07e2ab
Refactor API and related from default connection to current + update heuristics
dadubrow
parents:
759
diff
changeset
|
72 |
void currentConnectionSet(IConnection connection); |
687 | 73 |
} |
74 |
||
75 |
/** |
|
76 |
* Add a listener for internal connection manager events |
|
77 |
* @param listener IConnectionsManagerListener |
|
78 |
* @deprecated |
|
79 |
*/ |
|
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
80 |
void addConnectionStoreChangedListener(IConnectionsManagerListener listener); |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
81 |
|
687 | 82 |
/** |
83 |
* Remove a listener for internal connection manager events |
|
84 |
* @param listener IConnectionsManagerListener |
|
85 |
* @deprecated |
|
86 |
*/ |
|
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
87 |
void removeConnectionStoreChangedListener(IConnectionsManagerListener listener); |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
88 |
|
687 | 89 |
/** |
90 |
* Add a connection to the system |
|
91 |
* @param connection IConnection |
|
92 |
*/ |
|
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
93 |
void addConnection(IConnection connection); |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
94 |
|
687 | 95 |
/** |
96 |
* Remove a connection from the system |
|
97 |
* @param connection IConnection |
|
98 |
*/ |
|
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
99 |
void removeConnection(IConnection connection); |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
100 |
|
687 | 101 |
/** |
102 |
* Return all connections in the system |
|
103 |
* @return Collection<IConnection> |
|
104 |
*/ |
|
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
105 |
Collection<IConnection> getConnections(); |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
106 |
|
687 | 107 |
/** |
108 |
* Return all the connected services for a connection |
|
109 |
* @param connection IConnection |
|
110 |
* @return Collection<IConnectedService> |
|
111 |
*/ |
|
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
112 |
Collection<IConnectedService> getConnectedServices(IConnection connection); |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
113 |
|
687 | 114 |
/** |
115 |
* Returns a unique id to be used for a new connection |
|
116 |
* @return String |
|
117 |
*/ |
|
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
118 |
String getUniqueConnectionId(); |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
119 |
|
687 | 120 |
/** |
121 |
* Returns whether some display name is in use for any existing connections |
|
122 |
* @param name String |
|
123 |
* @return boolean |
|
124 |
*/ |
|
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
125 |
boolean connectionNameInUse(String name); |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
126 |
|
687 | 127 |
/** |
128 |
* Fires internal display changed event |
|
129 |
* @deprecated |
|
130 |
*/ |
|
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
131 |
void updateDisplays(); |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
132 |
|
687 | 133 |
/** |
134 |
* Returns the IClientServiceSiteUI for a service. Filters connection types to those that |
|
135 |
* are supported by the service. Connection list UI as well as new and edit wizards are filtered. |
|
136 |
* @param service IService |
|
137 |
* @return IClientServiceSiteUI |
|
728
a39d0ba41f81
Initial work for bug #10418
Ed Swartz <ed.swartz@nokia.com>
parents:
701
diff
changeset
|
138 |
* @deprecated use {@link #getClientSiteUI2(IService)} |
687 | 139 |
*/ |
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
140 |
IClientServiceSiteUI getClientSiteUI(IService service); |
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
141 |
|
687 | 142 |
/** |
143 |
* Internal method to create the connected service over a connection (for service testing) |
|
144 |
* @param service IService |
|
145 |
* @param connection IConnection |
|
146 |
* @return IConnectedService |
|
147 |
* @deprecated |
|
148 |
*/ |
|
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
149 |
IConnectedService createConnectedService(IService service, IConnection connection); |
687 | 150 |
|
151 |
/** |
|
152 |
* Add new IConnectionListener |
|
153 |
* @param listener IConnectionListener |
|
899 | 154 |
* @since 2.5 |
687 | 155 |
*/ |
156 |
void addConnectionListener(IConnectionListener listener); |
|
157 |
||
158 |
/** |
|
159 |
* Remove IConnectionListener |
|
160 |
* @param listener IConnectionListener |
|
899 | 161 |
* @since 2.5 |
687 | 162 |
*/ |
163 |
void removeConnectionListener(IConnectionListener listener); |
|
164 |
||
165 |
/** |
|
761
19123c07e2ab
Refactor API and related from default connection to current + update heuristics
dadubrow
parents:
759
diff
changeset
|
166 |
* Sets the current connection. |
687 | 167 |
* @param connection IConnection |
899 | 168 |
* @since 2.5 |
687 | 169 |
*/ |
761
19123c07e2ab
Refactor API and related from default connection to current + update heuristics
dadubrow
parents:
759
diff
changeset
|
170 |
void setCurrentConnection(IConnection connection); |
687 | 171 |
|
172 |
/** |
|
761
19123c07e2ab
Refactor API and related from default connection to current + update heuristics
dadubrow
parents:
759
diff
changeset
|
173 |
* Returns the current connection. |
698
9162f4cfad65
more changes to remote connections for discovery + load extensions
dadubrow
parents:
687
diff
changeset
|
174 |
* @return IConnection |
899 | 175 |
* @since 2.5 |
698
9162f4cfad65
more changes to remote connections for discovery + load extensions
dadubrow
parents:
687
diff
changeset
|
176 |
*/ |
761
19123c07e2ab
Refactor API and related from default connection to current + update heuristics
dadubrow
parents:
759
diff
changeset
|
177 |
IConnection getCurrentConnection(); |
698
9162f4cfad65
more changes to remote connections for discovery + load extensions
dadubrow
parents:
687
diff
changeset
|
178 |
|
9162f4cfad65
more changes to remote connections for discovery + load extensions
dadubrow
parents:
687
diff
changeset
|
179 |
/** |
1557
c431b953b863
Allow a null IService to be passed to IConnectionsManager#ensureConnection(), for cases where the service is not known or restricting connections by service is not needed.
Ed Swartz <ed.swartz@nokia.com>
parents:
901
diff
changeset
|
180 |
* Returns the IClientServiceSiteUI2 for selecting a connection. |
761
19123c07e2ab
Refactor API and related from default connection to current + update heuristics
dadubrow
parents:
759
diff
changeset
|
181 |
* Allows selecting a "current" connection which maps to #getCurrentConnection() |
1557
c431b953b863
Allow a null IService to be passed to IConnectionsManager#ensureConnection(), for cases where the service is not known or restricting connections by service is not needed.
Ed Swartz <ed.swartz@nokia.com>
parents:
901
diff
changeset
|
182 |
* when you use #ensureConnection(). |
c431b953b863
Allow a null IService to be passed to IConnectionsManager#ensureConnection(), for cases where the service is not known or restricting connections by service is not needed.
Ed Swartz <ed.swartz@nokia.com>
parents:
901
diff
changeset
|
183 |
* <p> |
c431b953b863
Allow a null IService to be passed to IConnectionsManager#ensureConnection(), for cases where the service is not known or restricting connections by service is not needed.
Ed Swartz <ed.swartz@nokia.com>
parents:
901
diff
changeset
|
184 |
* Optionally filters connection types to those that are supported by the |
c431b953b863
Allow a null IService to be passed to IConnectionsManager#ensureConnection(), for cases where the service is not known or restricting connections by service is not needed.
Ed Swartz <ed.swartz@nokia.com>
parents:
901
diff
changeset
|
185 |
* service. Connection list UI as well as new and edit wizards are filtered. |
c431b953b863
Allow a null IService to be passed to IConnectionsManager#ensureConnection(), for cases where the service is not known or restricting connections by service is not needed.
Ed Swartz <ed.swartz@nokia.com>
parents:
901
diff
changeset
|
186 |
* @param service IService or <code>null</code> |
728
a39d0ba41f81
Initial work for bug #10418
Ed Swartz <ed.swartz@nokia.com>
parents:
701
diff
changeset
|
187 |
* @return IClientServiceSiteUI2 |
899 | 188 |
* @since 2.5 |
728
a39d0ba41f81
Initial work for bug #10418
Ed Swartz <ed.swartz@nokia.com>
parents:
701
diff
changeset
|
189 |
*/ |
a39d0ba41f81
Initial work for bug #10418
Ed Swartz <ed.swartz@nokia.com>
parents:
701
diff
changeset
|
190 |
IClientServiceSiteUI2 getClientSiteUI2(IService service); |
a39d0ba41f81
Initial work for bug #10418
Ed Swartz <ed.swartz@nokia.com>
parents:
701
diff
changeset
|
191 |
|
a39d0ba41f81
Initial work for bug #10418
Ed Swartz <ed.swartz@nokia.com>
parents:
701
diff
changeset
|
192 |
/** |
687 | 193 |
* Can be called by specific service implementors (e.g., debugger) to ensure some connection |
1557
c431b953b863
Allow a null IService to be passed to IConnectionsManager#ensureConnection(), for cases where the service is not known or restricting connections by service is not needed.
Ed Swartz <ed.swartz@nokia.com>
parents:
901
diff
changeset
|
194 |
* exists and optionally supports this service. If the connection does not exist or does not support |
687 | 195 |
* the service, a CoreException may be thrown after the framework attempts to allow the user |
901
3a0c0b389d0d
10658 - fix up launch config when ensureConnection returns
dadubrow
parents:
899
diff
changeset
|
196 |
* to correct the situation by showing a connection selection dialog. |
3a0c0b389d0d
10658 - fix up launch config when ensureConnection returns
dadubrow
parents:
899
diff
changeset
|
197 |
* If an ISelectedConnectionInfo is returned, {@link ISelectedConnectionInfo#getConnection()} |
3a0c0b389d0d
10658 - fix up launch config when ensureConnection returns
dadubrow
parents:
899
diff
changeset
|
198 |
* is assumed to be a valid connection in the system that supports the service |
3a0c0b389d0d
10658 - fix up launch config when ensureConnection returns
dadubrow
parents:
899
diff
changeset
|
199 |
* and {@link ISelectedConnectionInfo#getStorableId()} is the id that can |
3a0c0b389d0d
10658 - fix up launch config when ensureConnection returns
dadubrow
parents:
899
diff
changeset
|
200 |
* be stored by the caller that represents the user's selection. |
687 | 201 |
* @param connectionId String |
1557
c431b953b863
Allow a null IService to be passed to IConnectionsManager#ensureConnection(), for cases where the service is not known or restricting connections by service is not needed.
Ed Swartz <ed.swartz@nokia.com>
parents:
901
diff
changeset
|
202 |
* @param service IService or <code>null</code> |
901
3a0c0b389d0d
10658 - fix up launch config when ensureConnection returns
dadubrow
parents:
899
diff
changeset
|
203 |
* @return ISelectedConnectionInfo |
687 | 204 |
* @throws CoreException |
899 | 205 |
* @since 2.5 |
687 | 206 |
*/ |
901
3a0c0b389d0d
10658 - fix up launch config when ensureConnection returns
dadubrow
parents:
899
diff
changeset
|
207 |
ISelectedConnectionInfo ensureConnection(String connectionId, IService service) throws CoreException; |
687 | 208 |
|
209 |
/** |
|
761
19123c07e2ab
Refactor API and related from default connection to current + update heuristics
dadubrow
parents:
759
diff
changeset
|
210 |
* Returns a connection from an id (including the current connection id) or null if none found. |
759
d4aeef4e0f16
modify IConnectionsManager and IClientServiceSiteUI2 apis + document in relnotes
dadubrow
parents:
728
diff
changeset
|
211 |
* @param connectionId String |
d4aeef4e0f16
modify IConnectionsManager and IClientServiceSiteUI2 apis + document in relnotes
dadubrow
parents:
728
diff
changeset
|
212 |
* @param service IService |
d4aeef4e0f16
modify IConnectionsManager and IClientServiceSiteUI2 apis + document in relnotes
dadubrow
parents:
728
diff
changeset
|
213 |
* @return IConnection |
d4aeef4e0f16
modify IConnectionsManager and IClientServiceSiteUI2 apis + document in relnotes
dadubrow
parents:
728
diff
changeset
|
214 |
* @throws CoreException |
899 | 215 |
* @since 2.5 |
759
d4aeef4e0f16
modify IConnectionsManager and IClientServiceSiteUI2 apis + document in relnotes
dadubrow
parents:
728
diff
changeset
|
216 |
*/ |
d4aeef4e0f16
modify IConnectionsManager and IClientServiceSiteUI2 apis + document in relnotes
dadubrow
parents:
728
diff
changeset
|
217 |
IConnection findConnection(String connectionId); |
d4aeef4e0f16
modify IConnectionsManager and IClientServiceSiteUI2 apis + document in relnotes
dadubrow
parents:
728
diff
changeset
|
218 |
|
d4aeef4e0f16
modify IConnectionsManager and IClientServiceSiteUI2 apis + document in relnotes
dadubrow
parents:
728
diff
changeset
|
219 |
/** |
687 | 220 |
* Sets a dynamic connection as disconnected. Is no-op on user generated connections. |
221 |
* If a dynamic connection is disconnected, it is transitioned to a disconnected state while it |
|
222 |
* is in use by some client service, and is eventually removed from the system once it is |
|
223 |
* no longer in use. |
|
701
1912b5c050e6
make disconnect api based on new connection interface
dadubrow
parents:
698
diff
changeset
|
224 |
* @param connection IConnection2 |
899 | 225 |
* @since 2.5 |
687 | 226 |
*/ |
701
1912b5c050e6
make disconnect api based on new connection interface
dadubrow
parents:
698
diff
changeset
|
227 |
void disconnect(IConnection2 connection); |
687 | 228 |
|
229 |
/** |
|
230 |
* Attempts to set a disconnected dynamic connection back to its in-use state. |
|
231 |
* If the connection has not been removed from the system, and is still in-use, |
|
232 |
* it will be restored. Returns true if successful in restoring the connection. |
|
701
1912b5c050e6
make disconnect api based on new connection interface
dadubrow
parents:
698
diff
changeset
|
233 |
* @param connection IConnection2 |
899 | 234 |
* @since 2.5 |
687 | 235 |
*/ |
701
1912b5c050e6
make disconnect api based on new connection interface
dadubrow
parents:
698
diff
changeset
|
236 |
boolean reconnect(IConnection2 connection); |
0
fb279309251b
DP tools release version Revision: 200912
Deepak Modgil <Deepak.Modgil@Nokia.com>
parents:
diff
changeset
|
237 |
} |