epoc32/include/ip_subconparams.h
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
equal deleted inserted replaced
3:e1b950c65cb4 4:837f303aceeb
     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;
   123 	TInt									iMaxBitrateDownlink;	// Maximum bit rate for downlink
   113 	TInt									iMaxBitrateDownlink;	// Maximum bit rate for downlink
   124 	TInt									iGuaBitrateUplink;		// Guaranteed bit rate for uplink
   114 	TInt									iGuaBitrateUplink;		// Guaranteed bit rate for uplink
   125 	TInt									iGuaBitrateDownlink;	// Guaranteed bit rate for downlink
   115 	TInt									iGuaBitrateDownlink;	// Guaranteed bit rate for downlink
   126 	};
   116 	};
   127 
   117 
       
   118 
       
   119 
   128 #ifndef SYMBIAN_NETWORKING_3GPPDEFAULTQOS
   120 #ifndef SYMBIAN_NETWORKING_3GPPDEFAULTQOS
   129 
       
   130 
   121 
   131 /** Flow Identifires
   122 /** Flow Identifires
   132 ECOM Implementation Id for SBLP Extension parameters.
   123 ECOM Implementation Id for SBLP Extension parameters.
   133 
   124 
   134 @publishedAll
   125 @publishedAll
   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);
   183 	
   175 	
   184 	/** Multiple Flow Identifiers. */
   176 	/** Multiple Flow Identifiers. */
   185 	RFlowIdentifiers	iFlowIds;
   177 	RFlowIdentifiers	iFlowIds;
   186 	};
   178 	};
   187 #endif
   179 #endif
   188 
       
   189 
       
   190 
       
   191 
       
   192 
   180 
   193 /**
   181 /**
   194 Factory used to create instances of IP SubConnection Parameters.
   182 Factory used to create instances of IP SubConnection Parameters.
   195 
   183 
   196 @internalComponent
   184 @internalComponent
   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
   216 #define KSubConQosIPLinkR99ParamsType KSubConQosR99ParamsType
   202 #define KSubConQosIPLinkR99ParamsType KSubConQosR99ParamsType
   217 #define CSubConQosIPLinkR99ParamSet CSubConQosR99ParamSet
   203 #define CSubConQosIPLinkR99ParamSet CSubConQosR99ParamSet
   218 #endif
   204 #endif
   219 // SYMBIAN_NETWORKING_3GPPDEFAULTQOS
   205 // SYMBIAN_NETWORKING_3GPPDEFAULTQOS
   220 
   206 
   221 
       
   222 #endif
   207 #endif
   223 // __IP_SUBCONPARAMS_H__
   208 // __IP_SUBCONPARAMS_H__