1 /* |
1 /* |
2 * Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
142 * @return KErrNone if successfull, otherwise a system wide error code. |
142 * @return KErrNone if successfull, otherwise a system wide error code. |
143 */ |
143 */ |
144 TInt GetStartTime( const TUint aConnectionId, TTime& aTime ); |
144 TInt GetStartTime( const TUint aConnectionId, TTime& aTime ); |
145 |
145 |
146 /** |
146 /** |
147 * Stops the external connection. |
147 * Stops the external connection. (Synchronous version) |
148 * @since |
148 * @since |
149 * @param aConnectionId The connection ID of the PSD connection. |
149 * @param aConnectionId The connection ID of the PSD connection. |
150 * @return KErrNone if successfull, otherwise a system wide error code. |
150 * @return KErrNone if successfull, otherwise a system wide error code. |
151 */ |
151 */ |
152 TInt Stop( const TUint aConnectionId ); |
152 TInt Stop( const TUint aConnectionId ); |
|
153 |
|
154 /** |
|
155 * Stops the external connection. (Asynchronous version) |
|
156 * |
|
157 * @param aConnectionId The connection ID of the PSD connection. |
|
158 * @param aStatus KErrNone if successful, a system-wide error code if not. |
|
159 * @return KErrNone if connection ID is valid, KErrNotFound otherwise. |
|
160 */ |
|
161 TInt Stop( const TUint aConnectionId, TRequestStatus& aStatus ); |
|
162 |
|
163 /** |
|
164 * If the stopped connection is still in the connection info array and |
|
165 * connection status notifier isn't running, removes the obsolete |
|
166 * information and notifiers from the connection info array. |
|
167 * |
|
168 * @param aConnectionId The connection ID of the PSD connection. |
|
169 * @return KErrNotFound if connection matching the given ID is not found, |
|
170 * KErrNone otherwise. |
|
171 */ |
|
172 TInt CleanupConnectionInfo( const TUint aConnectionId ); |
153 |
173 |
154 /** |
174 /** |
155 * Delete connections allocated recources. |
175 * Delete connections allocated recources. |
156 * @since |
176 * @since |
157 * @return void |
177 * @return void |
282 * Stops the external connection. |
302 * Stops the external connection. |
283 * @since |
303 * @since |
284 * @return KErrNone if successfull, otherwise a system wide error code. |
304 * @return KErrNone if successfull, otherwise a system wide error code. |
285 */ |
305 */ |
286 TInt Stop(); |
306 TInt Stop(); |
|
307 |
|
308 /** |
|
309 * Stops the external connection (asynchronous). |
|
310 * @param aStatus KErrNone if successful, a system-wide error code if not. |
|
311 * @return void. |
|
312 */ |
|
313 void Stop( TRequestStatus& aStatus ); |
|
314 |
|
315 /** |
|
316 * Cleans up connection related objects and table entries if the status |
|
317 * notifier is not running. If status notifier is running, cleanup will |
|
318 * be triggered by connection specific 'context status deleted'-event. |
|
319 * @return void. |
|
320 */ |
|
321 void CleanupConnectionInfo(); |
287 |
322 |
288 /** |
323 /** |
289 * Removes connection from server tables. |
324 * Removes connection from server tables. |
290 * @since |
325 * @since |
291 * @return void. |
326 * @return void. |