diff -r 2c19c7cf5550 -r c20dd21d1eb4 mtpdataproviders/mtpplaybackcontroldp/mtpplaybackinterface/src/cmtpplaybackevent.cpp --- a/mtpdataproviders/mtpplaybackcontroldp/mtpplaybackinterface/src/cmtpplaybackevent.cpp Fri Aug 20 17:43:33 2010 +0800 +++ b/mtpdataproviders/mtpplaybackcontroldp/mtpplaybackinterface/src/cmtpplaybackevent.cpp Fri Sep 03 18:38:04 2010 +0800 @@ -20,58 +20,70 @@ #include "cmtpplaybackevent.h" #include "mtpplaybackcontrolpanic.h" +#include "OstTraceDefinitions.h" +#ifdef OST_TRACE_COMPILER_IN_USE +#include "cmtpplaybackeventTraces.h" +#endif -// Class constants. -__FLOG_STMT(_LIT8(KComponent,"CMtpPbEvent");) CMTPPbEventParam* CMTPPbEventParam::NewL(TMTPPbCategory aCategory, const TDesC& aSuid) { + OstTraceFunctionEntry0( CMTPPBEVENTPARAM_NEWL_ENTRY ); CMTPPbEventParam* self = new (ELeave) CMTPPbEventParam(aCategory, aSuid); CleanupStack::PushL(self); self->ConstructL(aCategory, aSuid); CleanupStack::Pop(self); + OstTraceFunctionExit0( CMTPPBEVENTPARAM_NEWL_EXIT ); return self; } CMTPPbEventParam* CMTPPbEventParam::NewL(TInt32 aValue) { + OstTraceFunctionEntry0( DUP1_CMTPPBEVENTPARAM_NEWL_ENTRY ); CMTPPbEventParam* self = new (ELeave) CMTPPbEventParam(aValue); CleanupStack::PushL(self); self->ConstructL(aValue); CleanupStack::Pop(self); + OstTraceFunctionExit0( DUP1_CMTPPBEVENTPARAM_NEWL_EXIT ); return self; } CMTPPbEventParam* CMTPPbEventParam::NewL(TUint32 aValue) { + OstTraceFunctionEntry0( DUP2_CMTPPBEVENTPARAM_NEWL_ENTRY ); CMTPPbEventParam* self = new (ELeave) CMTPPbEventParam(aValue); CleanupStack::PushL(self); self->ConstructL(aValue); CleanupStack::Pop(self); + OstTraceFunctionExit0( DUP2_CMTPPBEVENTPARAM_NEWL_EXIT ); return self; } CMTPPbEventParam::~CMTPPbEventParam() { - + OstTraceFunctionEntry0( CMTPPBEVENTPARAM_CMTPPBEVENTPARAM_ENTRY ); + OstTraceFunctionExit0( CMTPPBEVENTPARAM_CMTPPBEVENTPARAM_EXIT ); } CMTPPbEventParam::CMTPPbEventParam(TMTPPbCategory aCategory, const TDesC& aSuid): CMTPPbParamBase(aCategory, aSuid) { - + OstTraceFunctionEntry0( DUP1_CMTPPBEVENTPARAM_CMTPPBEVENTPARAM_ENTRY ); + OstTraceFunctionExit0( DUP1_CMTPPBEVENTPARAM_CMTPPBEVENTPARAM_EXIT ); } CMTPPbEventParam::CMTPPbEventParam(TInt32 aValue): CMTPPbParamBase(aValue) { - + OstTraceFunctionEntry0( DUP2_CMTPPBEVENTPARAM_CMTPPBEVENTPARAM_ENTRY ); + OstTraceFunctionExit0( DUP2_CMTPPBEVENTPARAM_CMTPPBEVENTPARAM_EXIT ); } CMTPPbEventParam::CMTPPbEventParam(TUint32 aValue): CMTPPbParamBase(aValue) { - + OstTraceFunctionEntry0( DUP3_CMTPPBEVENTPARAM_CMTPPBEVENTPARAM_ENTRY ); + OstTraceFunctionExit0( DUP3_CMTPPBEVENTPARAM_CMTPPBEVENTPARAM_EXIT ); } /** @@ -79,13 +91,15 @@ */ CMTPPlaybackEvent* CMTPPlaybackEvent::NewL(TMTPPlaybackEvent aEvent, CMTPPbEventParam* aParam) { + OstTraceFunctionEntry0( CMTPPLAYBACKEVENT_NEWL_ENTRY ); __ASSERT_DEBUG((aEvent > EPlaybackEventNone && aEvent < EPlaybackEventEnd), Panic(EMTPPBArgumentErr)); - __ASSERT_ALWAYS((aEvent > EPlaybackEventNone && aEvent < EPlaybackEventEnd), User::Leave(KErrArgument)); + __ASSERT_ALWAYS_OST((aEvent > EPlaybackEventNone && aEvent < EPlaybackEventEnd), OstTrace0( TRACE_ERROR, CMTPPLAYBACKEVENT_NEWL, "Error argument" ), User::Leave(KErrArgument)); CMTPPlaybackEvent* self = new (ELeave) CMTPPlaybackEvent(aEvent, aParam); CleanupStack::PushL(self); self->ConstructL(); CleanupStack::Pop(self); + OstTraceFunctionExit0( CMTPPLAYBACKEVENT_NEWL_EXIT ); return self; } @@ -94,10 +108,9 @@ */ CMTPPlaybackEvent::~CMTPPlaybackEvent() { - __FLOG(_L8("~CMTPPlaybackEvent - Entry")); + OstTraceFunctionEntry0( CMTPPLAYBACKEVENT_CMTPPLAYBACKEVENT_ENTRY ); delete iParam; - __FLOG(_L8("~CMTPPlaybackEvent - Exit")); - __FLOG_CLOSE; + OstTraceFunctionExit0( CMTPPLAYBACKEVENT_CMTPPLAYBACKEVENT_EXIT ); } /** @@ -107,6 +120,8 @@ CMTPPbEventParam* aParam): iPbEvent(aEvent),iParam(aParam) { + OstTraceFunctionEntry0( DUP1_CMTPPLAYBACKEVENT_CMTPPLAYBACKEVENT_ENTRY ); + OstTraceFunctionExit0( DUP1_CMTPPLAYBACKEVENT_CMTPPLAYBACKEVENT_EXIT ); } /** @@ -114,27 +129,33 @@ */ void CMTPPlaybackEvent::ConstructL() { - __FLOG_OPEN(KMTPSubsystem, KComponent); - __FLOG(_L8("CMTPPlaybackEvent: ConstructL - Entry")); - __FLOG(_L8("CMTPPlaybackEvent: ConstructL - Exit")); + OstTraceFunctionEntry0( CMTPPLAYBACKEVENT_CONSTRUCTL_ENTRY ); + OstTraceFunctionExit0( CMTPPLAYBACKEVENT_CONSTRUCTL_EXIT ); } void CMTPPlaybackEvent::SetParam(CMTPPbEventParam* aParam) { + OstTraceFunctionEntry0( CMTPPLAYBACKEVENT_SETPARAM_ENTRY ); delete iParam; iParam = aParam; + OstTraceFunctionExit0( CMTPPLAYBACKEVENT_SETPARAM_EXIT ); } TMTPPlaybackEvent CMTPPlaybackEvent::PlaybackEvent() { + OstTraceFunctionEntry0( CMTPPLAYBACKEVENT_PLAYBACKEVENT_ENTRY ); __ASSERT_DEBUG((iPbEvent > EPlaybackEventNone && iPbEvent < EPlaybackEventEnd), Panic(EMTPPBArgumentErr)); + OstTraceFunctionExit0( CMTPPLAYBACKEVENT_PLAYBACKEVENT_EXIT ); return iPbEvent; } const CMTPPbEventParam& CMTPPlaybackEvent::ParamL() { + OstTraceFunctionEntry0( CMTPPLAYBACKEVENT_PARAML_ENTRY ); __ASSERT_DEBUG((iParam != NULL), Panic(EMTPPBDataNullErr)); - __ASSERT_ALWAYS((iParam != NULL), User::Leave(KErrArgument)); + __ASSERT_ALWAYS_OST((iParam != NULL), OstTrace0( TRACE_ERROR, CINTERNETCONNECTIONHANDLER_CONSTRUCTL, "Error argument" ), User::Leave(KErrArgument)); + + OstTraceFunctionExit0( CMTPPLAYBACKEVENT_PARAML_EXIT ); return *iParam; }