24
|
1 |
// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
// Pdp MCPR Factory
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
/**
|
|
19 |
@file
|
|
20 |
@internalComponent
|
|
21 |
*/
|
|
22 |
|
|
23 |
#include <etelqos.h>
|
|
24 |
#include <ecom/implementationproxy.h>
|
|
25 |
#include <comms-infras/ss_log.h>
|
|
26 |
#include <ss_glob.h>
|
|
27 |
#include <ecom/ecom.h>
|
|
28 |
|
|
29 |
#include <comms-infras/ss_msgintercept.h>
|
|
30 |
|
|
31 |
#include "pdpmcprfactory.h"
|
|
32 |
#include "pdpmcpr.h"
|
|
33 |
|
|
34 |
|
|
35 |
|
|
36 |
#ifdef _DEBUG
|
|
37 |
#define KPdpMCprFactoryTag KESockMetaConnectionTag
|
|
38 |
_LIT8(KPdpMCprFactorySubTag, "pdpmcprfactory");
|
|
39 |
#endif
|
|
40 |
|
|
41 |
using namespace ESock;
|
|
42 |
|
|
43 |
//-=========================================================
|
|
44 |
//
|
|
45 |
// CPdpMetaConnectionProviderFactory methods
|
|
46 |
//
|
|
47 |
//-=========================================================
|
|
48 |
CPdpMetaConnectionProviderFactory* CPdpMetaConnectionProviderFactory::NewL(TAny* aParentContainer)
|
|
49 |
{
|
|
50 |
__CFLOG_VAR((KPdpMCprFactoryTag, KPdpMCprFactorySubTag, _L8("CPdpMetaConnectionProviderFactory ::\tNewL(%08x)"), aParentContainer));
|
|
51 |
return new (ELeave) CPdpMetaConnectionProviderFactory(TUid::Uid(CPdpMetaConnectionProviderFactory::iUid), *(reinterpret_cast<CMetaConnectionFactoryContainer*>(aParentContainer)));
|
|
52 |
}
|
|
53 |
|
|
54 |
CPdpMetaConnectionProviderFactory::CPdpMetaConnectionProviderFactory(TUid aFactoryId, CMetaConnectionFactoryContainer& aParentContainer)
|
|
55 |
: CMetaConnectionProviderFactoryBase(aFactoryId,aParentContainer)
|
|
56 |
{
|
|
57 |
__CFLOG_VAR((KPdpMCprFactoryTag, KPdpMCprFactorySubTag, _L8("CPdpMetaConnectionProviderFactory %08x:\tCPdpMetaConnectionProviderFactory Constructor"), this));
|
|
58 |
}
|
|
59 |
|
|
60 |
ESock::ACommsFactoryNodeId* CPdpMetaConnectionProviderFactory::DoCreateObjectL(ESock::TFactoryQueryBase& aQuery)
|
|
61 |
{
|
|
62 |
const TMetaConnectionFactoryQuery& query = static_cast<const TMetaConnectionFactoryQuery&>(aQuery);
|
|
63 |
CMetaConnectionProviderBase* provider = CPdpMetaConnectionProvider::NewL(*this, query.iProviderInfo);
|
|
64 |
|
|
65 |
ESOCK_DEBUG_REGISTER_GENERAL_NODE(iUid, provider);
|
|
66 |
|
|
67 |
return provider;
|
|
68 |
}
|
|
69 |
|