|
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 // Qos3GPP_subconnProvFactory.cpp |
|
15 // Implementation file for the 3GPP SubConnection Parameter Set (R99/R4) |
|
16 // |
|
17 // |
|
18 |
|
19 /** |
|
20 @file |
|
21 @internalComponent |
|
22 */ |
|
23 |
|
24 |
|
25 #include <e32std.h> |
|
26 #include <e32test.h> |
|
27 #include <ecom/ecom.h> |
|
28 #include <ecom/implementationproxy.h> |
|
29 #include <networking/qos3gpp_subconparams.h> |
|
30 #include <comms-infras/metatypearray.h> |
|
31 #include <networking/qos3GPP_subconparams_factory.h> |
|
32 |
|
33 START_ATTRIBUTE_TABLE( CSubConQosR99ParamSet, KSubCon3GPPExtParamsFactoryUid, KSubConQosR99ParamsType ) |
|
34 REGISTER_ATTRIBUTE( CSubConQosR99ParamSet, iTrafficClass, TMetaNumber ) |
|
35 REGISTER_ATTRIBUTE( CSubConQosR99ParamSet, iDeliveryOrder, TMetaNumber ) |
|
36 REGISTER_ATTRIBUTE( CSubConQosR99ParamSet, iDeliveryOfErroneusSdu, TMetaNumber ) |
|
37 REGISTER_ATTRIBUTE( CSubConQosR99ParamSet, iResidualBer, TMetaNumber ) |
|
38 REGISTER_ATTRIBUTE( CSubConQosR99ParamSet, iErrorRatio, TMetaNumber ) |
|
39 REGISTER_ATTRIBUTE( CSubConQosR99ParamSet, iPriority, TMetaNumber ) |
|
40 REGISTER_ATTRIBUTE( CSubConQosR99ParamSet, iTransferDelay, TMetaNumber ) |
|
41 REGISTER_ATTRIBUTE( CSubConQosR99ParamSet, iMaxSduSize, TMetaNumber ) |
|
42 REGISTER_ATTRIBUTE( CSubConQosR99ParamSet, iMaxBitrateUplink, TMetaNumber ) |
|
43 REGISTER_ATTRIBUTE( CSubConQosR99ParamSet, iMaxBitrateDownlink, TMetaNumber ) |
|
44 REGISTER_ATTRIBUTE( CSubConQosR99ParamSet, iGuaBitrateUplink, TMetaNumber ) |
|
45 REGISTER_ATTRIBUTE( CSubConQosR99ParamSet, iGuaBitrateDownlink, TMetaNumber ) |
|
46 END_ATTRIBUTE_TABLE() |
|
47 |
|
48 START_ATTRIBUTE_TABLE( CSubConSBLPR5ExtensionParamSet, KSubCon3GPPExtParamsFactoryUid, KSubConnSBLPR5ExtensionParamsType ) |
|
49 REGISTER_ATTRIBUTE( CSubConSBLPR5ExtensionParamSet, iAuthToken, TMeta<TAuthToken>) |
|
50 REGISTER_ATTRIBUTE( CSubConSBLPR5ExtensionParamSet, iFlowIds, TMetaArray<RFlowIdentifiers>) |
|
51 END_ATTRIBUTE_TABLE() |
|
52 |
|
53 |
|
54 #ifdef SYMBIAN_NETWORKING_UMTSR5 |
|
55 START_ATTRIBUTE_TABLE( CSubConQosR5ParamSet, KSubCon3GPPExtParamsFactoryUid, KSubConQosR5ParamsType ) |
|
56 REGISTER_ATTRIBUTE( CSubConQosR5ParamSet, iSignallingIndicator, TMeta<TBool>) |
|
57 REGISTER_ATTRIBUTE( CSubConQosR5ParamSet, iSrcStatsDesc, TMetaNumber) |
|
58 END_ATTRIBUTE_TABLE_BASE(CSubConQosR99ParamSet,0) |
|
59 |
|
60 START_ATTRIBUTE_TABLE( CSubConImsExtParamSet, KSubCon3GPPExtParamsFactoryUid, KSubConImsExtParamsType ) |
|
61 REGISTER_ATTRIBUTE(CSubConImsExtParamSet, iImsSignallingIndicator, TMeta<TBool>) |
|
62 END_ATTRIBUTE_TABLE() |
|
63 #endif |
|
64 // SYMBIAN_NETWORKING_UMTSR5 |
|
65 |
|
66 |
|
67 CSubConExtensionParameterSet* CSubCon3GPPExtParamsFactory::NewL(TAny* aConstructionParameters) |
|
68 { |
|
69 TInt32 type = reinterpret_cast<TInt32>(aConstructionParameters); |
|
70 switch (type) |
|
71 { |
|
72 |
|
73 case (KSubConQosR99ParamsType): |
|
74 return new (ELeave) CSubConQosR99ParamSet; |
|
75 |
|
76 case (KSubConnSBLPR5ExtensionParamsType): |
|
77 return new (ELeave) CSubConSBLPR5ExtensionParamSet; |
|
78 |
|
79 #ifdef SYMBIAN_NETWORKING_UMTSR5 |
|
80 case (KSubConQosR5ParamsType): |
|
81 return new(ELeave) CSubConQosR5ParamSet; |
|
82 |
|
83 case (KSubConImsExtParamsType): |
|
84 return new(ELeave) CSubConImsExtParamSet; |
|
85 #endif |
|
86 // SYMBIAN_NETWORKING_UMTSR5 |
|
87 |
|
88 default: |
|
89 User::Leave(KErrNotFound); |
|
90 } |
|
91 return NULL; |
|
92 } |
|
93 |