diff -r 17af172ffa5f -r 630d2f34d719 telephonyprotocols/pdplayer/src/pdptiermanagerselector.cpp --- a/telephonyprotocols/pdplayer/src/pdptiermanagerselector.cpp Thu Aug 19 11:03:36 2010 +0300 +++ b/telephonyprotocols/pdplayer/src/pdptiermanagerselector.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" @@ -18,6 +18,12 @@ @internalComponent */ + +#include "OstTraceDefinitions.h" +#ifdef OST_TRACE_COMPILER_IN_USE +#include "pdptiermanagerselectorTraces.h" +#endif + #include "pdptiermanagerselector.h" #include "pdptiermanagerfactory.h" @@ -26,12 +32,7 @@ #include #include #include //TConnIdList -#include - -#ifdef __CFLOG_ACTIVE -#define KPdpTierMgrTag KESockTierTag -_LIT8(KPdpTierMgrSubTag, "pdptiermgr"); -#endif // __CFLOG_ACTIVE +#include using namespace ESock; using namespace CommsDat; @@ -77,7 +78,7 @@ if (iSelectionPrefs.IsEmpty()) { //Implicit case on the new setup - __CFLOG_VAR((KPdpTierMgrTag, KPdpTierMgrSubTag, _L8("CPdpProviderSelector %08x::\tSelectL() Using Default AP:%d"),this,defaultAccessPoint)); + OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPPROVIDERSELECTOR_SELECTL_1, "CPdpProviderSelector %08x::\tSelectL() Using Default AP:%d",(TUint)this,defaultAccessPoint); aSelectionNotify.SelectComplete(this,FindOrCreateProviderL(defaultAccessPoint)); aSelectionNotify.SelectComplete(this,NULL); return; @@ -88,7 +89,7 @@ { ASSERT(iSelectionPrefs.Scope() & TSelectionPrefs::ESelectFromExisting); //This is always attach const TConnProviderInfo& connProvInfo = static_cast(prefs).Info(); - __CFLOG_VAR((KPdpTierMgrTag, KPdpTierMgrSubTag, _L8("CPdpProviderSelector %08x::\tSelectL() Using TConnProviderInfoPref, AP:%d"),this,connProvInfo.iInfo[1])); + OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPPROVIDERSELECTOR_SELECTL_2, "CPdpProviderSelector %08x::\tSelectL() Using TConnProviderInfoPref, AP:%d",(TUint)this,connProvInfo.iInfo[1]); aSelectionNotify.SelectComplete(this,FindProviderL(connProvInfo.iInfo[1],(TAny*)connProvInfo.iInfo[2])); aSelectionNotify.SelectComplete(this,NULL); return; @@ -97,7 +98,7 @@ if (prefs.ExtensionId() == TConnPref::EConnPrefSnap) { TUint accessPoint = static_cast(prefs).Snap(); - __CFLOG_VAR((KPdpTierMgrTag, KPdpTierMgrSubTag, _L8("CPdpProviderSelector %08x::\tSelectL() Using TConnPrefSnap, AP:%d"),this,accessPoint)); + OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPPROVIDERSELECTOR_SELECTL_3, "CPdpProviderSelector %08x::\tSelectL() Using TConnPrefSnap, AP:%d",(TUint)this,accessPoint); aSelectionNotify.SelectComplete(this,FindOrCreateProviderL(accessPoint)); aSelectionNotify.SelectComplete(this,NULL); return; @@ -105,7 +106,7 @@ if (prefs.ExtensionId() == TConnPref::EConnPrefIdList) { - __CFLOG_VAR((KPdpTierMgrTag, KPdpTierMgrSubTag, _L8("CPdpProviderSelector %08x::\tSelectL() Using TConnIdList"),this)); + OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPPROVIDERSELECTOR_SELECTL_4, "CPdpProviderSelector %08x::\tSelectL() Using TConnIdList",(TUint)this); const TConnIdList& list = static_cast(prefs); TInt count = list.Count(); for (TInt i = 0; i < count; i++) @@ -118,7 +119,7 @@ //In this selector we _must_ have the new preferences, otherwise it means that //a critical, non-recoverable mitsake has occured before when this selector has been picked. - __CFLOG_VAR((KPdpTierMgrTag, KPdpTierMgrSubTag, _L8("ERROR: CPdpProviderSelector %08x::\tSelectL() Unexpected selection preferences"),this)); + OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPPROVIDERSELECTOR_SELECTL_5, "ERROR: CPdpProviderSelector %08x::\tSelectL() Unexpected selection preferences",(TUint)this); User::Panic(KPdpSelectorPanic,EUnExpectedSelectionPreferences); } @@ -126,7 +127,7 @@ // TPdpSelectorFactory::NewSelectorL - This fn matches a selector MProviderSelector* TPdpSelectorFactory::NewSelectorL(const Meta::SMetaData& aSelectionPreferences) { - __CFLOG_VAR((KPdpTierMgrTag, KPdpTierMgrSubTag, _L8("CPdpMetaCprSelectorBase::\tNewL()"))); + OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSELECTORFACTORY_NEWSELECTORL_1, "CPdpMetaCprSelectorBase::\tNewL()"); ASSERT(aSelectionPreferences.IsTypeOf(TSelectionPrefs::TypeId())); CMDBSession* dbs = CMDBSession::NewLC(KCDVersion1_2); CPdpProviderSelector* self = new (ELeave) CPdpProviderSelector(aSelectionPreferences);