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