diff -r 8ab6687fb94c -r 3adadc800673 telephonyserverplugins/simatktsy/src/CSatNotifyPollingOff.cpp --- a/telephonyserverplugins/simatktsy/src/CSatNotifyPollingOff.cpp Thu May 27 14:05:07 2010 +0300 +++ b/telephonyserverplugins/simatktsy/src/CSatNotifyPollingOff.cpp Fri Jun 11 14:49:29 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 "CSatNotifyPollingOffTraces.h" +#endif + #include // Etel SAT IPC definitions #include "CSatTsy.h" // Tsy class header #include "CSatNotifyPollingOff.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. @@ -43,13 +48,13 @@ CSatNotificationsTsy* aNotificationsTsy ) { - TFLOGSTRING("CSAT: CSatNotifyPollingOff::NewL"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYPOLLINGOFF_NEWL_1, "CSAT: CSatNotifyPollingOff::NewL"); CSatNotifyPollingOff* const satNotifyPollingOff = new ( ELeave ) CSatNotifyPollingOff( aNotificationsTsy ); CleanupStack::PushL( satNotifyPollingOff ); satNotifyPollingOff->ConstructL(); CleanupStack::Pop( satNotifyPollingOff ); - TFLOGSTRING("CSAT: CSatNotifyPollingOff::NewL, end of method"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYPOLLINGOFF_NEWL_2, "CSAT: CSatNotifyPollingOff::NewL, end of method"); return satNotifyPollingOff; } @@ -63,7 +68,7 @@ // None ) { - TFLOGSTRING("CSAT: CSatNotifyPollingOff::~CSatNotifyPollingOff"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYPOLLINGOFF_DTOR_1, "CSAT: CSatNotifyPollingOff::~CSatNotifyPollingOff"); } // ----------------------------------------------------------------------------- @@ -89,7 +94,7 @@ // None ) { - TFLOGSTRING("CSAT: CSatNotifyPollingOff::ConstructL"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYPOLLINGOFF_CONSTRUCTL_1, "CSAT: CSatNotifyPollingOff::ConstructL"); } // ----------------------------------------------------------------------------- @@ -104,7 +109,7 @@ TInt /*aErrorCode*/ ) { - TFLOGSTRING("CSAT: CSatNotifyPollingOff::CompleteNotifyL"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYPOLLINGOFF_COMPLETENOTIFYL_1, "CSAT: CSatNotifyPollingOff::CompleteNotifyL"); TPtrC8* data; TBuf<1> additionalInfo; aDataPackage->UnPackData( &data ); @@ -151,7 +156,7 @@ TDesC16& aAdditionalInfo ) { - TFLOGSTRING("CSAT: CSatNotifyPollingOff::CreateTerminalRespL"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYPOLLINGOFF_CREATETERMINALRESPL_1, "CSAT: CSatNotifyPollingOff::CreateTerminalRespL"); TTlv tlvSpecificData; tlvSpecificData.AddTag( KTlvResultTag ); @@ -173,9 +178,7 @@ } default: { - TFLOGSTRING2("CSAT: CSatNotifyPollingOff::\ - CreateTerminalRespL, Additional Info: %d", - aAdditionalInfo[0]); + OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYPOLLINGOFF_CREATETERMINALRESPL_2, "CSAT: CSatNotifyPollingOff::CreateTerminalRespL, Additional Info: %d", aAdditionalInfo[0]); tlvSpecificData.AddByte( static_cast( aAdditionalInfo[0] ) ); break;