--- a/telephonyprotocols/rawipnif/rawipnif2/src/BinderBase.cpp Thu Aug 19 11:03:36 2010 +0300
+++ b/telephonyprotocols/rawipnif/rawipnif2/src/BinderBase.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"
@@ -19,23 +19,28 @@
@file
*/
+
+#include "OstTraceDefinitions.h"
+#ifdef OST_TRACE_COMPILER_IN_USE
+#include "BinderBaseTraces.h"
+#endif
+
#include <nifmbuf.h>
#include "BinderBase.h"
#include "RawIP2Flow.h"
#include "BcaController.h"
-CBinderBase::CBinderBase(CRawIP2Flow& aFlow, CBttLogger* aTheLogger)
+CBinderBase::CBinderBase(CRawIP2Flow& aFlow)
/**
* Constructor
*
* @param aNifMain A pointer to CRawIPFlow
*/
:iFlow(&aFlow),
- iTheLogger(aTheLogger),
iStarted(EFalse)
{
#ifdef RAWIP_HEADER_APPENDED_TO_PACKETS
- iIPTagHeader = new (ELeave) CIPTagHeader(iTheLogger);
+ iIPTagHeader = new (ELeave) CIPTagHeader();
#endif // RAWIP_HEADER_APPENDED_TO_PACKETS
}
@@ -55,7 +60,7 @@
/**
* Used to specify the type of the IP header.
*/
- _LOG_L1C1(_L8("CBinderBase::SetType"));
+ OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CBINDERBASE_SETTYPE_1, "CBinderBase::SetType");
iIPTagHeader->SetType(aType);
}
@@ -103,7 +108,7 @@
* @param aUpperControl A pointer to Upper layer control class
*/
{
- _LOG_L1C1(_L8("CBinderBase:\tBind()"));
+ OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CBINDERBASE_BIND_1, "CBinderBase:\tBind()");
iUpperReceiver = aUpperReceiver;
iUpperControl = aUpperControl;
@@ -112,7 +117,7 @@
void CBinderBase::Unbind(ESock::MUpperDataReceiver* aUpperReceiver, ESock::MUpperControl* aUpperControl)
{
- _LOG_L1C1(_L8("CBinderBase:\tUnbind()"));
+ OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CBINDERBASE_UNBIND_1, "CBinderBase:\tUnbind()");
#ifndef _DEBUG
(void) aUpperReceiver;
@@ -132,7 +137,7 @@
* @param aProtocol A pointer to a protocol
*/
{
- _LOG_L1C1(_L8("CBinderBase:\tStartSending()"));
+ OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CBINDERBASE_STARTSENDING_1, "CBinderBase:\tStartSending()");
if (!iStarted)
{
@@ -152,7 +157,7 @@
* @param aProtocol A pointer to a protocol
*/
{
- _LOG_L1C1(_L8("CBinderBase:\tError()"));
+ OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CBINDERBASE_ERROR_1, "CBinderBase:\tError()");
// Default implementation.
// Uses iProtocol instead aProtocol.