telephonyprotocols/rawipnif/src/RawIPFlowFactory.cpp
branchRCL_3
changeset 20 07a122eea281
parent 19 630d2f34d719
equal deleted inserted replaced
19:630d2f34d719 20:07a122eea281
     1 // Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    17 
    17 
    18 /**
    18 /**
    19  @file
    19  @file
    20 */
    20 */
    21 
    21 
    22 
       
    23 #include "OstTraceDefinitions.h"
       
    24 #ifdef OST_TRACE_COMPILER_IN_USE
       
    25 #include "RawIPFlowFactoryTraces.h"
       
    26 #endif
       
    27 
       
    28 #include "RawIPFlowFactory.h"
    22 #include "RawIPFlowFactory.h"
    29 #include "RawIPFlow.h"
    23 #include "RawIPFlow.h"
       
    24 #include "bttlog.h"
    30 
    25 
    31 using namespace ESock;
    26 using namespace ESock;
    32 
    27 
    33 // =====================================================================================
    28 // =====================================================================================
    34 //
    29 //
    61 	}
    56 	}
    62 
    57 
    63 
    58 
    64 CSubConnectionFlowBase* CRawIPFlowFactory::DoCreateFlowL(ESock::CProtocolIntfBase* aProtocol, ESock::TFactoryQueryBase& aQuery)
    59 CSubConnectionFlowBase* CRawIPFlowFactory::DoCreateFlowL(ESock::CProtocolIntfBase* aProtocol, ESock::TFactoryQueryBase& aQuery)
    65 	{
    60 	{
       
    61 #ifdef __BTT_LOGGING__
       
    62 	iTheLogger = CBttLogger::NewL(KNifSubDir, KRefFile, User::FastCounter());
       
    63 #endif // __BTT_LOGGING__
    66 
    64 
    67 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CRAWIPFLOWFACTORY_DOCREATEFLOWL_1, "Raw IP logging started.");
    65 	_LOG_L1C1(_L8("Raw IP logging started."));
    68 	
    66 	
    69 	const TDefaultFlowFactoryQuery& query = static_cast<const TDefaultFlowFactoryQuery&>(aQuery);
    67 	const TDefaultFlowFactoryQuery& query = static_cast<const TDefaultFlowFactoryQuery&>(aQuery);
    70  	CRawIPFlow* s = new (ELeave) CRawIPFlow(*this, query.iSCprId, aProtocol);
    68  	CRawIPFlow* s = new (ELeave) CRawIPFlow(*this, query.iSCprId, aProtocol, iTheLogger);
    71 	CleanupStack::PushL(s);
    69 	CleanupStack::PushL(s);
    72 	s->ConstructL();
    70 	s->ConstructL();
    73 	CleanupStack::Pop(s);
    71 	CleanupStack::Pop(s);
    74 
    72 
    75 	return s;
    73 	return s;