|
1 /* |
|
2 * Copyright (c) 2006 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 #ifndef CONNECTION_OBSERVER_H |
|
20 #define CONNECTION_OBSERVER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <e32std.h> |
|
25 |
|
26 #include <ApEngineconsts.h> |
|
27 |
|
28 // CONSTANTS |
|
29 |
|
30 // MACROS |
|
31 |
|
32 // DATA TYPES |
|
33 |
|
34 // FUNCTION PROTOTYPES |
|
35 |
|
36 // FORWARD DECLARATIONS |
|
37 |
|
38 // CLASS DECLARATION |
|
39 |
|
40 /** |
|
41 * The Connection observer interface. |
|
42 * |
|
43 * \b Library: FeedsEngine.lib |
|
44 * |
|
45 * @since 3.1 |
|
46 */ |
|
47 class MConnectionObserver |
|
48 { |
|
49 public: // New Methods |
|
50 |
|
51 /** |
|
52 * Request to create a network connection. |
|
53 * |
|
54 * @since 3.1 |
|
55 * @param aConnectionPtr A pointer to the new connection. If NULL, the |
|
56 * proxy filter will automatically create a network connection. |
|
57 * @param aSockSvrHandle A handle to the socket server. |
|
58 * @param aNewConn A flag if a new connection was created. If the |
|
59 * connection is not new, proxy filter optimization will not |
|
60 * read the proxy again from CommsBd. |
|
61 * @param aBearerType The bearer type of the new connection |
|
62 * @return void |
|
63 */ |
|
64 virtual void NetworkConnectionNeededL(TInt* aConnectionPtr, TInt& aSockSvrHandle, |
|
65 TBool& aNewConn, TApBearerType& aBearerType) = 0; |
|
66 }; |
|
67 |
|
68 |
|
69 #endif // CONNECTION_OBSERVER_H |
|
70 // End of File |