|
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 "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: IMPS Protocol implementation for Presence Framework |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __CIMPSCONNECTION_H__ |
|
20 #define __CIMPSCONNECTION_H__ |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <ximpprotocolconnectionhost.h> |
|
25 #include <ximpprotocolconnection.h> |
|
26 #include "PImpsAdapWVCspVersion.h" |
|
27 |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class MXIMPServiceInfo; |
|
31 class MXIMPContextClientInfo; |
|
32 class MXIMPProtocolConnection; |
|
33 class CImpsPluginConnectionManager; |
|
34 class CImpsPluginLogoutRequest; |
|
35 class CImpsPluginLoginRequest; |
|
36 class CImpsProtocolPresenceFeatures; |
|
37 |
|
38 |
|
39 |
|
40 /** |
|
41 * CImpsConnection |
|
42 * |
|
43 * Imps Protocol Connection Object. Protocol Connection Object has connection Manager. |
|
44 * |
|
45 * @lib ?library |
|
46 * @since S60 v4.0 |
|
47 */ |
|
48 class CImpsConnection : |
|
49 public CBase, |
|
50 public MXIMPProtocolConnection |
|
51 { |
|
52 |
|
53 public: |
|
54 |
|
55 static CImpsConnection* NewL( const MXIMPServiceInfo& aServiceInfo, |
|
56 const MXIMPContextClientInfo& aClientCtxInfo ); |
|
57 |
|
58 |
|
59 ~CImpsConnection(); |
|
60 |
|
61 |
|
62 private: |
|
63 |
|
64 CImpsConnection(); |
|
65 |
|
66 |
|
67 void ConstructL( const MXIMPServiceInfo& aServiceInfo, |
|
68 const MXIMPContextClientInfo& aClientCtxInfo ); |
|
69 |
|
70 |
|
71 public: // from MXIMPBase |
|
72 |
|
73 TAny* GetInterface( TInt32 aInterfaceId, |
|
74 TIfGetOps aOptions ); |
|
75 |
|
76 const TAny* GetInterface( TInt32 aInterfaceId, |
|
77 TIfGetOps aOptions ) const; |
|
78 |
|
79 |
|
80 TInt32 GetInterfaceId() const; |
|
81 |
|
82 |
|
83 public: // from CPrFwProtocolConnection |
|
84 |
|
85 // Common |
|
86 void PrimeHost( MXIMPProtocolConnectionHost& aHost ); |
|
87 |
|
88 |
|
89 // session management |
|
90 void OpenSessionL( const MXIMPContextClientInfo& aClientCtxInfo, |
|
91 TXIMPRequestId aOpId ); |
|
92 |
|
93 void OpenSessionL( const TInt& aSettingsId, |
|
94 TXIMPRequestId aReqId ); |
|
95 |
|
96 void CloseSession( const MXIMPContextClientInfo& aClientCtxInfo, |
|
97 TXIMPRequestId aOpId ); |
|
98 |
|
99 void ReOpenSessionsL( TXIMPRequestId aReqId ); |
|
100 |
|
101 void GetSupportedFeaturesL( CDesC8Array& aFeatures ) const; |
|
102 |
|
103 MProtocolPresenceFeatures& ProtocolPresenceFeatures(); |
|
104 |
|
105 /** |
|
106 * @see MXIMPProtocolConnection |
|
107 */ |
|
108 TAny* GetProtocolInterface( TInt aInterfaceId ); |
|
109 |
|
110 private: // data members |
|
111 |
|
112 CImpsPluginConnectionManager* iConnMan; |
|
113 |
|
114 CImpsProtocolPresenceFeatures* iPresFeatures; |
|
115 |
|
116 }; |
|
117 |
|
118 |
|
119 #endif // CIMPSCONNECTION_H__ |