|
1 /* |
|
2 * Copyright (c) 2004-2009 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 "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 * Name : CProxyConnectionContainer.h |
|
16 * Part of : ProxyResolver |
|
17 * See class definition below. |
|
18 * Version : SIP/4.0 |
|
19 * |
|
20 */ |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 /** |
|
26 @internalComponent |
|
27 */ |
|
28 |
|
29 #ifndef CPROXYCONNECTIONCONTAINER_H |
|
30 #define CPROXYCONNECTIONCONTAINER_H |
|
31 |
|
32 // INCLUDES |
|
33 #include <in_sock.h> |
|
34 #include <es_sock.h> |
|
35 #include <commdbconnpref.h> |
|
36 |
|
37 // FORWARD DECLARATIONS |
|
38 class MConnObserver; |
|
39 |
|
40 // CLASS DEFINITION |
|
41 /** |
|
42 * |
|
43 */ |
|
44 class CProxyConnectionContainer |
|
45 : public CActive |
|
46 { |
|
47 public: // Constructors and destructor |
|
48 |
|
49 static CProxyConnectionContainer* NewL( MConnObserver& aObserver, |
|
50 TUint32 aIapId, |
|
51 RSocketServ& aServer ); |
|
52 |
|
53 static CProxyConnectionContainer* NewLC( MConnObserver& aObserver, |
|
54 TUint32 aIapId, |
|
55 RSocketServ& aServer ); |
|
56 |
|
57 /// Destructor |
|
58 ~CProxyConnectionContainer(); |
|
59 |
|
60 public: // New functions |
|
61 |
|
62 // returns RConnection object |
|
63 RConnection& Connection(); |
|
64 |
|
65 protected: // From CActive |
|
66 |
|
67 void DoCancel(); |
|
68 void RunL(); |
|
69 |
|
70 private: // Constructors |
|
71 |
|
72 void ConstructL(); |
|
73 CProxyConnectionContainer( MConnObserver& aObserver, |
|
74 TUint32 aIapId, |
|
75 RSocketServ& aServer ); |
|
76 |
|
77 private: // Data |
|
78 |
|
79 MConnObserver& iObserver; // Observer (CProxyQuery) |
|
80 RConnection iConnection; // RConnection object |
|
81 TCommDbConnPref iPrefs; // Connection preferences |
|
82 TUint32 iIapId; // current IAP id |
|
83 RSocketServ& iServer; // socket server |
|
84 |
|
85 }; |
|
86 |
|
87 #endif // CPROXYCONNECTIONCONTAINER_H |