baseconnectionproviders/refscpr/src/ReferenceSCPR_subconparams.cpp
branchRCL_3
changeset 26 b564fb5fd78b
parent 25 9d7ce34704c8
child 27 5ebd530e523b
equal deleted inserted replaced
25:9d7ce34704c8 26:b564fb5fd78b
     1 // Copyright (c) 2005-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 // The implementation file for the Reference SubConnection Parameter Set.
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalComponent
       
    21 */
       
    22 
       
    23 
       
    24 #include <ecom/ecom.h>
       
    25 #include "ReferenceSCPR_subconparams.h"
       
    26 #include <comms-infras/metatypearray.h>
       
    27 
       
    28 
       
    29 START_ATTRIBUTE_TABLE( CSubConReferenceParamSet, KSubConReferenceParamsUid, KSubConReferenceParamsType )
       
    30 	REGISTER_ATTRIBUTE( CSubConReferenceParamSet, iDummyTIntParameter, TMetaNumber )
       
    31 	REGISTER_ATTRIBUTE( CSubConReferenceParamSet, iDummyName, TMetaNumber )
       
    32 END_ATTRIBUTE_TABLE()
       
    33 
       
    34 
       
    35 CSubConExtensionParameterSet* CReferenceSubConnExtensionParamsFactory::NewL(TAny* aConstructionParameters)
       
    36 	{
       
    37 	TInt32 type = reinterpret_cast<TInt32>(aConstructionParameters);
       
    38 	switch (type)
       
    39 		{
       
    40 	case (KSubConReferenceParamsType):
       
    41 		return new (ELeave) CSubConReferenceParamSet;
       
    42 	default:
       
    43 		User::Leave(KErrNotFound);
       
    44 		}
       
    45 	return NULL;
       
    46 	}
       
    47