diff -r 17af172ffa5f -r 630d2f34d719 telephonyserverplugins/simatktsy/src/CSatNotifyGetInkey.cpp --- a/telephonyserverplugins/simatktsy/src/CSatNotifyGetInkey.cpp Thu Aug 19 11:03:36 2010 +0300 +++ b/telephonyserverplugins/simatktsy/src/CSatNotifyGetInkey.cpp Tue Aug 31 16:23:08 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2005-2010 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,6 +20,12 @@ //INCLUDES + +#include "OstTraceDefinitions.h" +#ifdef OST_TRACE_COMPILER_IN_USE +#include "CSatNotifyGetInkeyTraces.h" +#endif + #include // Etel SAT IPC definitions #include "CSatTsy.h" // Tsy class header #include "CSatNotifyGetInkey.h" // Tsy class header @@ -27,7 +33,6 @@ #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. @@ -42,13 +47,13 @@ CSatNotificationsTsy* aNotificationsTsy ) { - TFLOGSTRING("CSAT: CSatNotifyGetInkey::NewL"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYGETINKEY_NEWL_1, "CSAT: CSatNotifyGetInkey::NewL"); CSatNotifyGetInkey* const satNotifyGetInkey = new ( ELeave ) CSatNotifyGetInkey( aNotificationsTsy ); CleanupStack::PushL( satNotifyGetInkey ); satNotifyGetInkey->ConstructL(); CleanupStack::Pop( satNotifyGetInkey ); - TFLOGSTRING("CSAT: CSatNotifyGetInkey::NewL, end of method"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYGETINKEY_NEWL_2, "CSAT: CSatNotifyGetInkey::NewL, end of method"); return satNotifyGetInkey; } @@ -62,7 +67,7 @@ // None ) { - TFLOGSTRING("CSAT: CSatNotifyGetInkey::~CSatNotifyGetInkey"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYGETINKEY_DTOR_1, "CSAT: CSatNotifyGetInkey::~CSatNotifyGetInkey"); } // ----------------------------------------------------------------------------- @@ -88,7 +93,7 @@ // None ) { - TFLOGSTRING("CSAT: CSatNotifyGetInkey::ConstructL"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYGETINKEY_CONSTRUCTL_1, "CSAT: CSatNotifyGetInkey::ConstructL"); } // ----------------------------------------------------------------------------- @@ -102,7 +107,7 @@ const TDataPackage& aPackage ) { - TFLOGSTRING("CSAT: CSatNotifyGetInkey::Notify"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYGETINKEY_NOTIFY_1, "CSAT: CSatNotifyGetInkey::Notify"); // Save data pointer to client side for completion iGetInkeyV2Pckg = reinterpret_cast( aPackage.Des1n() ); @@ -127,7 +132,7 @@ const TTsyReqHandle aTsyReqHandle ) { - TFLOGSTRING("CSAT: CSatNotifyGetInkey::CancelNotification"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYGETINKEY_CANCELNOTIFICATION_1, "CSAT: CSatNotifyGetInkey::CancelNotification"); // Reset the request handle TTsyReqHandle reqHandle = iNotificationsTsy->iSatReqHandleStore-> ResetTsyReqHandle( CSatTsy::ESatNotifyGetInkeyPCmdReqType ); @@ -149,7 +154,7 @@ TInt aErrorCode ) { - TFLOGSTRING("CSAT: CSatNotifyGetInkey::CompleteNotifyL"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYGETINKEY_COMPLETENOTIFYL_1, "CSAT: CSatNotifyGetInkey::CompleteNotifyL"); TInt ret( KErrNone ); TInt returnValue( KErrNone ); @@ -230,8 +235,7 @@ } else { - TFLOGSTRING("CSAT: CSatNotifyGetInkey::CompleteNotifyL,\ - No Help available"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYGETINKEY_COMPLETENOTIFYL_2, "CSAT: CSatNotifyGetInkey::CompleteNotifyL, No Help available"); // No help getInkeyV2.iHelp = RSat::ENoHelpAvailable; } @@ -259,8 +263,7 @@ } else { - TFLOGSTRING("CSAT: CSatNotifyGetInkey::CompleteNotifyL,\ - Required values missing"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYGETINKEY_COMPLETENOTIFYL_3, "CSAT: CSatNotifyGetInkey::CompleteNotifyL, Required values missing"); additionalInfo.Zero(); additionalInfo.Append( KNoCause ); CreateTerminalRespL( pCmdNumber, @@ -283,8 +286,7 @@ } else { - TFLOGSTRING("CSAT: CSatNotifyGetInkey::CompleteNotifyL,\ - Request not ongoing"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYGETINKEY_COMPLETENOTIFYL_4, "CSAT: CSatNotifyGetInkey::CompleteNotifyL, Request not ongoing"); additionalInfo.Zero(); additionalInfo.Append( KNoCause ); CreateTerminalRespL( pCmdNumber, RSat::KMeUnableToProcessCmd, @@ -304,7 +306,7 @@ TDes8* aRsp ) { - TFLOGSTRING("CSAT: CSatNotifyGetInkey::TerminalResponseL"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYGETINKEY_TERMINALRESPONSEL_1, "CSAT: CSatNotifyGetInkey::TerminalResponseL"); TInt ret( KErrNone ); @@ -319,8 +321,7 @@ ( RSat::KTextString != rspV2.iInfoType ) && ( RSat::KNoAdditionalInfo != rspV2.iInfoType ) ) { - TFLOGSTRING("CSAT: CSatNotifyGetInkey::TerminalResponseL,\ - Invalid Infotype"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYGETINKEY_TERMINALRESPONSEL_2, "CSAT: CSatNotifyGetInkey::TerminalResponseL, Invalid Infotype"); ret = KErrCorrupt; } @@ -330,8 +331,7 @@ ( RSat::ECharUcs2Alphabet != rspV2.iRspFormat ) && ( RSat::EYesNo != rspV2.iRspFormat ) ) { - TFLOGSTRING("CSAT: CSatNotifyGetInkey::TerminalResponseL,\ - Invalid Response Format"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYGETINKEY_TERMINALRESPONSEL_3, "CSAT: CSatNotifyGetInkey::TerminalResponseL, Invalid Response Format"); ret = KErrCorrupt; } @@ -346,8 +346,7 @@ ( RSat::KErrorRequiredValuesMissing != rspV2.iGeneralResult ) && ( RSat::KSuccessRequestedIconNotDisplayed != rspV2.iGeneralResult )) { - TFLOGSTRING("CSAT: CSatNotifyGetInkey::TerminalResponseL,\ - Invalid General Result"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYGETINKEY_TERMINALRESPONSEL_4, "CSAT: CSatNotifyGetInkey::TerminalResponseL, Invalid General Result"); // Invalid general result ret = KErrCorrupt; } @@ -356,8 +355,7 @@ if ( ( RSat::KMeProblem == rspV2.iInfoType ) && ( NULL == rspV2.iAdditionalInfo.Length() ) ) { - TFLOGSTRING("CSAT: CSatNotifyGetInkey::TerminalResponseL,\ - Invalid Additional Info, ME Problem"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYGETINKEY_TERMINALRESPONSEL_5, "CSAT: CSatNotifyGetInkey::TerminalResponseL, Invalid Additional Info, ME Problem"); // Invalid additional info field ret = KErrCorrupt; } @@ -365,8 +363,7 @@ if ( ( RSat::KTextString == rspV2.iInfoType ) && ( NULL == rspV2.iAdditionalInfo.Length() ) ) { - TFLOGSTRING("CSAT: CSatNotifyGetInkey::TerminalResponseL,\ - Invalid Additional Info"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYGETINKEY_TERMINALRESPONSEL_6, "CSAT: CSatNotifyGetInkey::TerminalResponseL, Invalid Additional Info"); ret = KErrCorrupt; } @@ -395,7 +392,7 @@ TUint8 aDcs ) { - TFLOGSTRING("CSAT: CSatNotifyGetInkey::CreateTerminalRespL"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYGETINKEY_CREATETERMINALRESPL_1, "CSAT: CSatNotifyGetInkey::CreateTerminalRespL"); TTlv tlvSpecificData; tlvSpecificData.AddTag( KTlvResultTag ); @@ -436,8 +433,7 @@ { TSatUtility::Copy16to8LE( aAdditionalInfo, character); tlvSpecificData.AddData( character ); - TFLOGSTRING2("CSAT:CSatNotifyGetInkey::CreateTerminalRespL, %s \ - character", &character ); + OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYGETINKEY_CREATETERMINALRESPL_2, "CSAT:CSatNotifyGetInkey::CreateTerminalRespL, %s character", character ); } else {