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