|
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(RParameterFamily& aFamily, RParameterFamily::TParameterSetType aType) |
|
42 { |
|
43 CSubConQosIPLinkR99ParamSet* obj = NewL(); |
|
44 CleanupStack::PushL(obj); |
|
45 aFamily.AddParameterSetL(obj, aType); |
|
46 CleanupStack::Pop(obj); |
|
47 return obj; |
|
48 } |
|
49 |
|
50 CSubConQosIPLinkR99ParamSet* CSubConQosIPLinkR99ParamSet::NewL() |
|
51 { |
|
52 STypeId typeId = STypeId::CreateSTypeId(KSubConIPParamsUid, KSubConQosIPLinkR99ParamsType); |
|
53 return static_cast<CSubConQosIPLinkR99ParamSet*>(CSubConParameterSet::NewL(typeId)); |
|
54 } |
|
55 |
|
56 CSubConQosIPLinkR99ParamSet::CSubConQosIPLinkR99ParamSet() |
|
57 : CSubConExtensionParameterSet(), |
|
58 iTrafficClass(RPacketQoS::ETrafficClassUnspecified), |
|
59 iDeliveryOrder(RPacketQoS::EDeliveryOrderUnspecified), |
|
60 iDeliveryOfErroneusSdu(RPacketQoS::EErroneousSDUDeliveryUnspecified), |
|
61 iResidualBer(RPacketQoS::EBERUnspecified), |
|
62 iErrorRatio(RPacketQoS::ESDUErrorRatioUnspecified), |
|
63 iPriority(RPacketQoS::ETrafficPriorityUnspecified), |
|
64 iTransferDelay(0), |
|
65 iMaxSduSize(0), |
|
66 iMaxBitrateUplink(0), |
|
67 iMaxBitrateDownlink(0), |
|
68 iGuaBitrateUplink(0), |
|
69 iGuaBitrateDownlink(0) |
|
70 { |
|
71 } |
|
72 |
|
73 RPacketQoS::TTrafficClass CSubConQosIPLinkR99ParamSet::GetTrafficClass() const |
|
74 { |
|
75 return iTrafficClass; |
|
76 } |
|
77 |
|
78 RPacketQoS::TDeliveryOrder CSubConQosIPLinkR99ParamSet::GetDeliveryOrder() const |
|
79 { |
|
80 return iDeliveryOrder; |
|
81 } |
|
82 |
|
83 RPacketQoS::TErroneousSDUDelivery CSubConQosIPLinkR99ParamSet::GetErroneousSDUDelivery() const |
|
84 { |
|
85 return iDeliveryOfErroneusSdu; |
|
86 } |
|
87 |
|
88 RPacketQoS::TBitErrorRatio CSubConQosIPLinkR99ParamSet::GetResidualBitErrorRatio() const |
|
89 { |
|
90 return iResidualBer; |
|
91 } |
|
92 |
|
93 RPacketQoS::TSDUErrorRatio CSubConQosIPLinkR99ParamSet::GetSDUErrorRatio() const |
|
94 { |
|
95 return iErrorRatio; |
|
96 } |
|
97 |
|
98 RPacketQoS::TTrafficHandlingPriority CSubConQosIPLinkR99ParamSet::GetTrafficHandlingPriority() const |
|
99 { |
|
100 return iPriority; |
|
101 } |
|
102 |
|
103 TInt CSubConQosIPLinkR99ParamSet::GetTransferDelay() const |
|
104 { |
|
105 return iTransferDelay; |
|
106 } |
|
107 |
|
108 TInt CSubConQosIPLinkR99ParamSet::GetMaxSduSize() const |
|
109 { |
|
110 return iMaxSduSize; |
|
111 } |
|
112 |
|
113 TInt CSubConQosIPLinkR99ParamSet::GetMaxBitrateUplink() const |
|
114 { |
|
115 return iMaxBitrateUplink; |
|
116 } |
|
117 |
|
118 TInt CSubConQosIPLinkR99ParamSet::GetMaxBitrateDownlink() const |
|
119 { |
|
120 return iMaxBitrateDownlink; |
|
121 } |
|
122 |
|
123 TInt CSubConQosIPLinkR99ParamSet::GetGuaBitrateUplink() const |
|
124 { |
|
125 return iGuaBitrateUplink; |
|
126 } |
|
127 |
|
128 TInt CSubConQosIPLinkR99ParamSet::GetGuaBitrateDownlink() const |
|
129 { |
|
130 return iGuaBitrateDownlink; |
|
131 } |
|
132 |
|
133 void CSubConQosIPLinkR99ParamSet::SetTrafficClass(RPacketQoS::TTrafficClass aTrafficClass) |
|
134 { |
|
135 iTrafficClass = aTrafficClass; |
|
136 } |
|
137 |
|
138 void CSubConQosIPLinkR99ParamSet::SetDeliveryOrder(RPacketQoS::TDeliveryOrder aDeliveryOrder) |
|
139 { |
|
140 iDeliveryOrder = aDeliveryOrder; |
|
141 } |
|
142 |
|
143 void CSubConQosIPLinkR99ParamSet::SetErroneousSDUDelivery(RPacketQoS::TErroneousSDUDelivery aDeliveryOfErroneusSdu) |
|
144 { |
|
145 iDeliveryOfErroneusSdu = aDeliveryOfErroneusSdu; |
|
146 } |
|
147 |
|
148 void CSubConQosIPLinkR99ParamSet::SetResidualBitErrorRatio(RPacketQoS::TBitErrorRatio aResidualBer) |
|
149 { |
|
150 iResidualBer = aResidualBer; |
|
151 } |
|
152 |
|
153 void CSubConQosIPLinkR99ParamSet::SetSDUErrorRatio(RPacketQoS::TSDUErrorRatio aErrorRatio) |
|
154 { |
|
155 iErrorRatio = aErrorRatio; |
|
156 } |
|
157 |
|
158 void CSubConQosIPLinkR99ParamSet::SetTrafficHandlingPriority(RPacketQoS::TTrafficHandlingPriority aPriority) |
|
159 { |
|
160 iPriority = aPriority; |
|
161 } |
|
162 |
|
163 void CSubConQosIPLinkR99ParamSet::SetTransferDelay(TInt aTransferDelay) |
|
164 { |
|
165 iTransferDelay = aTransferDelay; |
|
166 } |
|
167 |
|
168 void CSubConQosIPLinkR99ParamSet::SetMaxSduSize(TInt aMaxSduSize) |
|
169 { |
|
170 iMaxSduSize = aMaxSduSize; |
|
171 } |
|
172 |
|
173 void CSubConQosIPLinkR99ParamSet::SetMaxBitrateUplink(TInt aMaxBitrateUplink) |
|
174 { |
|
175 iMaxBitrateUplink = aMaxBitrateUplink; |
|
176 } |
|
177 |
|
178 void CSubConQosIPLinkR99ParamSet::SetMaxBitrateDownlink(TInt aMaxBitrateDownlink) |
|
179 { |
|
180 iMaxBitrateDownlink = aMaxBitrateDownlink; |
|
181 } |
|
182 |
|
183 void CSubConQosIPLinkR99ParamSet::SetGuaBitrateUplink(TInt aGuaBitrateUplink) |
|
184 { |
|
185 iGuaBitrateUplink = aGuaBitrateUplink; |
|
186 } |
|
187 |
|
188 void CSubConQosIPLinkR99ParamSet::SetGuaBitrateDownlink(TInt aGuaBitrateDownlink) |
|
189 { |
|
190 iGuaBitrateDownlink = aGuaBitrateDownlink; |
|
191 } |
|
192 |
|
193 |
|
194 TUint16 TFlowId::GetMediaComponentNumber() const |
|
195 { |
|
196 return iMediaComponentNumber; |
|
197 } |
|
198 |
|
199 TUint16 TFlowId::GetIPFlowNumber() const |
|
200 { |
|
201 return iIPFlowNumber; |
|
202 } |
|
203 |
|
204 void TFlowId::SetMediaComponentNumber(TUint16 aMediaComponentNumber) |
|
205 { |
|
206 iMediaComponentNumber = aMediaComponentNumber; |
|
207 } |
|
208 |
|
209 void TFlowId::SetIPFlowNumber(TUint16 aIPFlowNumber) |
|
210 { |
|
211 iIPFlowNumber = aIPFlowNumber; |
|
212 } |
|
213 |
|
214 |
|
215 //=========================== |
|
216 // Implementation Extension class |
|
217 CSubConSBLPR5ExtensionParamSet::CSubConSBLPR5ExtensionParamSet() |
|
218 : CSubConExtensionParameterSet() |
|
219 { |
|
220 } |
|
221 |
|
222 CSubConSBLPR5ExtensionParamSet::~CSubConSBLPR5ExtensionParamSet() |
|
223 { |
|
224 iFlowIds.Close(); |
|
225 } |
|
226 |
|
227 CSubConSBLPR5ExtensionParamSet* CSubConSBLPR5ExtensionParamSet::NewL(CSubConParameterFamily& aFamily, CSubConParameterFamily::TParameterSetType aType) |
|
228 { |
|
229 CSubConSBLPR5ExtensionParamSet* sblpExtn = NewL(); |
|
230 CleanupStack::PushL(sblpExtn); |
|
231 aFamily.AddExtensionSetL(*sblpExtn, aType); |
|
232 CleanupStack::Pop(sblpExtn); |
|
233 return sblpExtn; |
|
234 } |
|
235 |
|
236 CSubConSBLPR5ExtensionParamSet* CSubConSBLPR5ExtensionParamSet::NewL(RParameterFamily& aFamily, RParameterFamily::TParameterSetType aType) |
|
237 { |
|
238 CSubConSBLPR5ExtensionParamSet* sblpExtn = NewL(); |
|
239 CleanupStack::PushL(sblpExtn); |
|
240 aFamily.AddParameterSetL(sblpExtn, aType); |
|
241 CleanupStack::Pop(sblpExtn); |
|
242 return sblpExtn; |
|
243 } |
|
244 CSubConSBLPR5ExtensionParamSet* CSubConSBLPR5ExtensionParamSet::NewL() |
|
245 { |
|
246 STypeId typeId = STypeId::CreateSTypeId(KSubConIPParamsUid, KSubConnSBLPR5ExtensionParamsType); |
|
247 return static_cast<CSubConSBLPR5ExtensionParamSet*>(CSubConParameterSet::NewL(typeId)); |
|
248 } |
|
249 |
|
250 const TAuthToken& CSubConSBLPR5ExtensionParamSet::GetMAT() const |
|
251 { |
|
252 return iAuthToken; |
|
253 } |
|
254 |
|
255 void CSubConSBLPR5ExtensionParamSet::SetMAT(const TAuthToken& aAuthToken) |
|
256 { |
|
257 iAuthToken = aAuthToken; |
|
258 } |
|
259 |
|
260 TInt CSubConSBLPR5ExtensionParamSet::GetNumberOfFlowIds() const |
|
261 { |
|
262 return iFlowIds.Count(); |
|
263 } |
|
264 |
|
265 const TFlowId& CSubConSBLPR5ExtensionParamSet::GetFlowIdAt(TInt aIndex) const |
|
266 { |
|
267 return iFlowIds[aIndex]; |
|
268 } |
|
269 |
|
270 void CSubConSBLPR5ExtensionParamSet::AddFlowIdL(const TFlowId & aFlowId) |
|
271 { |
|
272 iFlowIds.AppendL(aFlowId); |
|
273 } |
|
274 #endif |
|
275 // SYMBIAN_NETWORKING_3GPPDEFAULTQOS |
|
276 |
|
277 #endif |
|
278 // __IP_SUBCONPARAMS_INL__ |
|
279 |