diff -r 17af172ffa5f -r 630d2f34d719 telephonyprotocols/pdplayer/umts/spudfsm/src/PDPSCPRFSM.cpp --- a/telephonyprotocols/pdplayer/umts/spudfsm/src/PDPSCPRFSM.cpp Thu Aug 19 11:03:36 2010 +0300 +++ b/telephonyprotocols/pdplayer/umts/spudfsm/src/PDPSCPRFSM.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,9 +20,13 @@ */ +#include "OstTraceDefinitions.h" +#ifdef OST_TRACE_COMPILER_IN_USE +#include "PDPSCPRFSMTraces.h" +#endif + #include "PDPFSM.h" #include "cpdpfsmfactory.h" -#include "spudfsmdebuglogger.h" #include "PDPDeftSCPR.h" @@ -36,13 +40,15 @@ iRefCount(1), iUmtsRelease(TPacketDataConfigBase::KConfigGPRS) { - SPUDFSMVERBOSE_FNLOG("CPdpFsmInterface::()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_CTOR_1, ">>CPdpFsmInterface::()"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_CTOR_2, "<>CPdpFsmInterface::()"); delete iPdpFsmFactory; + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_DTOR_2, "<>CPdpFsmInterface::NewL()"); iUmtsRelease = aUmtsRelease; iPdpFsmFactory = CPdpFsmFactory::NewL(); iPdpFsmFactory->InitL(aTsyName, this); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_NEWL_2, "<>CPdpFsmInterface::Open()"); iRefCount++; + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_OPEN_2, "<>CPdpFsmInterface::Close()"); ASSERT( iRefCount > 0 ); if (--iRefCount == 0 ) { @@ -99,7 +107,9 @@ } delete this; } + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_CLOSE_2, "<>CPdpFsmInterface::Input(aParam)"); ASSERT(iPdpFsmFactory); @@ -171,7 +181,7 @@ { ret = KErrBadHandle; } - + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_INPUT_2, "<>CPdpFsmInterface::Set(RPacketQoS::TQoSR5Requested)"); ASSERT(iPdpFsmFactory); ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); ASSERT(iPdpFsmFactory->HaveFsmContext(aPdpId)); iPdpFsmFactory->GetFsmContext(aPdpId)->Set(aParam); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_SET_2, "<>CPdpFsmInterface::Set(RPacketQoS::TQoSR5Negotiated)"); ASSERT(iPdpFsmFactory); ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); ASSERT(iPdpFsmFactory->HaveFsmContext(aPdpId)); iPdpFsmFactory->GetFsmContext(aPdpId)->Set(aParam); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_SET1_2, "<>CPdpFsmInterface::Set(RPacketQoS::TQoSR99_R4Requested)"); ASSERT(iPdpFsmFactory); ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); ASSERT(iPdpFsmFactory->HaveFsmContext(aPdpId)); iPdpFsmFactory->GetFsmContext(aPdpId,aContextType)->Set(aParam); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_SET2_2, "<>CPdpFsmInterface::Set(RPacketQoS::TQoSR99_R4Negotiated)"); ASSERT(iPdpFsmFactory); ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); ASSERT(iPdpFsmFactory->HaveFsmContext(aPdpId)); iPdpFsmFactory->GetFsmContext(aPdpId,aContextType)->Set(aParam); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_SET3_2, "<>CPdpFsmInterface::Set(RPacketQoS::TQoSR99_R4Negotiated)"); ASSERT(iPdpFsmFactory); ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); ASSERT(iPdpFsmFactory->HaveFsmContext(aPdpId)); iPdpFsmFactory->GetFsmContext(aPdpId)->Set(aPdpFsmEventHandler); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_SET4_2, "<>CPdpFsmInterface::Set(TFTInfo)"); ASSERT(iPdpFsmFactory); ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); ASSERT(iPdpFsmFactory->HaveFsmContext(aPdpId)); iPdpFsmFactory->GetFsmContext(aPdpId)->Set(aParam); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_SET5_2, "<>CPdpFsmInterface::Set(TTFTOperationCode)"); ASSERT(iPdpFsmFactory); ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); ASSERT(iPdpFsmFactory->HaveFsmContext(aPdpId)); iPdpFsmFactory->GetFsmContext(aPdpId)->Set(aParam); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_SET6_2, "<>CPdpFsmInterface::Set(RPacketContext::TDataChannelV2)"); ASSERT(iPdpFsmFactory); ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); ASSERT(iPdpFsmFactory->HaveFsmContext(aPdpId)); iPdpFsmFactory->GetFsmContext(aPdpId)->Set(aParam); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_SET7_2, "<>CPdpFsmInterface::Set(RPacketContext::TContextStatus)"); ASSERT(iPdpFsmFactory); ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); ASSERT(iPdpFsmFactory->HaveFsmContext(aPdpId)); iPdpFsmFactory->GetFsmContext(aPdpId)->Set(aParam); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_SET8_2, "<>CPdpFsmInterface::Set(TPacketDataConfigBase)"); ASSERT(iPdpFsmFactory); ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); ASSERT(iPdpFsmFactory->HaveFsmContext(aPdpId)); iPdpFsmFactory->GetFsmContext(aPdpId)->Set(aParam); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_SET9_2, "<>CPdpFsmInterface::Set(RPacketService::TStatus)"); ASSERT(iPdpFsmFactory); iNetworkStatus = aParam; + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_SET10_2, "<>CPdpFsmInterface::Get(RPacketQos::TQoSR5Requested)"); ASSERT(iPdpFsmFactory); ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); ASSERT(iPdpFsmFactory->HaveFsmContext(aPdpId)); iPdpFsmFactory->GetFsmContext(aPdpId)->Get(aParam); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_GET_2, "<>CPdpFsmInterface::Get(RPacketQoS::TQoSR5Negotiated)"); ASSERT(iPdpFsmFactory); ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); ASSERT(iPdpFsmFactory->HaveFsmContext(aPdpId)); iPdpFsmFactory->GetFsmContext(aPdpId)->Get(aParam); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_GET1_2, "<>CPdpFsmInterface::Get(RPacketQos::TQoSRequestedR99_R4)"); ASSERT(iPdpFsmFactory); ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); ASSERT(iPdpFsmFactory->HaveFsmContext(aPdpId)); iPdpFsmFactory->GetFsmContext(aPdpId)->Get(aParam); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_GET2_2, "<>CPdpFsmInterface::Get(RPacketQoS::TQoSR99_R4Negotiated)"); ASSERT(iPdpFsmFactory); ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); ASSERT(iPdpFsmFactory->HaveFsmContext(aPdpId)); iPdpFsmFactory->GetFsmContext(aPdpId)->Get(aParam); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_GET3_2, "<>CPdpFsmInterface::Get(TFTInfo)"); ASSERT(iPdpFsmFactory); ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); ASSERT(iPdpFsmFactory->HaveFsmContext(aPdpId)); iPdpFsmFactory->GetFsmContext(aPdpId)->Get(aParam); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_GET4_2, "<>CPdpFsmInterface::Get(TFTInfo)"); ASSERT(iPdpFsmFactory); ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); ASSERT(iPdpFsmFactory->HaveFsmContext(aPdpId)); iPdpFsmFactory->GetFsmContext(aPdpId)->Get(aParam); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_GET5_2, "<>CPdpFsmInterface::Get(RPacketContext::TDataChannelV2)"); ASSERT(iPdpFsmFactory); ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); ASSERT(iPdpFsmFactory->HaveFsmContext(aPdpId)); iPdpFsmFactory->GetFsmContext(aPdpId)->Get(aParam); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_GET6_2, "<>CPdpFsmInterface::Get(TPacketDataConfigBase)"); ASSERT(iPdpFsmFactory); ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); ASSERT(iPdpFsmFactory->HaveFsmContext(aPdpId)); iPdpFsmFactory->GetFsmContext(aPdpId)->Get(aParam); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_GET7_2, "<>CPdpFsmInterface::Get(RPacketContext::TContextStatus)"); ASSERT(iPdpFsmFactory); ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); ASSERT(iPdpFsmFactory->HaveFsmContext(aPdpId)); iPdpFsmFactory->GetFsmContext(aPdpId)->Get(aParam); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_GET8_2, "<>CPdpFsmInterface::Get(RPacketService::TStatus)"); ASSERT(iPdpFsmFactory); aParam = iNetworkStatus; + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_GET9_2, "<>CPdpFsmInterface::TsyName"); ASSERT(iPdpFsmFactory); - + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_TSYNAME_2, "<TsyName(); } @@ -577,10 +608,11 @@ */ TInt CPdpFsmInterface::Set(TContextId aPdpId,const RPacketMbmsContext::TContextConfigMbmsV1& aParam) { - SPUDFSMVERBOSE_FNLOG("CPdpFsmInterface::Set(RPacketMbmsContext::TContextConfigMbmsV1)"); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_SET11_1, ">>CPdpFsmInterface::Set(RPacketMbmsContext::TContextConfigMbmsV1)"); ASSERT(iPdpFsmFactory); iPdpFsmFactory->GetFsmContext(aPdpId)->Set(aParam); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_SET11_2, "<>CPdpFsmInterface::Set(RPacketMbmsContext::TContextConfigMbmsV1)"); ASSERT(iPdpFsmFactory); iPdpFsmFactory->GetFsmContext(aPdpId)->Get(aParam); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_GET10_2, "<>CPdpFsmInterface::Set(RPacketMbmsContext::TContextConfigMbmsV1)"); ASSERT(iPdpFsmFactory); iPdpFsmFactory->GetFsmContext(aPdpId)->Set(aParam); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_SET12_2, "<>CPdpFsmInterface::Set(RPacketMbmsContext::TContextConfigMbmsV1)"); ASSERT(iPdpFsmFactory); iPdpFsmFactory->GetFsmContext(aPdpId)->Get(aParam); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_GET11_2, "<