telephonyprotocols/rawipnif/rawipnif2/src/RawIP2FlowFactory.cpp
branchRCL_3
changeset 65 630d2f34d719
parent 0 3553901f7fa8
child 66 07a122eea281
equal deleted inserted replaced
61:17af172ffa5f 65:630d2f34d719
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2006-2010 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 "RawIP2FlowFactoryTraces.h"
       
    26 #endif
       
    27 
    22 #include "RawIP2FlowFactory.h"
    28 #include "RawIP2FlowFactory.h"
    23 #include "RawIP2Flow.h"
    29 #include "RawIP2Flow.h"
    24 #include "bttlog.h"
       
    25 
    30 
    26 using namespace ESock;
    31 using namespace ESock;
    27 
    32 
    28 // =====================================================================================
    33 // =====================================================================================
    29 //
    34 //
    56 	}
    61 	}
    57 
    62 
    58 
    63 
    59 CSubConnectionFlowBase* CRawIP2FlowFactory::DoCreateFlowL(ESock::CProtocolIntfBase* aProtocol, ESock::TFactoryQueryBase& aQuery)
    64 CSubConnectionFlowBase* CRawIP2FlowFactory::DoCreateFlowL(ESock::CProtocolIntfBase* aProtocol, ESock::TFactoryQueryBase& aQuery)
    60 	{
    65 	{
    61 #ifdef __BTT_LOGGING__
       
    62 	iTheLogger = CBttLogger::NewL(KNifSubDir, KRefFile, User::FastCounter());
       
    63 #endif // __BTT_LOGGING__
       
    64 
    66 
    65 	_LOG_L1C1(_L8("Raw IP logging started."));
    67 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CRAWIP2FLOWFACTORY_DOCREATEFLOWL_1, "Raw IP logging started.");
    66 
    68 
    67 	const TDefaultFlowFactoryQuery& query = static_cast<const TDefaultFlowFactoryQuery&>(aQuery);
    69 	const TDefaultFlowFactoryQuery& query = static_cast<const TDefaultFlowFactoryQuery&>(aQuery);
    68  	CRawIP2Flow* s = new (ELeave) CRawIP2Flow(*this, query.iSCprId, aProtocol, iTheLogger);
    70  	CRawIP2Flow* s = new (ELeave) CRawIP2Flow(*this, query.iSCprId, aProtocol);
    69 	CleanupStack::PushL(s);
    71 	CleanupStack::PushL(s);
    70 	s->ConstructL();
    72 	s->ConstructL();
    71 	CleanupStack::Pop(s);
    73 	CleanupStack::Pop(s);
    72 
    74 
    73 	return s;
    75 	return s;