equal
deleted
inserted
replaced
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
14 // |
14 // |
15 |
15 |
16 |
16 |
17 |
17 |
18 //INCLUDES |
18 //INCLUDES |
|
19 |
|
20 #include "OstTraceDefinitions.h" |
|
21 #ifdef OST_TRACE_COMPILER_IN_USE |
|
22 #include "cmmfaxlinetsyTraces.h" |
|
23 #endif |
|
24 |
19 #include "cmmfaxlinetsy.h" |
25 #include "cmmfaxlinetsy.h" |
20 #include "cmmphonetsy.h" |
26 #include "cmmphonetsy.h" |
21 #include "cmmfaxcalltsy.h" |
27 #include "cmmfaxcalltsy.h" |
22 #include "cmmcallextinterface.h" |
28 #include "cmmcallextinterface.h" |
23 #include "cmmlinelist.h" |
29 #include "cmmlinelist.h" |
24 #include "cmmcalllist.h" |
30 #include "cmmcalllist.h" |
25 #include "cmmtsyreqhandlestore.h" |
31 #include "cmmtsyreqhandlestore.h" |
26 #include "cmmmessagemanagerbase.h" |
32 #include "cmmmessagemanagerbase.h" |
27 #include <ctsy/tflogger.h> |
|
28 #include <ctsy/pluginapi/cmmdatapackage.h> |
33 #include <ctsy/pluginapi/cmmdatapackage.h> |
29 |
34 |
30 // ======== MEMBER FUNCTIONS ======== |
35 // ======== MEMBER FUNCTIONS ======== |
31 |
36 |
32 CMmFaxLineTsy::CMmFaxLineTsy() |
37 CMmFaxLineTsy::CMmFaxLineTsy() |
58 return mmLineTsy; |
63 return mmLineTsy; |
59 } |
64 } |
60 |
65 |
61 CMmFaxLineTsy::~CMmFaxLineTsy() |
66 CMmFaxLineTsy::~CMmFaxLineTsy() |
62 { |
67 { |
63 TFLOGSTRING2("TSY: CMmFaxLineTsy::~CMmFaxLineTsy. Line name: %S", |
68 OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMFAXLINETSY_DTOR_1, "TSY: CMmFaxLineTsy::~CMmFaxLineTsy. Line name: %S",iLineName); |
64 &iLineName); |
|
65 |
69 |
66 iLastIncomingFaxCall = NULL; |
70 iLastIncomingFaxCall = NULL; |
67 } |
71 } |
68 |
72 |
69 |
73 |
256 CCallDataPackage* callDataPackage = |
260 CCallDataPackage* callDataPackage = |
257 reinterpret_cast<CCallDataPackage*>(aDataPackage); |
261 reinterpret_cast<CCallDataPackage*>(aDataPackage); |
258 |
262 |
259 callDataPackage->GetCallIdAndMode( callId, callMode ); |
263 callDataPackage->GetCallIdAndMode( callId, callMode ); |
260 |
264 |
261 TFLOGSTRING3("TSY: CMmFaxLineTsy::CompleteNotifyIncomingCall - \ |
265 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMFAXLINETSY_COMPLETENOTIFYINCOMINGCALL_1, "TSY: CMmFaxLineTsy::CompleteNotifyIncomingCall - \Line name: %S, Call id: %d", iLineName, callId ); |
262 Line name: %S, Call id: %d", &iLineName, callId ); |
|
263 |
266 |
264 //reset req handle. Returns the deleted req handle |
267 //reset req handle. Returns the deleted req handle |
265 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
268 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
266 EMultimodeLineNotifyIncomingCall ); |
269 EMultimodeLineNotifyIncomingCall ); |
267 |
270 |
346 // --------------------------------------------------------------------------- |
349 // --------------------------------------------------------------------------- |
347 // |
350 // |
348 void CMmFaxLineTsy::CompleteNotifyDiallingStatus( |
351 void CMmFaxLineTsy::CompleteNotifyDiallingStatus( |
349 CMmDataPackage* aDataPackage ) |
352 CMmDataPackage* aDataPackage ) |
350 { |
353 { |
351 TFLOGSTRING("TSY: CMmFaxLineTsy::CompleteNotifyDiallingStatus"); |
354 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMFAXLINETSY_COMPLETENOTIFYDIALLINGSTATUS_1, "TSY: CMmFaxLineTsy::CompleteNotifyDiallingStatus"); |
352 TInt callId( -1 ); |
355 TInt callId( -1 ); |
353 TBool ghostCall( EFalse ); |
356 TBool ghostCall( EFalse ); |
354 RMobilePhone::TMobileService callMode( RMobilePhone::EFaxService ); |
357 RMobilePhone::TMobileService callMode( RMobilePhone::EFaxService ); |
355 |
358 |
356 CCallDataPackage* callData |
359 CCallDataPackage* callData |
361 CMmFaxCallTsy* mmCall = reinterpret_cast<CMmFaxCallTsy*>( |
364 CMmFaxCallTsy* mmCall = reinterpret_cast<CMmFaxCallTsy*>( |
362 iMmPhone->CallList()->GetMmCallByMode( callMode ) ); |
365 iMmPhone->CallList()->GetMmCallByMode( callMode ) ); |
363 |
366 |
364 if ( NULL == mmCall ) |
367 if ( NULL == mmCall ) |
365 { |
368 { |
366 TFLOGSTRING("TSY: CMmFaxLineTsy::CompleteNotifyDiallingStatus - \ |
369 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMFAXLINETSY_COMPLETENOTIFYDIALLINGSTATUS_2, "TSY: CMmFaxLineTsy::CompleteNotifyDiallingStatus - \GhostCall"); |
367 GhostCall"); |
|
368 ghostCall = ETrue; |
370 ghostCall = ETrue; |
369 } |
371 } |
370 else |
372 else |
371 { |
373 { |
372 TBool result( EFalse ); |
374 TBool result( EFalse ); |
392 } |
394 } |
393 } |
395 } |
394 } |
396 } |
395 else |
397 else |
396 { |
398 { |
397 TFLOGSTRING("TSY: CMmFaxLineTsy::CompleteNotifyDiallingStatus - \ |
399 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMFAXLINETSY_COMPLETENOTIFYDIALLINGSTATUS_3, "TSY: CMmFaxLineTsy::CompleteNotifyDiallingStatus - \Dial not found"); |
398 Dial not found"); |
|
399 ghostCall = ETrue; |
400 ghostCall = ETrue; |
400 } |
401 } |
401 } |
402 } |
402 //Ghost call handling starts here |
403 //Ghost call handling starts here |
403 if ( ghostCall ) |
404 if ( ghostCall ) |
412 // This method sets iLastIncomingFaxCall to NULL |
413 // This method sets iLastIncomingFaxCall to NULL |
413 // --------------------------------------------------------------------------- |
414 // --------------------------------------------------------------------------- |
414 // |
415 // |
415 void CMmFaxLineTsy::ResetLastIncomingCall() |
416 void CMmFaxLineTsy::ResetLastIncomingCall() |
416 { |
417 { |
417 TFLOGSTRING("TSY: CMmFaxLineTsy::ResetLastIncomingCall"); |
418 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMFAXLINETSY_RESETLASTINCOMINGCALL_1, "TSY: CMmFaxLineTsy::ResetLastIncomingCall"); |
418 iLastIncomingFaxCall = NULL; |
419 iLastIncomingFaxCall = NULL; |
419 } |
420 } |
420 |
421 |
421 // End of File |
422 // End of File |