|
1 // Copyright (c) 2004-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 // Implementation file for the IP SubConnection Parameters |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file ip_subconparams.h |
|
20 */ |
|
21 |
|
22 |
|
23 #include <e32std.h> |
|
24 #include <e32test.h> |
|
25 #include <ecom/ecom.h> |
|
26 #include <ecom/implementationproxy.h> |
|
27 #include <ip_subconparams.h> |
|
28 #include <comms-infras/metatypearray.h> |
|
29 |
|
30 #ifndef SYMBIAN_NETWORKING_3GPPDEFAULTQOS |
|
31 // need to ensure the original class name and TUid of the factory class |
|
32 // is used for implementions in this component |
|
33 #undef KSubConIPParamsUid |
|
34 #undef KSubConQosIPLinkR99ParamsType |
|
35 #undef CSubConQosIPLinkR99ParamSet |
|
36 #endif |
|
37 |
|
38 START_ATTRIBUTE_TABLE( CSubConQosIPLinkR99ParamSet, KSubConIPParamsUid, KSubConQosIPLinkR99ParamsType ) |
|
39 REGISTER_ATTRIBUTE( CSubConQosIPLinkR99ParamSet, iTrafficClass, TMetaNumber ) |
|
40 REGISTER_ATTRIBUTE( CSubConQosIPLinkR99ParamSet, iDeliveryOrder, TMetaNumber ) |
|
41 REGISTER_ATTRIBUTE( CSubConQosIPLinkR99ParamSet, iDeliveryOfErroneusSdu, TMetaNumber ) |
|
42 REGISTER_ATTRIBUTE( CSubConQosIPLinkR99ParamSet, iResidualBer, TMetaNumber ) |
|
43 REGISTER_ATTRIBUTE( CSubConQosIPLinkR99ParamSet, iErrorRatio, TMetaNumber ) |
|
44 REGISTER_ATTRIBUTE( CSubConQosIPLinkR99ParamSet, iPriority, TMetaNumber ) |
|
45 REGISTER_ATTRIBUTE( CSubConQosIPLinkR99ParamSet, iTransferDelay, TMetaNumber ) |
|
46 REGISTER_ATTRIBUTE( CSubConQosIPLinkR99ParamSet, iMaxSduSize, TMetaNumber ) |
|
47 REGISTER_ATTRIBUTE( CSubConQosIPLinkR99ParamSet, iMaxBitrateUplink, TMetaNumber ) |
|
48 REGISTER_ATTRIBUTE( CSubConQosIPLinkR99ParamSet, iMaxBitrateDownlink, TMetaNumber ) |
|
49 REGISTER_ATTRIBUTE( CSubConQosIPLinkR99ParamSet, iGuaBitrateUplink, TMetaNumber ) |
|
50 REGISTER_ATTRIBUTE( CSubConQosIPLinkR99ParamSet, iGuaBitrateDownlink, TMetaNumber ) |
|
51 END_ATTRIBUTE_TABLE() |
|
52 |
|
53 START_ATTRIBUTE_TABLE( CSubConSBLPR5ExtensionParamSet, KSubConIPParamsUid, KSubConnSBLPR5ExtensionParamsType ) |
|
54 REGISTER_ATTRIBUTE( CSubConSBLPR5ExtensionParamSet, iAuthToken, TMeta<TAuthToken>) |
|
55 REGISTER_ATTRIBUTE( CSubConSBLPR5ExtensionParamSet, iFlowIds, TMetaArray<RFlowIdentifiers>) |
|
56 END_ATTRIBUTE_TABLE() |
|
57 |
|
58 CSubConExtensionParameterSet* CSubConIPExtensionParamsFactory::NewL(TAny* aConstructionParameters) |
|
59 { |
|
60 TInt32 type = reinterpret_cast<TInt32>(aConstructionParameters); |
|
61 switch (type) |
|
62 { |
|
63 case (KSubConQosIPLinkR99ParamsType): |
|
64 return new (ELeave) CSubConQosIPLinkR99ParamSet; |
|
65 // break; |
|
66 case (KSubConnSBLPR5ExtensionParamsType): |
|
67 return new (ELeave) CSubConSBLPR5ExtensionParamSet; |
|
68 // break; |
|
69 default: |
|
70 User::Leave(KErrNotFound); |
|
71 } |
|
72 return NULL; |
|
73 } |
|
74 |