telephonyprotocols/pdplayer/umts/spudtel/src/reteldriverinput.cpp
branchRCL_3
changeset 65 630d2f34d719
parent 0 3553901f7fa8
child 66 07a122eea281
--- a/telephonyprotocols/pdplayer/umts/spudtel/src/reteldriverinput.cpp	Thu Aug 19 11:03:36 2010 +0300
+++ b/telephonyprotocols/pdplayer/umts/spudtel/src/reteldriverinput.cpp	Tue Aug 31 16:23:08 2010 +0300
@@ -1,4 +1,4 @@
-// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 2004-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,19 @@
  @internalComponent
 */
 
+
+
+#include "OstTraceDefinitions.h"
+#ifdef OST_TRACE_COMPILER_IN_USE
+#include "reteldriverinputTraces.h"
+#endif
+
 #include <e32def.h>
 #include <e32std.h>
 
 #include "ceteldriverfactory.h"
 #include "ceteldrivercontext.h"
 #include "reteldriverinput.h"
-#include "spudteldebuglogger.h"
 
 using namespace EtelDriver;
 
@@ -38,7 +44,7 @@
 
 REtelDriverInput::~REtelDriverInput()
 	{
-	SPUDTEL_FNLOG("REtelDriverInput::~REtelDriverInput()");
+	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, RETELDRIVERINPUT_DTOR_1, "REtelDriverInput::~REtelDriverInput()");
 	
 	if (iDriverFactory)
 	   {
@@ -53,7 +59,7 @@
 */
 void REtelDriverInput::OpenL (CPdpFsmInterface& aPdpFsmInterface)
 	{
-	SPUDTEL_FNLOG("REtelDriverInput::OpenL()");
+	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, RETELDRIVERINPUT_OPENL_1, "REtelDriverInput::OpenL()");
 
 	// internal check
 	iDriverFactory = CEtelDriverFactory::NewL(aPdpFsmInterface);
@@ -68,7 +74,7 @@
 */
 void REtelDriverInput::Close()
 	{
-	SPUDTEL_FNLOG("REtelDriverInput::Close()");
+	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, RETELDRIVERINPUT_CLOSE_1, "REtelDriverInput::Close()");
 	
 	// cancel all outstanding requests
 	if (iDriverFactory)
@@ -89,8 +95,8 @@
 */
 void REtelDriverInput::CreatePdpL (TContextId aPdpId,SpudMan::TPdpContextType aContextType)
 	{
-	SPUDTEL_FNLOG("REtelDriverInput::CreatePdpL()");
-	SPUDTELVERBOSE_INFO_LOG1(_L("pdp id : %d"), aPdpId);
+	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, RETELDRIVERINPUT_CREATEPDPL_1, "REtelDriverInput::CreatePdpL()");
+	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, RETELDRIVERINPUT_CREATEPDPL_2, "pdp id : %d", aPdpId);
 	
 	ASSERT(iDriverFactory);
 	iDriverFactory->CreatePdpL (aPdpId,aContextType );
@@ -102,8 +108,8 @@
 */
 void REtelDriverInput::DeletePdp (TContextId aPdpId)
 	{
-	SPUDTEL_FNLOG("REtelDriverInput::DeletePdp()");
-	SPUDTELVERBOSE_INFO_LOG1(_L("pdp id : %d"), aPdpId);
+	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, RETELDRIVERINPUT_DELETEPDP_1, "REtelDriverInput::DeletePdp()");
+	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, RETELDRIVERINPUT_DELETEPDP_2, "pdp id : %d", aPdpId);
 	
 	if(iDriverFactory)
     	{
@@ -118,8 +124,8 @@
 */
 void REtelDriverInput::Input(TContextId aPdpId, TEtelInput aOperation)
 	{
-	SPUDTEL_FNLOG("REtelDriverInput::Input()");
-	SPUDTEL_INFO_LOG2(_L("REtelDriverInput::Input: pdp id : %d, operation %d"), aPdpId, aOperation);
+	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, RETELDRIVERINPUT_INPUT_1, "REtelDriverInput::Input()");
+	OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, RETELDRIVERINPUT_INPUT_2, "REtelDriverInput::Input: pdp id : %d, operation %d", aPdpId, aOperation);
 	ASSERT(iDriverFactory);
 	
 	iDriverFactory->Context(aPdpId).Input(aOperation);
@@ -131,8 +137,8 @@
 */
 void REtelDriverInput::CancelPdp (TContextId aPdpId)
 	{
-	SPUDTEL_FNLOG("REtelDriverInput::CancelPdp()");
-	SPUDTEL_INFO_LOG1(_L("REtelDriverInput::CancelPdp: pdp id : %d"), aPdpId);
+	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, RETELDRIVERINPUT_CANCELPDP_1, "REtelDriverInput::CancelPdp()");
+	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, RETELDRIVERINPUT_CANCELPDP_2, "REtelDriverInput::CancelPdp: pdp id : %d", aPdpId);
 	ASSERT(iDriverFactory);
 	
 	iDriverFactory->Context(aPdpId).Cancel();
@@ -144,7 +150,7 @@
 */
 void REtelDriverInput::StartPdpNotifications(TContextId aPdpId)
 	{
-	SPUDTEL_FNLOG("REtelDriverInput::StartPdpNotifications()");
+	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, RETELDRIVERINPUT_STARTPDPNOTIFICATIONS_1, "REtelDriverInput::StartPdpNotifications()");
 	ASSERT(iDriverFactory);
 
 	iDriverFactory->StartPdpNotifications(aPdpId);
@@ -156,8 +162,8 @@
 */
 void REtelDriverInput::CancelPdpNotifications (TContextId aPdpId)
 	{
-	SPUDTEL_FNLOG("REtelDriverInput::CancelPdpNotifications()");
-	SPUDTEL_INFO_LOG1(_L("REtelDriverInput::CancelPdpNotifications: pdp id : %d"), aPdpId);
+	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, RETELDRIVERINPUT_CANCELPDPNOTIFICATIONS_1, "REtelDriverInput::CancelPdpNotifications()");
+	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, RETELDRIVERINPUT_CANCELPDPNOTIFICATIONS_2, "REtelDriverInput::CancelPdpNotifications: pdp id : %d", aPdpId);
 	ASSERT(iDriverFactory);
 
 	iDriverFactory->CancelPdpNotifications (aPdpId);
@@ -166,7 +172,7 @@
 /** cancels last operations for all created pdp contexts */
 void REtelDriverInput::CancelAllPdps ()
 	{
-	SPUDTEL_FNLOG("REtelDriverInput::CancelAllPdps()");
+	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, RETELDRIVERINPUT_CANCELALLPDPS_1, "REtelDriverInput::CancelAllPdps()");
 	ASSERT(iDriverFactory);
 	
 	for(TContextId i = 0; i < static_cast<TContextId>(iDriverFactory->ContextCount()); i++)
@@ -181,7 +187,7 @@
 /** cancels all notifications for all pdp contexts */
 void REtelDriverInput::CancelAllPdpNotifications ()
 	{
-	SPUDTEL_FNLOG("REtelDriverInput::CancelAllPdpNotifications()");
+	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, RETELDRIVERINPUT_CANCELALLPDPNOTIFICATIONS_1, "REtelDriverInput::CancelAllPdpNotifications()");
 	ASSERT(iDriverFactory);
 
 	iDriverFactory->CancelAllPdpNotifications();