servicediscoveryandcontrol/pnp/test/upnp/Client/upnpplugin/src/upnpsubconneventsfactory.cpp
changeset 0 f5a58ecadc66
equal deleted inserted replaced
-1:000000000000 0:f5a58ecadc66
       
     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 // upnpsubconnevents.cpp
       
    15 // 
       
    16 //
       
    17 
       
    18 #include <comms-infras/metadata.h>
       
    19 #include <comms-infras/metatype.h>
       
    20 #include "upnpsubconneventsfactory.h"
       
    21 #include "upnpsubconnevents.h"
       
    22 
       
    23 
       
    24 START_ATTRIBUTE_TABLE( CUPnPSubConnEvent, KUPnPSubConnEventsUid, KUPnPSubConnEvent )	
       
    25 	REGISTER_ATTRIBUTE( CUPnPSubConnEvent, iFamilyId, TMetaNumber)	
       
    26 END_ATTRIBUTE_TABLE()
       
    27 
       
    28 
       
    29 CSubConNotificationEvent* CUPnPSubConnEventsFactory::NewL(TAny* aConstructionParameters)
       
    30 	{
       
    31 	TInt32 type = reinterpret_cast<TInt32>(aConstructionParameters);
       
    32 	switch (type)
       
    33 		{
       
    34 		case (KUPnPSubConnEvent):
       
    35 			return new (ELeave) CUPnPSubConnEvent;
       
    36 		default:
       
    37 			ASSERT(0);
       
    38 			break;
       
    39 		}		
       
    40 	return NULL;
       
    41 	}
       
    42 
       
    43