diff -r 6b1d113cdff3 -r 6638e7f4bd8f telephonyprotocols/rawipnif/rawipnif2/src/RawIP2FlowFactory.cpp --- a/telephonyprotocols/rawipnif/rawipnif2/src/RawIP2FlowFactory.cpp Mon May 03 13:37:20 2010 +0300 +++ b/telephonyprotocols/rawipnif/rawipnif2/src/RawIP2FlowFactory.cpp Thu May 06 15:10:38 2010 +0100 @@ -1,75 +1,75 @@ -// Copyright (c) 2006-2009 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" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// Implements the factory class which is used to instantiate the RAW IP NIF. -// -// - -/** - @file -*/ - -#include "RawIP2FlowFactory.h" -#include "RawIP2Flow.h" -#include "bttlog.h" - -using namespace ESock; - -// ===================================================================================== -// -// RawIP Flow Factory -// - -CRawIP2FlowFactory* CRawIP2FlowFactory::NewL(TAny* aConstructionParameters) -/** -Constructs a Default SubConnection Flow Factory - -@param aConstructionParameters construction data passed by ECOM - -@returns pointer to a constructed factory -*/ - { - CRawIP2FlowFactory* ptr = new (ELeave) CRawIP2FlowFactory(TUid::Uid(KRawIp2FlowImplUid), *(reinterpret_cast(aConstructionParameters))); - return ptr; - } - - -CRawIP2FlowFactory::CRawIP2FlowFactory(TUid aFactoryId, CSubConnectionFlowFactoryContainer& aParentContainer) - : CSubConnectionFlowFactoryBase(aFactoryId, aParentContainer) -/** -Default SubConnection Flow Factory Constructor - -@param aFactoryId ECOM Implementation Id -@param aParentContainer Object Owner -*/ - { - } - - -CSubConnectionFlowBase* CRawIP2FlowFactory::DoCreateFlowL(ESock::CProtocolIntfBase* aProtocol, ESock::TFactoryQueryBase& aQuery) - { -#ifdef __BTT_LOGGING__ - iTheLogger = CBttLogger::NewL(KNifSubDir, KRefFile, User::FastCounter()); -#endif // __BTT_LOGGING__ - - _LOG_L1C1(_L8("Raw IP logging started.")); - - const TDefaultFlowFactoryQuery& query = static_cast(aQuery); - CRawIP2Flow* s = new (ELeave) CRawIP2Flow(*this, query.iSCprId, aProtocol, iTheLogger); - CleanupStack::PushL(s); - s->ConstructL(); - CleanupStack::Pop(s); - - return s; - } - +// Copyright (c) 2006-2009 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" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// Implements the factory class which is used to instantiate the RAW IP NIF. +// +// + +/** + @file +*/ + +#include "RawIP2FlowFactory.h" +#include "RawIP2Flow.h" +#include "bttlog.h" + +using namespace ESock; + +// ===================================================================================== +// +// RawIP Flow Factory +// + +CRawIP2FlowFactory* CRawIP2FlowFactory::NewL(TAny* aConstructionParameters) +/** +Constructs a Default SubConnection Flow Factory + +@param aConstructionParameters construction data passed by ECOM + +@returns pointer to a constructed factory +*/ + { + CRawIP2FlowFactory* ptr = new (ELeave) CRawIP2FlowFactory(TUid::Uid(KRawIp2FlowImplUid), *(reinterpret_cast(aConstructionParameters))); + return ptr; + } + + +CRawIP2FlowFactory::CRawIP2FlowFactory(TUid aFactoryId, CSubConnectionFlowFactoryContainer& aParentContainer) + : CSubConnectionFlowFactoryBase(aFactoryId, aParentContainer) +/** +Default SubConnection Flow Factory Constructor + +@param aFactoryId ECOM Implementation Id +@param aParentContainer Object Owner +*/ + { + } + + +CSubConnectionFlowBase* CRawIP2FlowFactory::DoCreateFlowL(ESock::CProtocolIntfBase* aProtocol, ESock::TFactoryQueryBase& aQuery) + { +#ifdef __BTT_LOGGING__ + iTheLogger = CBttLogger::NewL(KNifSubDir, KRefFile, User::FastCounter()); +#endif // __BTT_LOGGING__ + + _LOG_L1C1(_L8("Raw IP logging started.")); + + const TDefaultFlowFactoryQuery& query = static_cast(aQuery); + CRawIP2Flow* s = new (ELeave) CRawIP2Flow(*this, query.iSCprId, aProtocol, iTheLogger); + CleanupStack::PushL(s); + s->ConstructL(); + CleanupStack::Pop(s); + + return s; + } +