author | mikaruus <mika.a.ruuskanen@nokia.com> |
Wed, 21 Apr 2010 14:29:55 +0300 | |
changeset 8 | 6295dc2169f3 |
parent 7 | fa67e03b87df |
child 9 | 8486d82aef45 |
permissions | -rw-r--r-- |
0 | 1 |
/* |
7
fa67e03b87df
New release based on our 2010wk08 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
5
diff
changeset
|
2 |
* Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). |
0 | 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 |
* |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
14 |
* Description: |
0 | 15 |
* |
16 |
*/ |
|
17 |
||
18 |
||
19 |
||
20 |
||
21 |
#ifndef CMMCALLMESSAGEHANDLER_H |
|
22 |
#define CMMCALLMESSAGEHANDLER_H |
|
23 |
||
24 |
// INCLUDES |
|
25 |
#include "mmmmesshandlerbase.h" |
|
26 |
#include "cmmphonetreceiver.h" |
|
27 |
#include "nokiatsy_internal_variation.h" |
|
28 |
#include <e32base.h> |
|
29 |
#include <etelmm.h> |
|
30 |
#include <tisi.h> |
|
31 |
#include <ctsy/rmmcustomapi.h> |
|
32 |
#include <ctsy/pluginapi/cmmdatapackage.h> |
|
33 |
||
34 |
// CONSTANTS |
|
35 |
// Maximum length of UUS sub block |
|
36 |
// (defined in call server specification) |
|
37 |
const TInt KUserToUserSbMaxLength = 248; |
|
38 |
||
39 |
// Maximum length of telephony number |
|
40 |
// (defined in call server specification) |
|
41 |
const TInt KTelephonyNumberMaxLength = 123; |
|
42 |
||
43 |
// Maximum length of ISA address sub block |
|
44 |
// (defined in call server specification) |
|
45 |
const TInt KAddressSubBlockMaxLength = 252; |
|
46 |
||
47 |
// Hard-coded transaction id for ISI messages |
|
48 |
const TUint8 KCallTransId = 1; |
|
49 |
||
50 |
// Constant for not allocated Symbian call ID |
|
51 |
const TInt KSymbianCallIdNone = -1; |
|
52 |
||
53 |
// Maximum length of destination post address |
|
54 |
const TInt KDestPostAddressMaxLength = 15; |
|
55 |
||
56 |
// Bit mask costants |
|
57 |
const TUint8 KMaskBits1to3 = 0x07; |
|
58 |
const TUint8 KMaskBits1to4 = 0x0F; |
|
59 |
const TUint8 KMaskBits5to7 = 0x70; |
|
60 |
const TUint8 KMaskBits6to7 = 0x60; |
|
61 |
const TUint8 KMaskBits1to7 = 0x7F; |
|
62 |
const TUint8 KMaskBit8 = 0x80; |
|
63 |
||
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
64 |
// These OBJ ID is used in pipe direction. |
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
65 |
// Pipe-End-Point, Circuit Switched Data server |
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
66 |
#define PN_OBJ_CSD_SRV 0x31 |
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
67 |
|
0 | 68 |
// MACROS |
69 |
// None |
|
70 |
||
71 |
// DATA TYPES |
|
72 |
// None |
|
73 |
||
74 |
// FUNCTION PROTOTYPES |
|
75 |
// None |
|
76 |
||
77 |
// FORWARD DECLARATIONS |
|
78 |
class CMmPhoneTsy; |
|
79 |
class CMmPhoNetSender; |
|
80 |
class CMmDataPortHandler; |
|
81 |
class CMmDtmfMessHandler; |
|
82 |
class CMmMessageRouter; |
|
83 |
||
84 |
// CLASS DECLARATION |
|
85 |
||
86 |
/** |
|
87 |
* CEmergencyTimer: Used for delaying emergency call when PDP context deactivate |
|
88 |
* is ongoing |
|
89 |
*/ |
|
90 |
class CEmergencyTimer : public CTimer |
|
91 |
{ |
|
92 |
class CMmCallMessHandler& iCallMsgHandler; |
|
93 |
||
94 |
public: |
|
95 |
||
96 |
/** |
|
97 |
* Constructor |
|
98 |
*/ |
|
99 |
CEmergencyTimer( CMmCallMessHandler& aCallMsgHandler ); |
|
100 |
||
101 |
/** |
|
102 |
* Destructor. |
|
103 |
*/ |
|
104 |
~CEmergencyTimer(); |
|
105 |
||
106 |
/** |
|
107 |
* 2nd phase constructor. |
|
108 |
*/ |
|
109 |
void ConstructL(); |
|
110 |
||
111 |
/** |
|
112 |
* From CActive. |
|
113 |
* Called when timer elapses. |
|
114 |
*/ |
|
115 |
void RunL(); |
|
116 |
||
117 |
/** |
|
118 |
* Start emergency delay timer |
|
119 |
*/ |
|
120 |
void StartEmergencyTimer(); |
|
121 |
||
122 |
/** |
|
123 |
* Stop emergency delay timer |
|
124 |
*/ |
|
125 |
void StopEmergencyTimer(); |
|
126 |
}; |
|
127 |
||
128 |
// CLASS DECLARATION |
|
129 |
||
130 |
/** |
|
131 |
* Call related ISI message handler |
|
132 |
* Used for creating and sending call ISI messages to |
|
133 |
* PhoNet via PhoNetSender. It also receives call |
|
134 |
* ISI messages from PhoNetReceiver. |
|
135 |
* @lib (unknown) |
|
136 |
* @since Series S60 2.6 |
|
137 |
*/ |
|
138 |
class CMmCallMessHandler : public CBase, |
|
139 |
public MMmMessHandlerBase, public MMmMessageReceiver |
|
140 |
{ |
|
141 |
public: // Constructors and destructor |
|
142 |
||
143 |
/** |
|
144 |
* Two-phased constructor. |
|
145 |
* @param aPhoNetSender Pointer to the phonet sender |
|
146 |
* @param aPhoNetReceiver Pointer to the phonet receiver |
|
147 |
* @param aDtmfMessHandler Pointer to the DTMF message handler |
|
148 |
* @param aMessageRouter Pointer to the message router |
|
149 |
* @return Pointer to the call message handler |
|
150 |
*/ |
|
151 |
static CMmCallMessHandler* NewL( |
|
152 |
CMmPhoNetSender* aPhoNetSender, |
|
153 |
CMmPhoNetReceiver* aPhoNetReceiver, |
|
154 |
CMmDtmfMessHandler* aDtmfMessHandler, |
|
155 |
CMmMessageRouter* aMessageRouter ); |
|
156 |
||
157 |
/** |
|
158 |
* Destructor. |
|
159 |
*/ |
|
160 |
~CMmCallMessHandler(); |
|
161 |
||
162 |
public: // New functions |
|
163 |
||
164 |
/** |
|
165 |
* Checks if the received message should be handled by the |
|
166 |
* call message handler |
|
167 |
* @param aIsiMessage Reference to the received ISI message. |
|
168 |
* @return void |
|
169 |
*/ |
|
170 |
void ReceiveMessageL( const TIsiReceiveC &aIsiMessage ); |
|
171 |
||
172 |
/** |
|
173 |
* Handles errors comes from PhoNetReceiver RunError |
|
174 |
* @param TIsiReceiveC& The received ISI message |
|
175 |
* @param aError Error code |
|
176 |
* @return void |
|
177 |
*/ |
|
178 |
void HandleError( const TIsiReceiveC&, TInt aError ); |
|
179 |
||
180 |
/** |
|
181 |
* Initialize Dataport |
|
182 |
* @return void |
|
183 |
*/ |
|
184 |
void InitializeDataportL(); |
|
185 |
||
186 |
public: // Functions from base classes |
|
187 |
||
188 |
/** |
|
189 |
* From MMmMessHandlerBase. This method is the single entry point for |
|
190 |
* requests coming from the Symbian OS layer to this message handler |
|
191 |
* @param aIpc IPC number of the request |
|
192 |
* @param aDataPackage datapackage from CommonTSY |
|
193 |
* @return KErrNone or error code |
|
194 |
*/ |
|
195 |
TInt ExtFuncL( TInt aIpc, const CMmDataPackage* aDataPackage ); |
|
196 |
||
197 |
||
198 |
protected: // New functions |
|
199 |
// None |
|
200 |
||
201 |
protected: // Functions from base classes |
|
202 |
// None |
|
203 |
||
204 |
private: |
|
205 |
||
206 |
/** |
|
207 |
* C++ default constructor. |
|
208 |
*/ |
|
209 |
CMmCallMessHandler(); |
|
210 |
||
211 |
/** |
|
212 |
* By default Symbian 2nd phase constructor is private. |
|
213 |
*/ |
|
214 |
void ConstructL(); |
|
215 |
||
216 |
/** |
|
217 |
* Creates CALL_CREATE_REQ ISI message and sends it to Phonet. |
|
218 |
* @return KErrNone or error code |
|
219 |
*/ |
|
220 |
TInt CallCreateReq(); |
|
221 |
||
222 |
/** |
|
223 |
* Breaks received CALL_CREATE_RESP ISI message. |
|
224 |
* @param aIsiMessage Reference to the received message. |
|
225 |
* @return void |
|
226 |
*/ |
|
227 |
void CallCreateResp( const TIsiReceiveC &aIsiMessage ); |
|
228 |
||
229 |
/** |
|
230 |
* Creates CALL_CREATE_REQ ISI message for emergency calls. |
|
231 |
* @param aCallReq Reference to the message to be sent. |
|
232 |
* @return void |
|
233 |
*/ |
|
234 |
void EmergencyCallCreateReq( TIsiSend* aCallReq ); |
|
235 |
||
236 |
/** |
|
237 |
* Breaks received CALL_ANSWER_RESP ISI message. |
|
238 |
* @param aIsiMessage Reference to the received message. |
|
239 |
* @return void |
|
240 |
*/ |
|
241 |
void CallAnswerResp( const TIsiReceiveC &aIsiMessage ); |
|
242 |
||
243 |
/** |
|
244 |
* Creates CALL_RELEASE_REQ ISI message and sends it to PhonetSender. |
|
245 |
* @param aCallReq Reference to the message to be sent |
|
246 |
* @param aDataPackage Input data from the Symbian OS layer |
|
247 |
* @return void |
|
248 |
*/ |
|
249 |
void CallReleaseReq( |
|
250 |
TIsiSend* aCallReq, |
|
251 |
const CCallDataPackage* aDataPackage ); |
|
252 |
||
253 |
/** |
|
254 |
* Breaks received CALL_RELEASE_RESP ISI message. |
|
255 |
* @param aIsiMessage Reference to the received message. |
|
256 |
* @return void |
|
257 |
*/ |
|
258 |
void CallReleaseResp( const TIsiReceiveC &aIsiMessage ); |
|
259 |
||
260 |
/** |
|
261 |
* Breaks received CALL_RELEASE_IND ISI message. |
|
262 |
* @param aIsiMessage Reference to the received message. |
|
263 |
* @return void |
|
264 |
*/ |
|
265 |
void CallReleaseInd( const TIsiReceiveC &aIsiMessage ); |
|
266 |
||
267 |
/** |
|
268 |
* Breaks CALL_TERMINATED_IND ISI message. |
|
269 |
* @param aIsiMessage Reference to the received message. |
|
270 |
* @return void |
|
271 |
*/ |
|
272 |
void CallTerminatedInd( const TIsiReceiveC &aIsiMessage ); |
|
273 |
||
274 |
/** |
|
275 |
* Breaks received CALL_COMING_IND ISI message. |
|
276 |
* @param aIsiMessage Reference to the received message. |
|
277 |
* @return void |
|
278 |
*/ |
|
279 |
void CallComingInd( const TIsiReceiveC &aIsiMessage ); |
|
280 |
||
281 |
/** |
|
282 |
* Creates call control request (holding a call etc.) ISI |
|
283 |
* message and sends it to PhonetSender. |
|
284 |
* @param aCallReq Reference to the message to be sent |
|
285 |
* @param aIpc IPC number of the request |
|
286 |
* @return void |
|
287 |
*/ |
|
288 |
void CallControlReq( TIsiSend* aCallReq, TInt aIpc ) const; |
|
289 |
||
290 |
/** |
|
291 |
* Breaks received CALL_CONTROL_RESP ISI message. |
|
292 |
* @param aIsiMessage Reference to the received message. |
|
293 |
* @return void |
|
294 |
*/ |
|
295 |
void CallControlResp( const TIsiReceiveC &aIsiMessage ) const; |
|
296 |
||
297 |
/** |
|
298 |
* Breaks received CALL_CONTROL_IND ISI message. |
|
299 |
* @param aIsiMessage Reference to the received message. |
|
300 |
* @return void |
|
301 |
*/ |
|
302 |
void CallControlInd( const TIsiReceiveC &aIsiMessage ) const; |
|
303 |
||
304 |
/** |
|
305 |
* Creates and sends call property set request to PhonetSender |
|
306 |
* @param aCallReq Reference to the message to be sent |
|
307 |
* @param aDataPackage Input data from the Symbian OS layer |
|
308 |
* @return void |
|
309 |
*/ |
|
310 |
void CallPropertySetReq( |
|
311 |
TIsiSend* aCallReq, |
|
312 |
const CCallDataPackage* aDataPackage ); |
|
313 |
||
314 |
/** |
|
315 |
* Breaks received CALL_PROPERTY_SET_RESP ISI message. |
|
316 |
* @param aIsiMessage Reference to the received message. |
|
317 |
* @return void |
|
318 |
*/ |
|
319 |
void CallPropertySetResp( const TIsiReceiveC &aIsiMessage ); |
|
320 |
||
321 |
/** |
|
322 |
* Breaks received call status indication ISI message. |
|
323 |
* @param aIsiMessage Reference to the received message. |
|
324 |
* @return void |
|
325 |
*/ |
|
326 |
void CallStatusIndL( const TIsiReceiveC &aIsiMessage ); |
|
327 |
||
328 |
/** |
|
329 |
* Breaks received call GSM notification indication |
|
330 |
* @param aIsiMessage Reference to the received message. |
|
331 |
* @return void |
|
332 |
*/ |
|
333 |
void CallGsmNotificationInd( const TIsiReceiveC &aIsiMessage ); |
|
334 |
||
335 |
/** |
|
336 |
* Resets all fields of incoming mobile call info. |
|
337 |
* @param aIncomingCallInfo Reference to the mobile call info info |
|
338 |
*/ |
|
339 |
void ResetIncomingCallInfo( |
|
340 |
RMobileCall::TMobileCallInfoV1& aIncomingCallInfo ) const; |
|
341 |
||
342 |
||
343 |
/** |
|
344 |
* Creates sub block for CALL_CREATE_REQ |
|
345 |
* @param aMode Mode of the call to be dialed (voice, csd, etc.) |
|
346 |
* @param aTelNumber Phone number to be called |
|
347 |
* @param aIdRestrict Caller id restriction |
|
348 |
* @param aCallIsiMsg Call IsiMsg |
|
349 |
* @param numOfSbInMsg Number of subblocks |
|
350 |
* @param aCurrentMsgOffset Current msg offset |
|
351 |
* @return void |
|
352 |
*/ |
|
353 |
void GetCallCreateReqSubBlock( |
|
354 |
TUint8 aMode, |
|
355 |
const TDesC16& aTelNumber, |
|
356 |
RMobileCall::TMobileCallIdRestriction aIdRestrict, |
|
357 |
TIsiSend& aCallIsiMsg, |
|
358 |
TUint8& numOfSbInMsg, |
|
359 |
TInt &aCurrentMsgOffset ); |
|
360 |
||
361 |
/** |
|
362 |
* Constructs SAT sub blocks for CALL_CREATE_REQ ISI message. |
|
363 |
* @param aSubAddress Called party sub address |
|
364 |
* @param aBearer Bearer capability sub address |
|
365 |
* @param aCallIsiMsg Call IsiMsg |
|
366 |
* @param aNumOfSbInMsg Number of subblocks |
|
367 |
* @param aCurrentMsgOffset Current msg offset |
|
368 |
* @return void |
|
369 |
*/ |
|
370 |
#if ( NCP_COMMON_S60_VERSION_SUPPORT >= S60_VERSION_50 ) |
|
371 |
void GetSatOriginatedSubBlocks( |
|
372 |
TIsiSend& aCallIsiMsg, |
|
373 |
TUint8& aNumOfSbInMsg, |
|
374 |
TInt& aCurrentMsgOffset ) const; |
|
375 |
#else |
|
376 |
void GetSatOriginatedSubBlocks( |
|
377 |
const TBuf<KSubAddressSize>& aSubAddress, |
|
378 |
TBuf8<KBearerCapabilitySize>& aBearer, |
|
379 |
TIsiSend& aCallIsiMsg, |
|
380 |
TUint8& aNumOfSbInMsg, |
|
381 |
TInt& aCurrentMsgOffset ) const; |
|
382 |
#endif |
|
383 |
||
384 |
/** |
|
385 |
* Maps ISI call status to Symbian OS call status |
|
386 |
* @param aCallStatus ISI call status |
|
387 |
* @return Symbian OS call status |
|
388 |
*/ |
|
389 |
RMobileCall::TMobileCallStatus MapCallStatus( TUint8 aCallStatus ); |
|
390 |
||
391 |
/** |
|
392 |
* Maps ISI call mode to Symbian OS call mode |
|
393 |
* @param aMobileCallInfo Call info |
|
394 |
* @param aIsiCallMode ISI call mode |
|
395 |
* @return void |
|
396 |
*/ |
|
397 |
void FillModeData( |
|
398 |
RMobileCall::TMobileCallInfoV1& aMobileCallInfo, |
|
399 |
TUint8 aIsiCallMode ) const; |
|
400 |
||
401 |
/** |
|
402 |
* Maps ISI values to Symbian OS numbering plan and number type |
|
403 |
* @param aMobileCallInfo Call info |
|
404 |
* @param aOrigAddressType ISI originated address type value |
|
405 |
* @return void |
|
406 |
*/ |
|
407 |
void FillNumberPlanAndType( |
|
408 |
RMobileCall::TMobileCallInfoV1& aMobileCallInfo, |
|
409 |
TUint aOrigAddressType ) const; |
|
410 |
||
411 |
/** |
|
412 |
* Maps ISI values to Symbian OS remote party status and number |
|
413 |
* @param aMobileCallInfo Call info |
|
414 |
* @param aOrigPresentInd ISI presentation information value |
|
415 |
* @param aOrigAddress ISI call origination address |
|
416 |
* @param aMobileCallDirection ISI call direction value |
|
417 |
* @return void |
|
418 |
*/ |
|
419 |
void FillRemoteStatusAndNumber( |
|
420 |
RMobileCall::TMobileCallInfoV1& aMobileCallInfo, |
|
421 |
TUint8 aOrigPresentInd, |
|
422 |
const TDes16& aOrigAddress, |
|
423 |
RMobileCall::TMobileCallDirection aMobileCallDirection) const; |
|
424 |
||
425 |
/** |
|
426 |
* Maps ISI values to calling name |
|
427 |
* @param aMobileCallInfo Call info |
|
428 |
* @param aOrigInfoPresentInd ISI presentation information value |
|
429 |
* @param aOrigInfoName ISI call origination name |
|
430 |
* @param aOrigInfoNumberSource ISI call origination information source |
|
431 |
* @return void |
|
432 |
*/ |
|
433 |
void FillCallingName( |
|
434 |
RMobileCall::TMobileCallInfoV1& aMobileCallInfo, |
|
435 |
TUint8 aOrigInfoPresentInd, |
|
436 |
const TDes16& aOrigInfoName ) const; |
|
437 |
||
438 |
/** |
|
439 |
* Breaks received CallServiceDeniedInd ISI message. |
|
440 |
* @param aIsiMessage Reference to the received message. |
|
441 |
* @return void |
|
442 |
*/ |
|
443 |
void CallServiceDeniedInd( const TIsiReceiveC &aIsiMessage ); |
|
444 |
||
445 |
||
446 |
/** |
|
447 |
* Checks call ISA status |
|
448 |
* @param aMobileCallInfo. |
|
449 |
* @param aCallStatusISA |
|
450 |
* @return void |
|
451 |
*/ |
|
452 |
void CheckCallIsaStatus( |
|
453 |
RMobileCall::TMobileCallInfoV1& aMobileCallInfo, |
|
454 |
TUint8 aCallStatusISA ); |
|
455 |
||
456 |
/** |
|
457 |
* Read all address destination |
|
458 |
* @param aMobileCallInfo Call info |
|
459 |
* @param aTargetOrig Target origin |
|
460 |
* @param aIsiMessage Received ISI message |
|
461 |
* @param aSbStartOffSet Subblock start offset |
|
462 |
* @return void |
|
463 |
*/ |
|
464 |
void ReadAllAddressDestination( |
|
465 |
RMobileCall::TMobileCallInfoV1& aMobileCallInfo, |
|
466 |
TBuf16<RMobilePhone::KMaxMobileTelNumberSize>& aTargetOrig, |
|
467 |
const TIsiReceiveC &aIsiMessage, |
|
468 |
TUint& aSbStartOffSet, |
|
469 |
TUint8 origPresentInd); |
|
470 |
||
471 |
/** |
|
7
fa67e03b87df
New release based on our 2010wk08 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
5
diff
changeset
|
472 |
* Read all address connected (needed for COLP) |
fa67e03b87df
New release based on our 2010wk08 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
5
diff
changeset
|
473 |
* @param aMobileCallInfo Call info |
fa67e03b87df
New release based on our 2010wk08 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
5
diff
changeset
|
474 |
* @param aTargetOrig Target origin |
fa67e03b87df
New release based on our 2010wk08 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
5
diff
changeset
|
475 |
* @param aIsiMessage Received ISI message |
fa67e03b87df
New release based on our 2010wk08 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
5
diff
changeset
|
476 |
* @param aSbStartOffSet Subblock start offset |
fa67e03b87df
New release based on our 2010wk08 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
5
diff
changeset
|
477 |
* @return void |
fa67e03b87df
New release based on our 2010wk08 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
5
diff
changeset
|
478 |
*/ |
fa67e03b87df
New release based on our 2010wk08 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
5
diff
changeset
|
479 |
void ReadAllAddressConnected( |
fa67e03b87df
New release based on our 2010wk08 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
5
diff
changeset
|
480 |
RMobileCall::TMobileCallInfoV1& aMobileCallInfo, |
fa67e03b87df
New release based on our 2010wk08 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
5
diff
changeset
|
481 |
TBuf16<RMobilePhone::KMaxMobileTelNumberSize>& aTargetOrig, |
fa67e03b87df
New release based on our 2010wk08 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
5
diff
changeset
|
482 |
const TIsiReceiveC &aIsiMessage, |
fa67e03b87df
New release based on our 2010wk08 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
5
diff
changeset
|
483 |
TUint& aSbStartOffSet); |
fa67e03b87df
New release based on our 2010wk08 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
5
diff
changeset
|
484 |
|
fa67e03b87df
New release based on our 2010wk08 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
5
diff
changeset
|
485 |
/** |
0 | 486 |
* Read origin call info |
487 |
* @param aMobileCallInfo Call info |
|
488 |
* @param aTargetOrigName Target origin name |
|
489 |
* @param aIsiMessage Received ISI message |
|
490 |
* @param aSbStartOffSet Subblock start offset |
|
491 |
* @return void |
|
492 |
*/ |
|
493 |
void ReadCallInfo( |
|
494 |
RMobileCall::TMobileCallInfoV1& aMobileCallInfo, |
|
495 |
TBuf16<RMobileCall::KCallingNameSize>& aTargetOrigName, |
|
496 |
const TIsiReceiveC &aIsiMessage, |
|
497 |
TUint& aSbStartOffSet ); |
|
498 |
||
499 |
/** |
|
500 |
* Complete incoming call notification |
|
501 |
* @param aMobileCallInfo Call info |
|
502 |
* @param aStatusETel ETel status |
|
503 |
* @return void |
|
504 |
*/ |
|
505 |
void CompleteIncomingCallNotif( |
|
506 |
RMobileCall::TMobileCallInfoV1& aMobileCallInfo, |
|
507 |
RMobileCall::TMobileCallStatus& aStatusETel ); |
|
508 |
||
509 |
/** |
|
510 |
* Complete Mobile Call and Info Change |
|
511 |
* @param aMobileCallInfo Call info |
|
512 |
* @param aStatusETel ETel status |
|
513 |
* @param aResultEtel ETel result |
|
514 |
* @return void |
|
515 |
*/ |
|
516 |
void CompleteMobileCallInfoAndStatusChange( |
|
517 |
RMobileCall::TMobileCallInfoV1& aMobileCallInfo, |
|
518 |
RMobileCall::TMobileCallStatus& aStatusETel, |
|
519 |
TInt aResultETel ); |
|
520 |
||
521 |
/** |
|
522 |
* Maps ISI values to Symbian OS cause of no cli |
|
523 |
* @param aMobileCallInfo Call info |
|
524 |
* @param aCauseOfNoCli Cause of no cli |
|
525 |
* @return void |
|
526 |
*/ |
|
527 |
void FillCauseOfNoCli( |
|
528 |
RMobileCall::TMobileCallInfoV1& aMobileCallInfo, |
|
529 |
TUint8 aCauseOfNoCli ); |
|
530 |
||
531 |
/** |
|
532 |
* Activates user to user signaling service. |
|
533 |
* @param aDataPackage Packed UUS data |
|
534 |
* @return KErrNone or error value. |
|
535 |
*/ |
|
536 |
TInt ActivateUUS( |
|
537 |
const CMmDataPackage* aDataPackage ); |
|
538 |
||
539 |
/** |
|
540 |
* Creates product profile request, in order to read |
|
541 |
* if HSDPA is disabled in PP. |
|
542 |
* @return void |
|
543 |
*/ |
|
544 |
void InfoPpDataReadReq(); |
|
545 |
||
546 |
/** |
|
547 |
* Breaks received INFO_PP_DATA_READ_RESP ISI message. |
|
548 |
* @param aIsiMessage Reference to the received message. |
|
549 |
* @return void None |
|
550 |
*/ |
|
551 |
void InfoPpDataReadResp( const TIsiReceiveC &aIsiMessage ); |
|
552 |
||
553 |
/** |
|
554 |
* Creates GPDS_CONTEXTS_CLEAR request, in order to end |
|
555 |
* all data connections. |
|
556 |
* @return void |
|
557 |
*/ |
|
558 |
void GpdsContextsClearReq(); |
|
559 |
||
560 |
/** |
|
561 |
* Breaks received GPDS_CONTEXTS_CLEAR_RESP ISI message, |
|
562 |
* and proceeds with emergency call dialling. |
|
563 |
* @return void None |
|
564 |
*/ |
|
565 |
void GpdsContextsClearResp(); |
|
566 |
||
567 |
/** |
|
568 |
* Breaks received CSD_VIDEO_CALL_STATUS_IND ISI message. |
|
569 |
* @param aIsiMessage Reference to the received message. |
|
570 |
* @return void |
|
571 |
*/ |
|
572 |
void CsdVideoCallStatusInd( const TIsiReceiveC &aIsiMessage ); |
|
573 |
||
574 |
/** |
|
575 |
* Breaks received CSD_MULTIMEDIA_DATA_RATE_IND ISI message. |
|
576 |
* @param aIsiMessage Reference to the received message. |
|
577 |
* @return void |
|
578 |
*/ |
|
579 |
void CsdMultimediaDataRateInd( const TIsiReceiveC &aIsiMessage ); |
|
580 |
||
581 |
/** |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
582 |
* Creates subblocks for CSD_CALL_CONTROL_REQ |
0 | 583 |
* @param aTelNumber Phone number to be called |
584 |
* @param aIdRestrict Caller id restriction |
|
585 |
* @param aCsdIsiMsg CSD IsiMsg |
|
586 |
* @param numOfSbInMsg Number of subblocks |
|
587 |
* @param aCurrentMsgOffset Current msg offset |
|
588 |
* @return void |
|
589 |
*/ |
|
590 |
void GetCSDCallControlReqSubBlock( |
|
591 |
const TDesC16& aTelNumber, |
|
592 |
RMobileCall::TMobileCallIdRestriction aIdRestrict, |
|
593 |
TIsiSend& aCsdIsiMsg, |
|
594 |
TUint8& aNumOfSbInMsg, |
|
595 |
TInt& aCurrentMsgOffset ); |
|
596 |
||
597 |
/** |
|
598 |
* Creates CSD_CALL_CONTROL_REQ ISI message and sends it to PhonetSender. |
|
599 |
* @param aCallOperId Call Operation ID |
|
600 |
* @return TInt : KErrNone or error code |
|
601 |
*/ |
|
602 |
TInt CsdCallControlReq( TUint8 aCallOperId ); |
|
603 |
||
604 |
/** |
|
605 |
* Breaks received CSD_CALL_CONTROL_RESP ISI message. |
|
606 |
* @param aIsiMessage Reference to the received message. |
|
607 |
* @return void |
|
608 |
*/ |
|
609 |
void CsdCallControlResp( const TIsiReceiveC &aIsiMessage ); |
|
610 |
||
611 |
/** |
|
612 |
* Dial data call. |
|
613 |
* @param CDataDataPackage* aCallDataPackage: call data package |
|
614 |
* @param TInt aIPC: EEtelCallDial or EMobileCallDialNoFdnCheck |
|
615 |
* @return TInt : KErrNone or error code |
|
616 |
*/ |
|
617 |
TInt DialDataCall( const CCallDataPackage* aCallDataPackage ); |
|
618 |
||
619 |
/** |
|
620 |
* Answer incoming data call. |
|
621 |
* @param CDataDataPackage* aCallDataPackage: call data package |
|
622 |
* @return TInt KErrNone or error code |
|
623 |
*/ |
|
624 |
TInt AnswerIncomingDataCall( const CCallDataPackage* aCallDataPackage ); |
|
625 |
||
626 |
/** |
|
627 |
* Hangs up the call |
|
628 |
* @param TInt aCallId: call id |
|
629 |
* @return TInt KErrNone or error code |
|
630 |
*/ |
|
631 |
TInt HangUp( const TInt aCallId ); |
|
632 |
||
633 |
/** |
|
634 |
* Updates DialDataCall mobile call info. |
|
635 |
* @param TMobileCallInfoV1& aMobileCallInfo: Mobile call info |
|
636 |
* @param TBool aIsMultimedia: Is call mutimedia/video |
|
637 |
*/ |
|
638 |
||
639 |
void SetMobileCallInfo( |
|
640 |
const RMobileCall::TMobileCallInfoV1& aMobileCallInfo, |
|
641 |
const TBool aIsMultimedia = EFalse, |
|
642 |
const TBool aIsWaitingCall = EFalse ); |
|
643 |
||
644 |
/** |
|
645 |
* Creates PnsPipeCreateReq ISI message and sends it to Phonet. |
|
646 |
* @param aPipeStateAfter: pipe state |
|
647 |
* @return error value: Symbian error code |
|
648 |
*/ |
|
649 |
TInt PnsPipeCreateReq( const TUint8 aPipeStateAfter ) const; |
|
650 |
||
651 |
/** |
|
652 |
* Creates PnsPipeRemoveReq ISI message and sends it to Phonet. |
|
653 |
* @return error value: Symbian error code |
|
654 |
*/ |
|
655 |
TInt PnsPipeRemoveReq(); |
|
656 |
||
657 |
/** |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
658 |
* PnsPipeCreate response. |
0 | 659 |
* @param aIsiMessage, reference to the received message. |
660 |
* @return void |
|
661 |
*/ |
|
662 |
void PnsPipeCreateResp( const TIsiReceiveC &aIsiMessage ); |
|
663 |
||
664 |
public: // Data |
|
665 |
// None |
|
666 |
||
667 |
protected: // Data |
|
668 |
// None |
|
669 |
||
670 |
private: // Data |
|
671 |
||
672 |
// Pointer to the phonet sender |
|
673 |
CMmPhoNetSender* iPhoNetSender; |
|
674 |
||
675 |
// Pointer to the message router |
|
676 |
CMmMessageRouter* iMessageRouter; |
|
677 |
||
678 |
// Pointer to the DTMF message handler |
|
679 |
CMmDtmfMessHandler* iDtmfMessHandler; |
|
680 |
||
681 |
// Call releasing value, which is sent in call release request |
|
682 |
TUint8 iReleaseCauseValueSent; |
|
683 |
||
684 |
// Call mode of the latest requested call |
|
685 |
TUint8 iCallMode; |
|
686 |
||
687 |
// Call diagnostic resolution value between CALL_RELEASE_IND and |
|
688 |
// CALL_STATUS_IND handling |
|
689 |
TUint8 iDiagnosticOctet; |
|
690 |
||
691 |
// Call release cause value from CALL_TERMINATED_IND / KCallGsmMmCause |
|
692 |
TInt iGsmMmCauseError; |
|
693 |
||
694 |
// Flag for inband information |
|
695 |
TBool iDisconnectingWithInband; |
|
696 |
||
697 |
// Temporary call info required for incoming calls. The life cycle is |
|
698 |
// - In CALL_COMING_IND, call id and remote address are saved |
|
699 |
// - In CALL_GSM_NOTIFICATION_IND, iForwarded is saved (if applicable) |
|
700 |
// - In CALL_STATUS_IND, the saved information is read |
|
701 |
// - Reset in CALL_STATUS_IND (either if call is ringing, ISA status |
|
702 |
// MtAlerting, or released by remote party before answering, ISA |
|
703 |
// status MtRelease) or in CALL_RELEASE_REQ (MO release). |
|
704 |
RMobileCall::TMobileCallInfoV1 iIncomingCallInfo; |
|
705 |
||
706 |
// User to user data |
|
707 |
RMobileCall::TMobileCallUUSRequestV1 iUusData; |
|
708 |
||
709 |
// Buffer for received UUS data |
|
710 |
RMobileCall::TMobileCallUUI iReceivedUusData; |
|
711 |
||
712 |
// Variable to store call ID of waiting call for checking that |
|
713 |
// it is not notified again when it gets ringing. |
|
714 |
TInt iWaitingCall; |
|
715 |
||
716 |
// Subaddress required by dial phase 2 |
|
717 |
TBuf<KSubAddressSize> iSubAddress; |
|
718 |
||
719 |
// Bearer required by dial phase 2 |
|
720 |
TBuf8<KBearerCapabilitySize> iBearer; |
|
721 |
||
722 |
// Telephone number required by dial phase 2 |
|
723 |
TBuf<RMobilePhone::KMaxMobileTelNumberSize> iTelNumber; |
|
724 |
||
725 |
// Emergency number |
|
726 |
TBuf<RMobilePhone::KMaxMobileTelNumberSize> iTelEmergNumber; |
|
727 |
||
728 |
// Call restriction info required by dial phase 2 |
|
729 |
RMobileCall::TMobileCallIdRestriction iIdRestrict; |
|
730 |
||
731 |
// Flag for FDN error handling |
|
732 |
TBool iFDNErrorAlredyNotified; |
|
733 |
||
734 |
// Pointer to the dataport handler |
|
735 |
CMmDataPortHandler* iDataPortHandler; |
|
736 |
||
737 |
// Flag which notifies if it is a 3rd party client |
|
738 |
// (ETrue) or not (EFalse) |
|
739 |
TBool iIs3rdPartyDial; |
|
740 |
||
741 |
// Flag which notifies if it is a 3rd party client |
|
742 |
// (ETrue) or not (EFalse) |
|
743 |
TBool iIs3rdPartyAnswerIncomingCall; |
|
744 |
||
745 |
// Destination post address, max lenght is 123 |
|
746 |
TBuf16<123> iDestPostAddress; |
|
747 |
||
748 |
// Variable to store and identify call ID for DTMF post address sending |
|
749 |
TUint8 iDtmfPostAddressCallId; |
|
750 |
||
751 |
// True if CALL_CREATE_REQ includes CALL_DESTINATION_POST_ADDRESS |
|
752 |
// subblock |
|
753 |
TBool iDestPostAddressIncluded; |
|
754 |
||
755 |
// ETrue when NoFdnCall request is active |
|
756 |
TBool iNoFdnDial; |
|
757 |
||
758 |
// To block FDN check in SIM originated calls. Doesn't block call |
|
759 |
// control procedure |
|
760 |
TBool iNoFdnCheck; |
|
761 |
||
762 |
// ETrue if HSPDA is forced off in product profile. |
|
763 |
// Modified in startup only. |
|
764 |
TBool iHSDPADisabledInPp; |
|
765 |
||
766 |
// ETrue while an emergency call setup is delayed, |
|
767 |
// i.e. while GPDS contexts are being closed. |
|
768 |
TBool iEmergCallDelayed; |
|
769 |
||
770 |
// Video call connected or disconnected |
|
771 |
TUint8 iVideoCallStatus; |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
772 |
|
0 | 773 |
// bearer rate for multimedia call |
774 |
TUint8 iDataRateCode; |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
775 |
|
0 | 776 |
// Call direction |
777 |
RMobileCall:: TMobileCallDirection iCallDirection; |
|
778 |
||
779 |
// Mobile call info |
|
780 |
RMobileCall::TMobileCallInfoV1 iMobileCallInfo; |
|
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
781 |
|
0 | 782 |
// Is call multimedia/video call |
783 |
TBool iIsMultimedia; |
|
784 |
||
785 |
// Is current call a waiting call |
|
786 |
TBool iIsWaitingCall; |
|
787 |
||
788 |
// Pipe handle for video/multimediacall |
|
789 |
TUint8 iPipeHandle; |
|
790 |
||
5
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
791 |
// CALL_ID of the call controlled request |
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
792 |
TUint8 iCallControlCallId; |
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
793 |
|
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
794 |
// call control result |
8ccc39f9d787
New release based on our 2010wk02 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
795 |
TUint8 iCcResult; |
0 | 796 |
|
7
fa67e03b87df
New release based on our 2010wk08 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
5
diff
changeset
|
797 |
// flag telling whether resource control needs to be disabled |
fa67e03b87df
New release based on our 2010wk08 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
5
diff
changeset
|
798 |
TUint8 iResourceControlSuppress; |
fa67e03b87df
New release based on our 2010wk08 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
5
diff
changeset
|
799 |
|
0 | 800 |
public: // Friend classes |
801 |
// None |
|
802 |
protected: // Friend classes |
|
803 |
// Nnone |
|
804 |
private: // Friend classes |
|
805 |
||
806 |
// Emergency call delay timer |
|
807 |
friend class CEmergencyTimer; |
|
808 |
CEmergencyTimer iEmergencyTimer; |
|
809 |
||
810 |
}; |
|
811 |
||
812 |
#endif // CMMCALLMESSHANDLER_H |
|
813 |
||
814 |
// End of file |