diff -r 6b1d113cdff3 -r 6638e7f4bd8f telephonyprotocols/pdplayer/src/pdpmcprfactory.cpp --- a/telephonyprotocols/pdplayer/src/pdpmcprfactory.cpp Mon May 03 13:37:20 2010 +0300 +++ b/telephonyprotocols/pdplayer/src/pdpmcprfactory.cpp Thu May 06 15:10:38 2010 +0100 @@ -1,69 +1,69 @@ -// 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: -// Pdp MCPR Factory -// -// - -/** - @file - @internalComponent -*/ - -#include -#include -#include -#include -#include - -#include - -#include "pdpmcprfactory.h" -#include "pdpmcpr.h" - - - -#ifdef _DEBUG -#define KPdpMCprFactoryTag KESockMetaConnectionTag -_LIT8(KPdpMCprFactorySubTag, "pdpmcprfactory"); -#endif - -using namespace ESock; - -//-========================================================= -// -// CPdpMetaConnectionProviderFactory methods -// -//-========================================================= -CPdpMetaConnectionProviderFactory* CPdpMetaConnectionProviderFactory::NewL(TAny* aParentContainer) - { - __CFLOG_VAR((KPdpMCprFactoryTag, KPdpMCprFactorySubTag, _L8("CPdpMetaConnectionProviderFactory ::\tNewL(%08x)"), aParentContainer)); - return new (ELeave) CPdpMetaConnectionProviderFactory(TUid::Uid(CPdpMetaConnectionProviderFactory::iUid), *(reinterpret_cast(aParentContainer))); - } - -CPdpMetaConnectionProviderFactory::CPdpMetaConnectionProviderFactory(TUid aFactoryId, CMetaConnectionFactoryContainer& aParentContainer) - : CMetaConnectionProviderFactoryBase(aFactoryId,aParentContainer) - { - __CFLOG_VAR((KPdpMCprFactoryTag, KPdpMCprFactorySubTag, _L8("CPdpMetaConnectionProviderFactory %08x:\tCPdpMetaConnectionProviderFactory Constructor"), this)); - } - -ESock::ACommsFactoryNodeId* CPdpMetaConnectionProviderFactory::DoCreateObjectL(ESock::TFactoryQueryBase& aQuery) - { - const TMetaConnectionFactoryQuery& query = static_cast(aQuery); - CMetaConnectionProviderBase* provider = CPdpMetaConnectionProvider::NewL(*this, query.iProviderInfo); - - ESOCK_DEBUG_REGISTER_GENERAL_NODE(iUid, provider); - - return provider; - } - +// 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: +// Pdp MCPR Factory +// +// + +/** + @file + @internalComponent +*/ + +#include +#include +#include +#include +#include + +#include + +#include "pdpmcprfactory.h" +#include "pdpmcpr.h" + + + +#ifdef _DEBUG +#define KPdpMCprFactoryTag KESockMetaConnectionTag +_LIT8(KPdpMCprFactorySubTag, "pdpmcprfactory"); +#endif + +using namespace ESock; + +//-========================================================= +// +// CPdpMetaConnectionProviderFactory methods +// +//-========================================================= +CPdpMetaConnectionProviderFactory* CPdpMetaConnectionProviderFactory::NewL(TAny* aParentContainer) + { + __CFLOG_VAR((KPdpMCprFactoryTag, KPdpMCprFactorySubTag, _L8("CPdpMetaConnectionProviderFactory ::\tNewL(%08x)"), aParentContainer)); + return new (ELeave) CPdpMetaConnectionProviderFactory(TUid::Uid(CPdpMetaConnectionProviderFactory::iUid), *(reinterpret_cast(aParentContainer))); + } + +CPdpMetaConnectionProviderFactory::CPdpMetaConnectionProviderFactory(TUid aFactoryId, CMetaConnectionFactoryContainer& aParentContainer) + : CMetaConnectionProviderFactoryBase(aFactoryId,aParentContainer) + { + __CFLOG_VAR((KPdpMCprFactoryTag, KPdpMCprFactorySubTag, _L8("CPdpMetaConnectionProviderFactory %08x:\tCPdpMetaConnectionProviderFactory Constructor"), this)); + } + +ESock::ACommsFactoryNodeId* CPdpMetaConnectionProviderFactory::DoCreateObjectL(ESock::TFactoryQueryBase& aQuery) + { + const TMetaConnectionFactoryQuery& query = static_cast(aQuery); + CMetaConnectionProviderBase* provider = CPdpMetaConnectionProvider::NewL(*this, query.iProviderInfo); + + ESOCK_DEBUG_REGISTER_GENERAL_NODE(iUid, provider); + + return provider; + } +