diff -r 17af172ffa5f -r 630d2f34d719 telephonyserverplugins/simatktsy/src/CSatNotifyCallControlRequest.cpp --- a/telephonyserverplugins/simatktsy/src/CSatNotifyCallControlRequest.cpp Thu Aug 19 11:03:36 2010 +0300 +++ b/telephonyserverplugins/simatktsy/src/CSatNotifyCallControlRequest.cpp Tue Aug 31 16:23:08 2010 +0300 @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). +// Copyright (c) 2006-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,13 +20,18 @@ //INCLUDES + +#include "OstTraceDefinitions.h" +#ifdef OST_TRACE_COMPILER_IN_USE +#include "CSatNotifyCallControlRequestTraces.h" +#endif + #include // Etel SAT IPC definitions #include "CSatTsy.h" // Tsy class header #include "CSatNotifyCallControlRequest.h" // Tsy class header #include "CSatNotificationsTsy.h" // Class header #include "CBerTlv.h" // Ber Tlv data handling #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. @@ -41,13 +46,13 @@ CSatNotificationsTsy* aNotificationsTsy ) { - TFLOGSTRING("CSAT: CSatNotifyCallControlRequest::NewL"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYCALLCONTROLREQUEST_NEWL_1, "CSAT: CSatNotifyCallControlRequest::NewL"); CSatNotifyCallControlRequest* const satNotifyCallControlRequest = new ( ELeave ) CSatNotifyCallControlRequest( aNotificationsTsy ); CleanupStack::PushL( satNotifyCallControlRequest ); satNotifyCallControlRequest->ConstructL(); CleanupStack::Pop( satNotifyCallControlRequest ); - TFLOGSTRING("CSAT: CSatNotifyCallControlRequest::NewL, end of method"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYCALLCONTROLREQUEST_NEWL_2, "CSAT: CSatNotifyCallControlRequest::NewL, end of method"); return satNotifyCallControlRequest; } @@ -61,8 +66,7 @@ // None ) { - TFLOGSTRING("CSAT: CSatNotifyCallControlRequest::\ - ~CSatNotifyCallControlRequest"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYCALLCONTROLREQUEST_DTOR_1, "CSAT: CSatNotifyCallControlRequest::~CSatNotifyCallControlRequest"); } // ----------------------------------------------------------------------------- @@ -88,7 +92,7 @@ // None ) { - TFLOGSTRING("CSAT: CSatNotifyCallControlRequest::ConstructL"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYCALLCONTROLREQUEST_CONSTRUCTL_1, "CSAT: CSatNotifyCallControlRequest::ConstructL"); } // ----------------------------------------------------------------------------- @@ -103,7 +107,7 @@ const TDataPackage& aPackage ) { - TFLOGSTRING("CSAT: CSatNotifyCallControlRequest::Notify"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYCALLCONTROLREQUEST_NOTIFY_1, "CSAT: CSatNotifyCallControlRequest::Notify"); // Save data pointer to client side for completion iCallControlV2Pckg = reinterpret_cast( @@ -126,7 +130,7 @@ const TTsyReqHandle aTsyReqHandle // Tsy request handle ) { - TFLOGSTRING("CSAT: CSatNotifyCallControlRequest::CancelNotification"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYCALLCONTROLREQUEST_CANCELNOTIFICATION_1, "CSAT: CSatNotifyCallControlRequest::CancelNotification"); // Reset the request handle iNotificationsTsy->iSatReqHandleStore-> ResetTsyReqHandle( CSatTsy::ESatNotifyCallControlRequestPCmdReqType ); @@ -147,7 +151,7 @@ TInt aErrorCode ) { - TFLOGSTRING("CSAT: CSatNotifyCallControlRequest::CompleteNotifyL"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYCALLCONTROLREQUEST_COMPLETENOTIFYL_1, "CSAT: CSatNotifyCallControlRequest::CompleteNotifyL"); RSat::TAlphaIdBuf alphaId; RSat::TControlResult result; // Unpack data @@ -169,7 +173,7 @@ TInt aErrorCode ) { - TFLOGSTRING("CSAT: CSatNotifyCallControlRequest::CompleteAlphaId"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYCALLCONTROLREQUEST_COMPLETEALPHAID_1, "CSAT: CSatNotifyCallControlRequest::CompleteAlphaId"); // Reset req handle. Returns the deleted req handle TTsyReqHandle reqHandle = iNotificationsTsy->iSatReqHandleStore-> @@ -192,15 +196,13 @@ callControlV2.SetCcGeneralResult( aResult ); callControlV2.SetAlphaId( validity, alphaIdTemp ); } - TFLOGSTRING( "CSAT: CSatNotifyCallControlRequest::CompleteAlphaId\ - completing" ); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYCALLCONTROLREQUEST_COMPLETEALPHAID_2, "CSAT: CSatNotifyCallControlRequest::CompleteAlphaId completing" ); // Complete notification iNotificationsTsy->iSatTsy->ReqCompleted( reqHandle, aErrorCode ); } else { - TFLOGSTRING( "CSAT: CSatNotifyCallControlRequest::CompleteAlphaId\ - Request not ongoing" ); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYCALLCONTROLREQUEST_COMPLETEALPHAID_3, "CSAT: CSatNotifyCallControlRequest::CompleteAlphaId Request not ongoing" ); } }