servicediscoveryandcontrol/pnp/test/upnp/Server/ControlPoint/src/upnptiermanagerfactory.cpp
equal
deleted
inserted
replaced
|
1 // Copyright (c) 2008-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 // @file |
|
15 // @internalComponent |
|
16 // |
|
17 // |
|
18 |
|
19 #include "upnptiermanagerfactory.h" |
|
20 #include "upnptiermanager.h" |
|
21 |
|
22 #if defined __CFLOG_ACTIVE || defined SYMBIAN_TRACE_ENABLE |
|
23 #define KUPnPTmFactoryTag KESockTierTag |
|
24 #endif |
|
25 |
|
26 using namespace ESock; |
|
27 |
|
28 CUPnPTierManagerFactory* CUPnPTierManagerFactory::NewL(TAny* aParentContainer) |
|
29 { |
|
30 return new (ELeave) CUPnPTierManagerFactory( |
|
31 TUid::Uid(CUPnPTierManagerFactory::iUid), |
|
32 *reinterpret_cast<CTierManagerFactoryContainer*>(aParentContainer)); |
|
33 } |
|
34 |
|
35 |
|
36 CUPnPTierManagerFactory::CUPnPTierManagerFactory( |
|
37 TUid aFactoryId, |
|
38 CTierManagerFactoryContainer& aParentContainer) |
|
39 : CTierManagerFactoryBase(aFactoryId, aParentContainer) |
|
40 { |
|
41 // LOG_NODE_CREATE(KUPnPTmFactoryTag, CUPnPTierManagerFactory); |
|
42 } |
|
43 |
|
44 ACommsFactoryNodeId* CUPnPTierManagerFactory::DoCreateObjectL(TFactoryQueryBase& /* aQuery */) |
|
45 { |
|
46 return CUPnPTierManager::NewL(*this); |
|
47 } |
|
48 |