1 /* |
|
2 * Copyright (c) 2005 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 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CSIPSSETESTTLS_H |
|
21 #define CSIPSSETESTTLS_H |
|
22 |
|
23 #include <e32base.h> |
|
24 #include <bamdesca.h> |
|
25 #include <stringpool.h> |
|
26 #include <sipprofileregistryobserver.h> |
|
27 |
|
28 #include <etelmm.h> |
|
29 #include <Etel3rdParty.h> |
|
30 |
|
31 class CSIPMessageElements; |
|
32 class CSIPResponseElements; |
|
33 class RStringF; |
|
34 class CSdpDocument; |
|
35 class CSsfInvitation; |
|
36 class TRequestStatus; |
|
37 class CConnMonEventBase; |
|
38 class CSIPRequestElements; |
|
39 |
|
40 //class CTelephony; |
|
41 //class MSIPProfileRegistryObserver; |
|
42 |
|
43 // STUB stuff |
|
44 |
|
45 typedef TInt TSIPProfileBehavior; |
|
46 const TSIPProfileBehavior KRegistryLeaveAtConstruct = 1; |
|
47 const TSIPProfileBehavior KSIPProfileIdFetchFails = 2; |
|
48 const TSIPProfileBehavior KSIPIapIdFetchFails = 3; |
|
49 const TSIPProfileBehavior KSIPConnectionLeaveAtConstruct = 4; |
|
50 |
|
51 class CSipSseTestTls : public CBase |
|
52 { |
|
53 |
|
54 public: |
|
55 |
|
56 static void OpenL(); |
|
57 |
|
58 static void Close(); |
|
59 |
|
60 static CSipSseTestTls* Storage(); |
|
61 |
|
62 ~CSipSseTestTls(); |
|
63 |
|
64 void Reset(); |
|
65 |
|
66 TInt Set(TUint32 aKey, TInt aValue); |
|
67 |
|
68 TInt Get(TUint32 aKey, TInt& aValue); |
|
69 |
|
70 void SetError( TInt aError ); |
|
71 |
|
72 TInt Error() const; |
|
73 |
|
74 void Clear(); |
|
75 |
|
76 void SetRequestStatus( TRequestStatus& iStatus ); |
|
77 |
|
78 TBool RegisterStatus(); |
|
79 |
|
80 void SetRegisterStatus( TBool aStatus ); |
|
81 |
|
82 TBool RegisterSent(); |
|
83 |
|
84 void StoreRegistry( MSIPProfileRegistryObserver& aRegistry ); |
|
85 |
|
86 //RCommMon |
|
87 TInt ConnectionCount(); |
|
88 |
|
89 void SetConnectionCount( TInt aCount ); |
|
90 |
|
91 void ConnectionInfo( const TUint& aIndex, |
|
92 TUint& aConnectionId, |
|
93 TUint& aSubConnectionCount ); |
|
94 |
|
95 void SetConnectionInfo( TUint aConnectionId, |
|
96 TUint aSubConnectionCount ); |
|
97 |
|
98 void GetUintAttribute( const TUint aConnectionId, |
|
99 const TUint aSubConnectionId, |
|
100 const TUint aAttribute, |
|
101 TUint& aValue, |
|
102 TRequestStatus& aStatus ); |
|
103 |
|
104 void SetUintAttribute( const TUint aConnectionId, |
|
105 const TUint aSubConnectionId, |
|
106 const TUint aAttribute, |
|
107 TUint aValue, |
|
108 TRequestStatus& aStatus ); |
|
109 |
|
110 void GetIntAttribute( const TUint aConnectionId, |
|
111 const TUint aSubConnectionId, |
|
112 const TUint aAttribute, |
|
113 TInt& aValue, |
|
114 TRequestStatus& aStatus ); |
|
115 |
|
116 void SetIntAttribute( const TUint aConnectionId, |
|
117 const TUint aSubConnectionId, |
|
118 const TUint aAttribute, |
|
119 TInt aValue, |
|
120 TRequestStatus& aStatus ); |
|
121 |
|
122 void SetEvent(const CConnMonEventBase& aConnMonEvent ); |
|
123 |
|
124 |
|
125 const CConnMonEventBase& Event(); |
|
126 |
|
127 |
|
128 void SetRegistrationStatus( RMobilePhone::TMobilePhoneRegistrationStatus aRegStatus ); |
|
129 void SetRegistrationStatus( RMobilePhone::TMobilePhoneRegistrationStatus* aRegStatus ); |
|
130 |
|
131 void RegistrationStatus( RMobilePhone::TMobilePhoneRegistrationStatus& aReqStatus ); |
|
132 |
|
133 void SetPhoneNetworkModeStatus( RMobilePhone::TMobilePhoneNetworkMode aStatus ); |
|
134 |
|
135 RMobilePhone::TMobilePhoneNetworkMode& PhoneNetworkModeStatus(); |
|
136 |
|
137 void ClientRequest( CSIPRequestElements* aRequest ); |
|
138 void ClientResponse( RStringF aMethod, CSIPResponseElements* aResponse ); |
|
139 |
|
140 private: |
|
141 |
|
142 CSipSseTestTls(); |
|
143 |
|
144 public://data |
|
145 |
|
146 // Stubs leave/return this error |
|
147 TInt iError; |
|
148 static TBool iSipRegisterStatus; |
|
149 MSIPProfileRegistryObserver* iRegistry; |
|
150 //RCommMon |
|
151 TInt iConnectionCount; |
|
152 //ConnectionInfo |
|
153 TUint iConnectionId; |
|
154 TUint iSubConnectionCount; |
|
155 //UintAttribute |
|
156 TUint iUintAttributeValue; |
|
157 //UintAttribute |
|
158 TUint iIntAttributeValue; |
|
159 TRequestStatus iRequestStatus; |
|
160 CConnMonEventBase* iConnMonEventBase; |
|
161 |
|
162 RMobilePhone::TMobilePhoneRegistrationStatus iPhoneRegistrationStatus; |
|
163 RMobilePhone::TMobilePhoneRegistrationStatus* iPhoneRegistrationStatusPointer; |
|
164 RMobilePhone::TMobilePhoneNetworkMode iPhoneNetworkMode; |
|
165 |
|
166 CSIPRequestElements* iClientRequest; |
|
167 RStringF iResponseToRequest; |
|
168 CSIPResponseElements* iClientResponse; |
|
169 RArray<TUint32> iKeys; |
|
170 RArray<TInt> iValues; |
|
171 TSIPProfileBehavior iRegistryBehavior; |
|
172 TSIPProfileBehavior iProfileBehavior; |
|
173 TSIPProfileBehavior iConnectionBehavior; |
|
174 }; |
|
175 |
|
176 |
|
177 |
|
178 #endif |
|
179 |
|
180 // End of File |
|