|
1 /** |
|
2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Inline Functions file for the IP SubConnection Parameters |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 |
|
22 /** |
|
23 @file ip_subconparams.inl |
|
24 */ |
|
25 |
|
26 |
|
27 #ifndef __IP_SUBCONPARAMS_INL__ |
|
28 #define __IP_SUBCONPARAMS_INL__ |
|
29 |
|
30 #ifndef SYMBIAN_NETWORKING_3GPPDEFAULTQOS |
|
31 |
|
32 CSubConQosIPLinkR99ParamSet* CSubConQosIPLinkR99ParamSet::NewL(CSubConParameterFamily& aFamily, CSubConParameterFamily::TParameterSetType aType) |
|
33 { |
|
34 CSubConQosIPLinkR99ParamSet* obj = NewL(); |
|
35 CleanupStack::PushL(obj); |
|
36 aFamily.AddExtensionSetL(*obj, aType); |
|
37 CleanupStack::Pop(obj); |
|
38 return obj; |
|
39 } |
|
40 |
|
41 CSubConQosIPLinkR99ParamSet* CSubConQosIPLinkR99ParamSet::NewL() |
|
42 { |
|
43 STypeId typeId = STypeId::CreateSTypeId(KSubConIPParamsUid, KSubConQosIPLinkR99ParamsType); |
|
44 return static_cast<CSubConQosIPLinkR99ParamSet*>(CSubConParameterSet::NewL(typeId)); |
|
45 } |
|
46 |
|
47 CSubConQosIPLinkR99ParamSet::CSubConQosIPLinkR99ParamSet() |
|
48 : CSubConExtensionParameterSet(), |
|
49 iTrafficClass(RPacketQoS::ETrafficClassUnspecified), |
|
50 iDeliveryOrder(RPacketQoS::EDeliveryOrderUnspecified), |
|
51 iDeliveryOfErroneusSdu(RPacketQoS::EErroneousSDUDeliveryUnspecified), |
|
52 iResidualBer(RPacketQoS::EBERUnspecified), |
|
53 iErrorRatio(RPacketQoS::ESDUErrorRatioUnspecified), |
|
54 iPriority(RPacketQoS::ETrafficPriorityUnspecified), |
|
55 iTransferDelay(0), |
|
56 iMaxSduSize(0), |
|
57 iMaxBitrateUplink(0), |
|
58 iMaxBitrateDownlink(0), |
|
59 iGuaBitrateUplink(0), |
|
60 iGuaBitrateDownlink(0) |
|
61 { |
|
62 } |
|
63 |
|
64 RPacketQoS::TTrafficClass CSubConQosIPLinkR99ParamSet::GetTrafficClass() const |
|
65 { |
|
66 return iTrafficClass; |
|
67 } |
|
68 |
|
69 RPacketQoS::TDeliveryOrder CSubConQosIPLinkR99ParamSet::GetDeliveryOrder() const |
|
70 { |
|
71 return iDeliveryOrder; |
|
72 } |
|
73 |
|
74 RPacketQoS::TErroneousSDUDelivery CSubConQosIPLinkR99ParamSet::GetErroneousSDUDelivery() const |
|
75 { |
|
76 return iDeliveryOfErroneusSdu; |
|
77 } |
|
78 |
|
79 RPacketQoS::TBitErrorRatio CSubConQosIPLinkR99ParamSet::GetResidualBitErrorRatio() const |
|
80 { |
|
81 return iResidualBer; |
|
82 } |
|
83 |
|
84 RPacketQoS::TSDUErrorRatio CSubConQosIPLinkR99ParamSet::GetSDUErrorRatio() const |
|
85 { |
|
86 return iErrorRatio; |
|
87 } |
|
88 |
|
89 RPacketQoS::TTrafficHandlingPriority CSubConQosIPLinkR99ParamSet::GetTrafficHandlingPriority() const |
|
90 { |
|
91 return iPriority; |
|
92 } |
|
93 |
|
94 TInt CSubConQosIPLinkR99ParamSet::GetTransferDelay() const |
|
95 { |
|
96 return iTransferDelay; |
|
97 } |
|
98 |
|
99 TInt CSubConQosIPLinkR99ParamSet::GetMaxSduSize() const |
|
100 { |
|
101 return iMaxSduSize; |
|
102 } |
|
103 |
|
104 TInt CSubConQosIPLinkR99ParamSet::GetMaxBitrateUplink() const |
|
105 { |
|
106 return iMaxBitrateUplink; |
|
107 } |
|
108 |
|
109 TInt CSubConQosIPLinkR99ParamSet::GetMaxBitrateDownlink() const |
|
110 { |
|
111 return iMaxBitrateDownlink; |
|
112 } |
|
113 |
|
114 TInt CSubConQosIPLinkR99ParamSet::GetGuaBitrateUplink() const |
|
115 { |
|
116 return iGuaBitrateUplink; |
|
117 } |
|
118 |
|
119 TInt CSubConQosIPLinkR99ParamSet::GetGuaBitrateDownlink() const |
|
120 { |
|
121 return iGuaBitrateDownlink; |
|
122 } |
|
123 |
|
124 void CSubConQosIPLinkR99ParamSet::SetTrafficClass(RPacketQoS::TTrafficClass aTrafficClass) |
|
125 { |
|
126 iTrafficClass = aTrafficClass; |
|
127 } |
|
128 |
|
129 void CSubConQosIPLinkR99ParamSet::SetDeliveryOrder(RPacketQoS::TDeliveryOrder aDeliveryOrder) |
|
130 { |
|
131 iDeliveryOrder = aDeliveryOrder; |
|
132 } |
|
133 |
|
134 void CSubConQosIPLinkR99ParamSet::SetErroneousSDUDelivery(RPacketQoS::TErroneousSDUDelivery aDeliveryOfErroneusSdu) |
|
135 { |
|
136 iDeliveryOfErroneusSdu = aDeliveryOfErroneusSdu; |
|
137 } |
|
138 |
|
139 void CSubConQosIPLinkR99ParamSet::SetResidualBitErrorRatio(RPacketQoS::TBitErrorRatio aResidualBer) |
|
140 { |
|
141 iResidualBer = aResidualBer; |
|
142 } |
|
143 |
|
144 void CSubConQosIPLinkR99ParamSet::SetSDUErrorRatio(RPacketQoS::TSDUErrorRatio aErrorRatio) |
|
145 { |
|
146 iErrorRatio = aErrorRatio; |
|
147 } |
|
148 |
|
149 void CSubConQosIPLinkR99ParamSet::SetTrafficHandlingPriority(RPacketQoS::TTrafficHandlingPriority aPriority) |
|
150 { |
|
151 iPriority = aPriority; |
|
152 } |
|
153 |
|
154 void CSubConQosIPLinkR99ParamSet::SetTransferDelay(TInt aTransferDelay) |
|
155 { |
|
156 iTransferDelay = aTransferDelay; |
|
157 } |
|
158 |
|
159 void CSubConQosIPLinkR99ParamSet::SetMaxSduSize(TInt aMaxSduSize) |
|
160 { |
|
161 iMaxSduSize = aMaxSduSize; |
|
162 } |
|
163 |
|
164 void CSubConQosIPLinkR99ParamSet::SetMaxBitrateUplink(TInt aMaxBitrateUplink) |
|
165 { |
|
166 iMaxBitrateUplink = aMaxBitrateUplink; |
|
167 } |
|
168 |
|
169 void CSubConQosIPLinkR99ParamSet::SetMaxBitrateDownlink(TInt aMaxBitrateDownlink) |
|
170 { |
|
171 iMaxBitrateDownlink = aMaxBitrateDownlink; |
|
172 } |
|
173 |
|
174 void CSubConQosIPLinkR99ParamSet::SetGuaBitrateUplink(TInt aGuaBitrateUplink) |
|
175 { |
|
176 iGuaBitrateUplink = aGuaBitrateUplink; |
|
177 } |
|
178 |
|
179 void CSubConQosIPLinkR99ParamSet::SetGuaBitrateDownlink(TInt aGuaBitrateDownlink) |
|
180 { |
|
181 iGuaBitrateDownlink = aGuaBitrateDownlink; |
|
182 } |
|
183 |
|
184 |
|
185 TUint16 TFlowId::GetMediaComponentNumber() const |
|
186 { |
|
187 return iMediaComponentNumber; |
|
188 } |
|
189 |
|
190 TUint16 TFlowId::GetIPFlowNumber() const |
|
191 { |
|
192 return iIPFlowNumber; |
|
193 } |
|
194 |
|
195 void TFlowId::SetMediaComponentNumber(TUint16 aMediaComponentNumber) |
|
196 { |
|
197 iMediaComponentNumber = aMediaComponentNumber; |
|
198 } |
|
199 |
|
200 void TFlowId::SetIPFlowNumber(TUint16 aIPFlowNumber) |
|
201 { |
|
202 iIPFlowNumber = aIPFlowNumber; |
|
203 } |
|
204 |
|
205 |
|
206 //=========================== |
|
207 // Implementation Extension class |
|
208 CSubConSBLPR5ExtensionParamSet::CSubConSBLPR5ExtensionParamSet() |
|
209 : CSubConExtensionParameterSet() |
|
210 { |
|
211 } |
|
212 |
|
213 CSubConSBLPR5ExtensionParamSet::~CSubConSBLPR5ExtensionParamSet() |
|
214 { |
|
215 iFlowIds.Close(); |
|
216 } |
|
217 |
|
218 CSubConSBLPR5ExtensionParamSet* CSubConSBLPR5ExtensionParamSet::NewL(CSubConParameterFamily& aFamily, CSubConParameterFamily::TParameterSetType aType) |
|
219 { |
|
220 CSubConSBLPR5ExtensionParamSet* sblpExtn = NewL(); |
|
221 CleanupStack::PushL(sblpExtn); |
|
222 aFamily.AddExtensionSetL(*sblpExtn, aType); |
|
223 CleanupStack::Pop(sblpExtn); |
|
224 return sblpExtn; |
|
225 } |
|
226 CSubConSBLPR5ExtensionParamSet* CSubConSBLPR5ExtensionParamSet::NewL() |
|
227 { |
|
228 STypeId typeId = STypeId::CreateSTypeId(KSubConIPParamsUid, KSubConnSBLPR5ExtensionParamsType); |
|
229 return static_cast<CSubConSBLPR5ExtensionParamSet*>(CSubConParameterSet::NewL(typeId)); |
|
230 } |
|
231 |
|
232 const TAuthToken& CSubConSBLPR5ExtensionParamSet::GetMAT() const |
|
233 { |
|
234 return iAuthToken; |
|
235 } |
|
236 |
|
237 void CSubConSBLPR5ExtensionParamSet::SetMAT(const TAuthToken& aAuthToken) |
|
238 { |
|
239 iAuthToken = aAuthToken; |
|
240 } |
|
241 |
|
242 TInt CSubConSBLPR5ExtensionParamSet::GetNumberOfFlowIds() const |
|
243 { |
|
244 return iFlowIds.Count(); |
|
245 } |
|
246 |
|
247 const TFlowId& CSubConSBLPR5ExtensionParamSet::GetFlowIdAt(TInt aIndex) const |
|
248 { |
|
249 return iFlowIds[aIndex]; |
|
250 } |
|
251 |
|
252 void CSubConSBLPR5ExtensionParamSet::AddFlowIdL(const TFlowId & aFlowId) |
|
253 { |
|
254 iFlowIds.AppendL(aFlowId); |
|
255 } |
|
256 #endif |
|
257 // SYMBIAN_NETWORKING_3GPPDEFAULTQOS |
|
258 |
|
259 #endif |
|
260 // __IP_SUBCONPARAMS_INL__ |
|
261 |