author | ivan.fildichev@opencode.com |
Thu, 18 Nov 2010 15:42:16 +0200 | |
branch | opencode |
changeset 88 | 5e27cc612ac7 |
parent 32 | 58332560b319 |
permissions | -rw-r--r-- |
32
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
1 |
// Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). |
24 | 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 |
// Header file for the 3GPP SubConnection Extension Parameters |
|
15 |
// |
|
16 |
// |
|
17 |
||
18 |
/** |
|
19 |
@file |
|
20 |
@publishedAll |
|
21 |
@released |
|
22 |
*/ |
|
23 |
||
24 |
||
25 |
#ifndef QOS3GPP_SUBCONPARAMS_H |
|
26 |
#define QOS3GPP_SUBCONPARAMS_H |
|
27 |
||
28 |
#include <es_sock.h> |
|
29 |
||
30 |
#ifndef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
31 |
#include <etelqos.h> |
|
32 |
#else |
|
33 |
#include <eteldefaultqos.h> |
|
34 |
#endif |
|
35 |
#include <comms-infras/es_parameterfamily.h> |
|
36 |
||
37 |
const TInt KSubCon3GPPExtParamsFactoryUid = 0x1020D460; |
|
38 |
const TInt KSubConQosR99ParamsType = 1; |
|
39 |
const TInt KSubConnSBLPR5ExtensionParamsType = 2; |
|
40 |
||
41 |
||
42 |
#ifdef SYMBIAN_NETWORKING_UMTSR5 |
|
43 |
const TInt KSubConQosR5ParamsType =3; |
|
44 |
const TInt KSubConImsExtParamsType = 4; |
|
45 |
#endif |
|
46 |
// SYMBIAN_NETWORKING_UMTSR5 |
|
47 |
||
48 |
/** Constant definitions particular to the Generic Parameters. */ |
|
49 |
const TInt KMAuthTokenLength = 255; |
|
50 |
/** Typedef for the AuthToken Holder. */ |
|
51 |
typedef TBuf8<KMAuthTokenLength> TAuthToken; |
|
52 |
||
53 |
/** Provides Implementation of IP QoS Parameters |
|
54 |
||
55 |
@publishedAll |
|
56 |
@released Since 9.3 |
|
57 |
*/ |
|
58 |
//SMetaDataECom must be the first in the superclasses' list |
|
59 |
class CSubConQosR99ParamSet : public CSubConExtensionParameterSet |
|
60 |
{ |
|
61 |
public: |
|
62 |
enum |
|
63 |
{ |
|
64 |
EUid = KSubCon3GPPExtParamsFactoryUid, |
|
65 |
EId = KSubConQosR99ParamsType, |
|
66 |
}; |
|
67 |
public: |
|
68 |
inline static CSubConQosR99ParamSet* NewL(CSubConParameterFamily& aFamily, CSubConParameterFamily::TParameterSetType aType); |
|
69 |
inline static CSubConQosR99ParamSet* NewL(RParameterFamily& aFamily, RParameterFamily::TParameterSetType aType); |
|
70 |
inline static CSubConQosR99ParamSet* NewL(); |
|
71 |
||
72 |
inline CSubConQosR99ParamSet(); |
|
73 |
||
74 |
inline RPacketQoS::TTrafficClass GetTrafficClass() const; |
|
75 |
inline RPacketQoS::TDeliveryOrder GetDeliveryOrder() const; |
|
76 |
inline RPacketQoS::TErroneousSDUDelivery GetErroneousSDUDelivery() const; |
|
77 |
inline RPacketQoS::TBitErrorRatio GetResidualBitErrorRatio() const; |
|
78 |
inline RPacketQoS::TSDUErrorRatio GetSDUErrorRatio() const; |
|
79 |
inline RPacketQoS::TTrafficHandlingPriority GetTrafficHandlingPriority() const; |
|
80 |
inline TInt GetTransferDelay() const; |
|
81 |
inline TInt GetMaxSduSize() const; |
|
82 |
inline TInt GetMaxBitrateUplink() const; |
|
83 |
inline TInt GetMaxBitrateDownlink() const; |
|
84 |
inline TInt GetGuaBitrateUplink() const; |
|
85 |
inline TInt GetGuaBitrateDownlink() const; |
|
86 |
inline void SetTrafficClass(RPacketQoS::TTrafficClass aTrafficClass); |
|
87 |
inline void SetDeliveryOrder(RPacketQoS::TDeliveryOrder aDeliveryOrder); |
|
88 |
inline void SetErroneousSDUDelivery(RPacketQoS::TErroneousSDUDelivery aDeliveryOfErroneusSdu); |
|
89 |
inline void SetResidualBitErrorRatio(RPacketQoS::TBitErrorRatio aResidualBer); |
|
90 |
inline void SetSDUErrorRatio(RPacketQoS::TSDUErrorRatio aErrorRatio); |
|
91 |
inline void SetTrafficHandlingPriority(RPacketQoS::TTrafficHandlingPriority aPriority); |
|
92 |
inline void SetTransferDelay(TInt aTransferDelay); |
|
93 |
inline void SetMaxSduSize(TInt aMaxSduSize); |
|
94 |
inline void SetMaxBitrateUplink(TInt aMaxBitrateUplink); |
|
95 |
inline void SetMaxBitrateDownlink(TInt aMaxBitrateDownlink); |
|
96 |
inline void SetGuaBitrateUplink(TInt aGuaBitrateUplink); |
|
97 |
inline void SetGuaBitrateDownlink(TInt aGuaBitrateDownlink); |
|
98 |
||
99 |
protected: |
|
100 |
||
101 |
DATA_VTABLE |
|
102 |
||
103 |
protected: |
|
104 |
RPacketQoS::TTrafficClass iTrafficClass; // Traffic class |
|
105 |
RPacketQoS::TDeliveryOrder iDeliveryOrder; // Delivery order |
|
106 |
RPacketQoS::TErroneousSDUDelivery iDeliveryOfErroneusSdu; // Delivery of erroneous SDUs |
|
107 |
RPacketQoS::TBitErrorRatio iResidualBer; // Residual BER |
|
108 |
RPacketQoS::TSDUErrorRatio iErrorRatio; // SDU error ratio |
|
109 |
RPacketQoS::TTrafficHandlingPriority iPriority; // Traffic handling priority |
|
110 |
TInt iTransferDelay; // Transfer delay |
|
111 |
TInt iMaxSduSize; // Maximum SDU size |
|
112 |
TInt iMaxBitrateUplink; // Maximum bit rate for uplink |
|
113 |
TInt iMaxBitrateDownlink; // Maximum bit rate for downlink |
|
114 |
TInt iGuaBitrateUplink; // Guaranteed bit rate for uplink |
|
115 |
TInt iGuaBitrateDownlink; // Guaranteed bit rate for downlink |
|
116 |
}; |
|
117 |
||
118 |
||
119 |
||
120 |
||
121 |
#ifdef SYMBIAN_NETWORKING_UMTSR5 |
|
122 |
||
123 |
/** Extension QoS Parameter Set for UMTS Release 5 */ |
|
124 |
||
125 |
class CSubConImsExtParamSet : public CSubConExtensionParameterSet |
|
126 |
{ |
|
127 |
public: |
|
128 |
enum |
|
129 |
{ |
|
130 |
EUid = KSubCon3GPPExtParamsFactoryUid, |
|
131 |
EId = KSubConImsExtParamsType, |
|
132 |
}; |
|
133 |
public: |
|
134 |
inline static CSubConImsExtParamSet* NewL(CSubConParameterFamily& aFamily,CSubConParameterFamily::TParameterSetType aType); |
|
135 |
inline static CSubConImsExtParamSet* NewL(RParameterFamily& aFamily,RParameterFamily::TParameterSetType aType); |
|
136 |
inline static CSubConImsExtParamSet* NewL(); |
|
137 |
inline CSubConImsExtParamSet(); |
|
138 |
||
139 |
// New IM CN Signalling Indicator |
|
140 |
inline TBool GetImsSignallingIndicator() const; |
|
141 |
inline void SetImsSignallingIndicator(TBool aIMSSignallingIndicator); |
|
142 |
protected: |
|
143 |
DATA_VTABLE |
|
144 |
||
145 |
private: |
|
146 |
// IMSSignallingIndicator for raised priority of traffic |
|
147 |
TBool iImsSignallingIndicator; |
|
148 |
}; |
|
149 |
||
150 |
class CSubConQosR5ParamSet : public CSubConQosR99ParamSet |
|
151 |
{ |
|
152 |
public: |
|
153 |
enum |
|
154 |
{ |
|
155 |
EUid = KSubCon3GPPExtParamsFactoryUid, |
|
156 |
EId = KSubConQosR5ParamsType, |
|
157 |
}; |
|
158 |
||
159 |
public: |
|
160 |
inline static CSubConQosR5ParamSet* NewL(CSubConParameterFamily& aFamily,CSubConParameterFamily::TParameterSetType aType); |
|
161 |
inline static CSubConQosR5ParamSet* NewL(RParameterFamily& aFamily,RParameterFamily::TParameterSetType aType); |
|
162 |
inline static CSubConQosR5ParamSet* NewL(); |
|
163 |
inline CSubConQosR5ParamSet(); |
|
164 |
||
165 |
inline TBool GetSignallingIndicator() const; |
|
166 |
inline void SetSignallingIndicator(TBool aSignallingIndicator); |
|
167 |
inline RPacketQoS::TSourceStatisticsDescriptor GetSourceStatisticsDescriptor() const; |
|
168 |
inline void SetSourceStatisticsDescriptor(RPacketQoS::TSourceStatisticsDescriptor aSrcStatsDescType); |
|
169 |
||
170 |
protected: |
|
171 |
DATA_VTABLE |
|
172 |
||
173 |
private: |
|
174 |
// Source Statistics Descriptor |
|
175 |
RPacketQoS::TSourceStatisticsDescriptor iSrcStatsDesc; |
|
176 |
TBool iSignallingIndicator; |
|
177 |
||
178 |
}; |
|
179 |
||
180 |
#endif |
|
181 |
// SYMBIAN_NETWORKING_UMTSR5 |
|
182 |
||
183 |
||
184 |
||
185 |
/** Flow Identifires |
|
186 |
ECOM Implementation Id for SBLP Extension parameters. |
|
187 |
||
188 |
@publishedAll |
|
189 |
@released Since 9.3 |
|
190 |
*/ |
|
191 |
struct TFlowId |
|
192 |
{ |
|
193 |
/** Getter Function for the Components of Flow ids. */ |
|
194 |
inline TUint16 GetMediaComponentNumber() const; |
|
195 |
inline TUint16 GetIPFlowNumber() const; |
|
196 |
/** Setter Function For Flow Id Components. */ |
|
197 |
inline void SetMediaComponentNumber(TUint16 aMediaComponentNumber); |
|
198 |
inline void SetIPFlowNumber(TUint16 aIPFlowNumber); |
|
199 |
||
200 |
private: |
|
201 |
TUint16 iMediaComponentNumber; |
|
202 |
TUint16 iIPFlowNumber; |
|
203 |
}; |
|
204 |
||
205 |
typedef RArray<TFlowId> RFlowIdentifiers; |
|
206 |
||
207 |
/** Extension Parameter Sets, Consise of MAT and FI(s). |
|
208 |
Provides Implementation of Extension parameters of the SBLP Family. |
|
209 |
||
210 |
@publishedAll |
|
211 |
@released Since 9.3 |
|
212 |
*/ |
|
213 |
class CSubConSBLPR5ExtensionParamSet : public CSubConExtensionParameterSet |
|
214 |
{ |
|
215 |
public: |
|
216 |
enum |
|
217 |
{ |
|
218 |
EUid = KSubCon3GPPExtParamsFactoryUid, |
|
219 |
EId = KSubConnSBLPR5ExtensionParamsType, |
|
220 |
}; |
|
221 |
||
222 |
||
223 |
public: |
|
224 |
inline static CSubConSBLPR5ExtensionParamSet* NewL(CSubConParameterFamily& aFamily, CSubConParameterFamily::TParameterSetType aType); |
|
225 |
inline static CSubConSBLPR5ExtensionParamSet* NewL(RParameterFamily& aFamily, RParameterFamily::TParameterSetType aType); |
|
226 |
inline static CSubConSBLPR5ExtensionParamSet* NewL(); |
|
227 |
||
228 |
/** Media Authorization Token setter and getter functions. */ |
|
229 |
inline const TAuthToken& GetMAT() const; |
|
230 |
inline void SetMAT(const TAuthToken& aAuthToken); |
|
231 |
||
232 |
/** Flow identifires setter and getter functions. */ |
|
233 |
inline TInt GetNumberOfFlowIds() const; |
|
234 |
inline const TFlowId& GetFlowIdAt(TInt aIndex) const; |
|
235 |
||
236 |
/** Adding of Flow Identifires into an array. */ |
|
237 |
inline void AddFlowIdL(const TFlowId& aFlowId); |
|
238 |
||
239 |
/** public constructors so that it can be accessed by factory. */ |
|
240 |
inline CSubConSBLPR5ExtensionParamSet(); |
|
241 |
inline ~CSubConSBLPR5ExtensionParamSet(); |
|
242 |
||
243 |
protected: |
|
244 |
DATA_VTABLE |
|
245 |
||
246 |
/** Single Media Authorization Token (MAT). */ |
|
247 |
TAuthToken iAuthToken; |
|
248 |
||
249 |
/** Multiple Flow Identifiers. */ |
|
250 |
RFlowIdentifiers iFlowIds; |
|
251 |
}; |
|
252 |
||
253 |
#ifndef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
32
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
254 |
#include <networking/qos3gpp_subconparams_factory.h> |
24 | 255 |
#endif |
256 |
||
257 |
#include <networking/qos3gpp_subconparams.inl> |
|
258 |
||
259 |
#endif |
|
260 |
// QOS3GPP_SUBCONPARAMS_H |