diff -r 630d2f34d719 -r 07a122eea281 telephonyserverplugins/simatktsy/src/CSatNotifySendDtmf.cpp --- a/telephonyserverplugins/simatktsy/src/CSatNotifySendDtmf.cpp Tue Aug 31 16:23:08 2010 +0300 +++ b/telephonyserverplugins/simatktsy/src/CSatNotifySendDtmf.cpp Wed Sep 01 12:40:21 2010 +0100 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). // All rights reserved. // This component and the accompanying materials are made available // under the terms of "Eclipse Public License v1.0" @@ -20,12 +20,6 @@ //INCLUDES - -#include "OstTraceDefinitions.h" -#ifdef OST_TRACE_COMPILER_IN_USE -#include "CSatNotifySendDtmfTraces.h" -#endif - #include // Etel SAT IPC definitions #include "CSatTsy.h" // Tsy class header #include "CSatNotifySendDtmf.h" // Tsy class header @@ -33,6 +27,7 @@ #include "CBerTlv.h" // Ber Tlv data handling #include "TTlv.h" // TTlv class #include "CSatDataPackage.h" // Parameter packing +#include "TfLogger.h" // For TFLOGSTRING #include "TSatUtility.h" // Utilities #include "CSatTsyReqHandleStore.h" // Request handle class #include "cmmmessagemanagerbase.h" // Message manager class for forwarding req. @@ -47,13 +42,13 @@ CSatNotificationsTsy* aNotificationsTsy ) { - OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYSENDDTMF_NEWL_1, "CSAT: CSatNotifySendDtmf::NewL"); + TFLOGSTRING("CSAT: CSatNotifySendDtmf::NewL"); CSatNotifySendDtmf* const satNotifySendDtmf = new ( ELeave ) CSatNotifySendDtmf( aNotificationsTsy ); CleanupStack::PushL( satNotifySendDtmf ); satNotifySendDtmf->ConstructL(); CleanupStack::Pop( satNotifySendDtmf ); - OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYSENDDTMF_NEWL_2, "CSAT: CSatNotifySendDtmf::NewL, end of method"); + TFLOGSTRING("CSAT: CSatNotifySendDtmf::NewL, end of method"); return satNotifySendDtmf; } @@ -67,7 +62,7 @@ // None ) { - OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYSENDDTMF_DTOR_1, "CSAT: CSatNotifySendDtmf::~CSatNotifySendDtmf"); + TFLOGSTRING("CSAT: CSatNotifySendDtmf::~CSatNotifySendDtmf"); } // ----------------------------------------------------------------------------- @@ -93,7 +88,7 @@ // None ) { - OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYSENDDTMF_CONSTRUCTL_1, "CSAT: CSatNotifySendDtmf::ConstructL, does nothing"); + TFLOGSTRING("CSAT: CSatNotifySendDtmf::ConstructL, does nothing"); } // ----------------------------------------------------------------------------- @@ -107,7 +102,7 @@ const TDataPackage& aPackage ) { - OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYSENDDTMF_NOTIFY_1, "CSAT: CSatNotifySendDtmf::Notify"); + TFLOGSTRING("CSAT: CSatNotifySendDtmf::Notify"); // Save data pointer to client side for completion iSendDtmfV1Pckg = reinterpret_cast( aPackage.Des1n() ); @@ -133,7 +128,7 @@ const TTsyReqHandle aTsyReqHandle ) { - OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYSENDDTMF_CANCELNOTIFICATION_1, "CSAT: CSatNotifySendDtmf::CancelNotification"); + TFLOGSTRING("CSAT: CSatNotifySendDtmf::CancelNotification"); // Reset the request handle iNotificationsTsy->iSatReqHandleStore->ResetTsyReqHandle( CSatTsy::ESatNotifySendDtmfPCmdReqType ); @@ -157,7 +152,7 @@ TInt aErrorCode ) { - OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYSENDDTMF_COMPLETENOTIFYL_1, "CSAT: CSatNotifySendDtmf::CompleteNotifyL"); + TFLOGSTRING("CSAT: CSatNotifySendDtmf::CompleteNotifyL"); TInt returnValue( KErrNone ); TInt ret( KErrNone ); // Unpack parameters @@ -203,7 +198,8 @@ if ( RSat::KAlphaIdMaxSize < alphaIdLength ) { - OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYSENDDTMF_COMPLETENOTIFYL_2, "CSAT: CSatNotifySendDtmf::CompleteNotifyL, Alpha ID length exceeded"); + TFLOGSTRING("CSAT: CSatNotifySendDtmf::CompleteNotifyL,\ + Alpha ID length exceeded"); // String too long additionalInfo.Zero(); additionalInfo.Append( KNoCause ); @@ -224,14 +220,16 @@ } else { - OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYSENDDTMF_COMPLETENOTIFYL_3, "CSAT: CSatNotifySendDtmf::CompleteNotifyL, Alpha ID is NULL"); + TFLOGSTRING("CSAT: CSatNotifySendDtmf::CompleteNotifyL,\ + Alpha ID is NULL"); sendDtmfV1.iAlphaId.iStatus = RSat::EAlphaIdNull; } } // Alpha id not present else { - OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYSENDDTMF_COMPLETENOTIFYL_4, "CSAT: CSatNotifySendDtmf::CompleteNotifyL, Alpha ID not present"); + TFLOGSTRING("CSAT: CSatNotifySendDtmf::CompleteNotifyL,\ + Alpha ID not present"); sendDtmfV1.iAlphaId.iStatus = RSat::EAlphaIdNotPresent; } @@ -252,13 +250,15 @@ if ( ( dtmfStringLength && ( sendDtmf.Data()[2] == 0xFF ) ) || !dtmfStringLength ) { - OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYSENDDTMF_COMPLETENOTIFYL_5, "CSAT: CSatNotifySendDtmf::CompleteNotifyL, Data not understood"); + TFLOGSTRING("CSAT: CSatNotifySendDtmf::CompleteNotifyL,\ + Data not understood"); generalResult = RSat::KCmdDataNotUnderstood; ret = KErrCorrupt; } else if( RSat::KDtmfStringMaxSize < dtmfStringLength ) { - OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYSENDDTMF_COMPLETENOTIFYL_6, "CSAT: CSatNotifySendDtmf::CompleteNotifyL, Cmd beyond ME capabilities"); + TFLOGSTRING("CSAT: CSatNotifySendDtmf::CompleteNotifyL,\ + Cmd beyond ME capabilities"); generalResult = RSat::KCmdBeyondMeCapabilities; ret = KErrCorrupt; } @@ -269,7 +269,8 @@ if( KErrCorrupt == ret ) { - OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYSENDDTMF_COMPLETENOTIFYL_7, "CSAT: CSatNotifySendDtmf::CompleteNotifyL, DTMF length exceeded"); + TFLOGSTRING("CSAT: CSatNotifySendDtmf::CompleteNotifyL,\ + DTMF length exceeded"); // String too long additionalInfo.Zero(); additionalInfo.Append( KNoCause ); @@ -318,7 +319,7 @@ TDes8* aRsp ) { - OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYSENDDTMF_TERMINALRESPONSEL_1, "CSAT:CSatNotifySendDtmf::TerminalResponseL"); + TFLOGSTRING("CSAT:CSatNotifySendDtmf::TerminalResponseL"); TInt ret( KErrNone ); TBuf<1> additionalInfo; @@ -342,7 +343,8 @@ ( RSat::KPSessionTerminatedByUser != rspV1.iGeneralResult ) && ( RSat::KErrorRequiredValuesMissing != rspV1.iGeneralResult ) ) { - OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYSENDDTMF_TERMINALRESPONSEL_2, "CSAT:CSatNotifySendDtmf::TerminalResponseL, Invalid General result"); + TFLOGSTRING("CSAT:CSatNotifySendDtmf::TerminalResponseL,\ + Invalid General result"); ret = KErrCorrupt; } @@ -355,7 +357,8 @@ } else { - OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYSENDDTMF_TERMINALRESPONSEL_3, "CSAT:CSatNotifySendDtmf::TerminalResponseL, Invalid Info Type"); + TFLOGSTRING("CSAT:CSatNotifySendDtmf::TerminalResponseL,\ + Invalid Info Type"); ret = KErrCorrupt; } } @@ -385,7 +388,7 @@ TDesC16& aAdditionalInfo ) { - OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYSENDDTMF_CREATETERMINALRESPL_1, "CSAT: CSatNotifySendDtmf::CreateTerminalRespL"); + TFLOGSTRING("CSAT: CSatNotifySendDtmf::CreateTerminalRespL"); TTlv tlvSpecificData; // Append general result tag