telephonyserverplugins/common_tsy/commontsy/src/mmtsy/cmmfaxlinetsy.cpp
branchRCL_3
changeset 20 07a122eea281
parent 19 630d2f34d719
equal deleted inserted replaced
19:630d2f34d719 20:07a122eea281
     1 // Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2006-2009 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 
       
    25 #include "cmmfaxlinetsy.h"
    19 #include "cmmfaxlinetsy.h"
    26 #include "cmmphonetsy.h"
    20 #include "cmmphonetsy.h"
    27 #include "cmmfaxcalltsy.h"
    21 #include "cmmfaxcalltsy.h"
    28 #include "cmmcallextinterface.h"
    22 #include "cmmcallextinterface.h"
    29 #include "cmmlinelist.h"
    23 #include "cmmlinelist.h"
    30 #include "cmmcalllist.h"
    24 #include "cmmcalllist.h"
    31 #include "cmmtsyreqhandlestore.h"
    25 #include "cmmtsyreqhandlestore.h"
    32 #include "cmmmessagemanagerbase.h"
    26 #include "cmmmessagemanagerbase.h"
       
    27 #include <ctsy/tflogger.h>
    33 #include <ctsy/pluginapi/cmmdatapackage.h>
    28 #include <ctsy/pluginapi/cmmdatapackage.h>
    34 
    29 
    35 // ======== MEMBER FUNCTIONS ========
    30 // ======== MEMBER FUNCTIONS ========
    36 
    31 
    37 CMmFaxLineTsy::CMmFaxLineTsy()
    32 CMmFaxLineTsy::CMmFaxLineTsy()
    63     return mmLineTsy;
    58     return mmLineTsy;
    64     }
    59     }
    65 
    60 
    66 CMmFaxLineTsy::~CMmFaxLineTsy()
    61 CMmFaxLineTsy::~CMmFaxLineTsy()
    67     {
    62     {
    68     OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMFAXLINETSY_DTOR_1, "TSY: CMmFaxLineTsy::~CMmFaxLineTsy. Line name: %S",iLineName);
    63     TFLOGSTRING2("TSY: CMmFaxLineTsy::~CMmFaxLineTsy. Line name: %S",
       
    64         &iLineName);
    69 
    65 
    70     iLastIncomingFaxCall = NULL;
    66     iLastIncomingFaxCall = NULL;
    71     }
    67     }
    72     
    68     
    73 
    69 
   260     CCallDataPackage* callDataPackage =
   256     CCallDataPackage* callDataPackage =
   261         reinterpret_cast<CCallDataPackage*>(aDataPackage);
   257         reinterpret_cast<CCallDataPackage*>(aDataPackage);
   262 
   258 
   263     callDataPackage->GetCallIdAndMode( callId, callMode ); 
   259     callDataPackage->GetCallIdAndMode( callId, callMode ); 
   264 
   260 
   265     OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMFAXLINETSY_COMPLETENOTIFYINCOMINGCALL_1, "TSY: CMmFaxLineTsy::CompleteNotifyIncomingCall - \Line name: %S, Call id: %d", iLineName, callId );
   261     TFLOGSTRING3("TSY: CMmFaxLineTsy::CompleteNotifyIncomingCall - \
       
   262         Line name: %S, Call id: %d", &iLineName, callId );
   266 
   263 
   267     //reset req handle. Returns the deleted req handle
   264     //reset req handle. Returns the deleted req handle
   268     TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle(
   265     TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle(
   269         EMultimodeLineNotifyIncomingCall );
   266         EMultimodeLineNotifyIncomingCall );
   270 
   267 
   349 // ---------------------------------------------------------------------------
   346 // ---------------------------------------------------------------------------
   350 //
   347 //
   351 void CMmFaxLineTsy::CompleteNotifyDiallingStatus(
   348 void CMmFaxLineTsy::CompleteNotifyDiallingStatus(
   352     CMmDataPackage* aDataPackage )
   349     CMmDataPackage* aDataPackage )
   353     {
   350     {
   354     OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMFAXLINETSY_COMPLETENOTIFYDIALLINGSTATUS_1, "TSY: CMmFaxLineTsy::CompleteNotifyDiallingStatus");
   351     TFLOGSTRING("TSY: CMmFaxLineTsy::CompleteNotifyDiallingStatus");
   355     TInt callId( -1 );
   352     TInt callId( -1 );
   356     TBool ghostCall( EFalse );
   353     TBool ghostCall( EFalse );
   357     RMobilePhone::TMobileService callMode( RMobilePhone::EFaxService );
   354     RMobilePhone::TMobileService callMode( RMobilePhone::EFaxService );
   358     
   355     
   359     CCallDataPackage* callData 
   356     CCallDataPackage* callData 
   364     CMmFaxCallTsy* mmCall = reinterpret_cast<CMmFaxCallTsy*>(
   361     CMmFaxCallTsy* mmCall = reinterpret_cast<CMmFaxCallTsy*>(
   365         iMmPhone->CallList()->GetMmCallByMode( callMode ) );
   362         iMmPhone->CallList()->GetMmCallByMode( callMode ) );
   366 
   363 
   367     if ( NULL == mmCall )
   364     if ( NULL == mmCall )
   368         {
   365         {
   369         OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMFAXLINETSY_COMPLETENOTIFYDIALLINGSTATUS_2, "TSY: CMmFaxLineTsy::CompleteNotifyDiallingStatus - \GhostCall");
   366         TFLOGSTRING("TSY: CMmFaxLineTsy::CompleteNotifyDiallingStatus - \
       
   367             GhostCall");
   370         ghostCall = ETrue;
   368         ghostCall = ETrue;
   371         }
   369         }
   372     else
   370     else
   373         {
   371         {
   374         TBool result( EFalse );
   372         TBool result( EFalse );
   394                     }
   392                     }
   395                 }
   393                 }
   396             }
   394             }
   397         else
   395         else
   398             {
   396             {
   399             OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMFAXLINETSY_COMPLETENOTIFYDIALLINGSTATUS_3, "TSY: CMmFaxLineTsy::CompleteNotifyDiallingStatus - \Dial not found");
   397             TFLOGSTRING("TSY: CMmFaxLineTsy::CompleteNotifyDiallingStatus - \
       
   398                 Dial not found");
   400             ghostCall = ETrue;
   399             ghostCall = ETrue;
   401             }
   400             }
   402         }
   401         }
   403     //Ghost call handling starts here
   402     //Ghost call handling starts here
   404     if ( ghostCall )
   403     if ( ghostCall )
   413 // This method sets iLastIncomingFaxCall to NULL
   412 // This method sets iLastIncomingFaxCall to NULL
   414 // ---------------------------------------------------------------------------
   413 // ---------------------------------------------------------------------------
   415 //
   414 //
   416 void CMmFaxLineTsy::ResetLastIncomingCall()
   415 void CMmFaxLineTsy::ResetLastIncomingCall()
   417     {
   416     {
   418     OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMFAXLINETSY_RESETLASTINCOMINGCALL_1, "TSY: CMmFaxLineTsy::ResetLastIncomingCall");
   417     TFLOGSTRING("TSY: CMmFaxLineTsy::ResetLastIncomingCall");
   419     iLastIncomingFaxCall = NULL;
   418     iLastIncomingFaxCall = NULL;
   420     }
   419     }
   421     
   420     
   422 //  End of File 
   421 //  End of File