networkcontrol/ipnetworklayer/src/IPProtoMessages.cpp
changeset 0 af10295192d8
equal deleted inserted replaced
-1:000000000000 0:af10295192d8
       
     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 // IPProto-proprietary messages
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalTechnology
       
    21 */
       
    22 
       
    23 #include <ss_glob.h>
       
    24 #include <comms-infras/ss_thread.h>
       
    25 #include "IPProtoMessages.h"
       
    26 
       
    27 
       
    28 
       
    29 START_ATTRIBUTE_TABLE( CSubConTFTParameterSet, CSubConTFTParameterSet::EUid, CSubConTFTParameterSet::ETypeId )
       
    30 END_ATTRIBUTE_TABLE()
       
    31 
       
    32 
       
    33 CSubConExtensionParameterSet* CIPProtoSubConnParameterFactory::NewL(TAny* aConstructionParameters)
       
    34 	{
       
    35 	TInt32 type = reinterpret_cast<TInt32>(aConstructionParameters);
       
    36 	switch (type)
       
    37 		{
       
    38 	case (CSubConTFTParameterSet::ETypeId):
       
    39 		return new (ELeave) CSubConTFTParameterSet;
       
    40  
       
    41 	default:
       
    42 		User::Leave(KErrNotFound);
       
    43 		}
       
    44 	return NULL;
       
    45 	}