1 /** |
1 /** |
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
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 |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
8 * |
8 * |
9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
17 * |
17 * |
18 */ |
18 */ |
19 |
19 |
20 |
20 |
21 |
21 |
22 |
|
23 |
|
24 /** |
22 /** |
25 @file ip_subconparams.h |
23 @file ip_subconparams.h |
26 */ |
24 */ |
27 |
25 |
28 #ifndef __IP_SUBCONPARAMS_H__ |
26 #ifndef __IP_SUBCONPARAMS_H__ |
29 #define __IP_SUBCONPARAMS_H__ |
27 #define __IP_SUBCONPARAMS_H__ |
30 |
28 |
31 #include <es_sock.h> |
29 #include <es_sock.h> |
32 #include <comms-infras/metadata.h> |
30 #include <networking/Qos3GPP_subconparams.h> |
33 #include <comms-infras/metatype.h> |
31 |
34 #include <etelqos.h> |
32 |
35 |
|
36 |
|
37 // NOTE: This Uid may be changed - See #ifdef at bottom of the file |
33 // NOTE: This Uid may be changed - See #ifdef at bottom of the file |
38 const TInt KSubConIPParamsUid = 0x10204309; |
34 const TInt KSubConIPParamsUid = 0x10204309; |
|
35 |
39 const TInt KSubConQosIPLinkR99ParamsType = 1; |
36 const TInt KSubConQosIPLinkR99ParamsType = 1; |
40 |
|
41 |
37 |
42 #ifdef SYMBIAN_NETWORKING_3GPPDEFAULTQOS |
38 #ifdef SYMBIAN_NETWORKING_3GPPDEFAULTQOS |
43 #include <networking/qos3gpp_subconparams.h> |
39 #include <networking/qos3gpp_subconparams.h> |
44 |
40 |
45 #else |
41 #else |
46 const TInt KSubConnSBLPR5ExtensionParamsType = 2; |
42 const TInt KSubConnSBLPR5ExtensionParamsType = 2; |
47 |
|
48 |
43 |
49 /** Constant definitions particular to the Generic Parameters. */ |
44 /** Constant definitions particular to the Generic Parameters. */ |
50 const TInt KMAuthTokenLength = 255; |
45 const TInt KMAuthTokenLength = 255; |
51 /** Typedef for the AuthToken Holder. */ |
46 /** Typedef for the AuthToken Holder. */ |
52 typedef TBuf8<KMAuthTokenLength> TAuthToken; |
47 typedef TBuf8<KMAuthTokenLength> TAuthToken; |
53 |
48 #endif |
54 #if defined(SYMBIAN_NETWORKING_UMTSR5) && !defined(SYMBIAN_NETWORKING_3GPPDEFAULTQOS) |
|
55 #pragma message("SYMBIAN_NETWORKING_UMTSR5 cannot be defined without SYMBIAN_NETWORKING_3GPPDEFAULTQOS") |
|
56 #endif |
|
57 // SYMBIAN_NETWORKING_UMTSR5 |
|
58 |
|
59 |
|
60 #endif |
|
61 |
|
62 |
49 |
63 #ifdef SYMBIAN_NETWORKING_3GPPDEFAULTQOS |
50 #ifdef SYMBIAN_NETWORKING_3GPPDEFAULTQOS |
64 /** Provides Implementation of IP QoS Parameters |
51 /** Provides Implementation of IP QoS Parameters |
65 |
52 |
66 @publishedAll |
53 @publishedAll |
67 @released since v9.1 |
54 @released since v9.1 |
68 @deprecated from v9.2 onwards. Use CSubConQosR99ParamSet from Qos3GPP_Subconparams.h instead. |
55 @deprecated Since Intulo. Use CSubConQosR99ParamSet from Qos3GPP_Subconparams.h instead. |
69 */ |
56 */ |
70 #else |
57 #else |
71 /** Provides Implementation of IP QoS Parameters |
58 /** Provides Implementation of IP QoS Parameters |
72 |
59 |
73 @publishedAll |
60 @publishedAll |
74 @released since v9.1 |
61 @released since v9.1 |
75 */#endif |
62 */ |
|
63 #endif |
|
64 |
76 class CSubConQosIPLinkR99ParamSet : public CSubConExtensionParameterSet |
65 class CSubConQosIPLinkR99ParamSet : public CSubConExtensionParameterSet |
77 { |
66 { |
78 public: |
67 public: |
79 inline static CSubConQosIPLinkR99ParamSet* NewL(CSubConParameterFamily& aFamily, CSubConParameterFamily::TParameterSetType aType); |
68 inline static CSubConQosIPLinkR99ParamSet* NewL(CSubConParameterFamily& aFamily, CSubConParameterFamily::TParameterSetType aType); |
|
69 inline static CSubConQosIPLinkR99ParamSet* NewL(RParameterFamily& aFamily, RParameterFamily::TParameterSetType aType); |
80 inline static CSubConQosIPLinkR99ParamSet* NewL(); |
70 inline static CSubConQosIPLinkR99ParamSet* NewL(); |
81 |
71 |
82 inline CSubConQosIPLinkR99ParamSet(); |
72 inline CSubConQosIPLinkR99ParamSet(); |
83 |
73 |
84 inline RPacketQoS::TTrafficClass GetTrafficClass() const; |
74 inline RPacketQoS::TTrafficClass GetTrafficClass() const; |
156 @released since v9.1 */ |
147 @released since v9.1 */ |
157 class CSubConSBLPR5ExtensionParamSet : public CSubConExtensionParameterSet |
148 class CSubConSBLPR5ExtensionParamSet : public CSubConExtensionParameterSet |
158 { |
149 { |
159 public: |
150 public: |
160 inline static CSubConSBLPR5ExtensionParamSet* NewL(CSubConParameterFamily& aFamily, CSubConParameterFamily::TParameterSetType aType); |
151 inline static CSubConSBLPR5ExtensionParamSet* NewL(CSubConParameterFamily& aFamily, CSubConParameterFamily::TParameterSetType aType); |
|
152 inline static CSubConSBLPR5ExtensionParamSet* NewL(RParameterFamily& aFamily, RParameterFamily::TParameterSetType aType); |
161 inline static CSubConSBLPR5ExtensionParamSet* NewL(); |
153 inline static CSubConSBLPR5ExtensionParamSet* NewL(); |
162 |
154 |
163 /** Media Authorization Token setter and getter functions. */ |
155 /** Media Authorization Token setter and getter functions. */ |
164 inline const TAuthToken& GetMAT() const; |
156 inline const TAuthToken& GetMAT() const; |
165 inline void SetMAT(const TAuthToken& aAuthToken); |
157 inline void SetMAT(const TAuthToken& aAuthToken); |
202 static CSubConExtensionParameterSet* NewL(TAny* aConstructionParameters); |
190 static CSubConExtensionParameterSet* NewL(TAny* aConstructionParameters); |
203 }; |
191 }; |
204 |
192 |
205 #include <ip_subconparams.inl> |
193 #include <ip_subconparams.inl> |
206 |
194 |
207 |
|
208 |
|
209 #ifdef SYMBIAN_NETWORKING_3GPPDEFAULTQOS |
195 #ifdef SYMBIAN_NETWORKING_3GPPDEFAULTQOS |
210 /* |
196 /* |
211 Umts QoS extension classes have been relocated to the UmtsGprsSCPR component. |
197 Umts QoS extension classes have been relocated to the UmtsGprsSCPR component. |
212 So now we need to make sure that the correct class factory TUid, class name, |
198 So now we need to make sure that the correct class factory TUid, class name, |
213 and class Id are used |
199 and class Id are used |