24
|
1 |
// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
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 |
// PDP SubConnection Provider class definition.
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
/**
|
|
19 |
@file
|
|
20 |
@internalComponent
|
|
21 |
*/
|
|
22 |
|
|
23 |
#ifndef SYMBIAN_PDPPARAMMAPPER_H
|
|
24 |
#define SYMBIAN_PDPPARAMMAPPER_H
|
|
25 |
|
|
26 |
#include <etelqos.h>
|
|
27 |
#include <comms-infras/ss_parameterfamilybundle.h>
|
|
28 |
|
|
29 |
#include <networking/qos3gpp_subconparams.h>
|
|
30 |
#include <cs_subconparams.h>
|
|
31 |
#include <cs_subconevents.h>
|
|
32 |
|
|
33 |
class MPDPParamMapper
|
|
34 |
/** Aggegation of the QoS parameter mapping methods.
|
|
35 |
|
|
36 |
@internalTechnology
|
|
37 |
@released Since 9.4 */
|
|
38 |
{
|
|
39 |
public:
|
|
40 |
|
|
41 |
enum TQosParameterRelease
|
|
42 |
{
|
|
43 |
KParameterRelInvalid = 0,
|
|
44 |
KParameterRelGeneric = 1,
|
|
45 |
KParameterRel4Rel99 = 4,
|
|
46 |
KParameterRel5 = 5,
|
|
47 |
};
|
|
48 |
/**
|
|
49 |
Scans given parameter bundle for supported parameter sets
|
|
50 |
The first one found gets converted to RPacketQoS::TQoSR5Requested.
|
|
51 |
The supported parameter sets are (in order of priority):
|
|
52 |
1) KSubConQosR5ParamsType
|
|
53 |
2) KSubConQosR99ParamsType
|
|
54 |
3) Generic QoS
|
|
55 |
|
|
56 |
@param aIn RCFParameterFamilyBundle to be converted.
|
|
57 |
@param aOut RPacketQoS::TQoSR5Requested to be populated from aIn
|
|
58 |
@exception KErrNotSupported - if CUmtsGprsSubConnProvd does not support conversion from what's
|
|
59 |
in the supplied parameter bundle.
|
|
60 |
*/
|
|
61 |
static TQosParameterRelease MapQosParamBundleToEtelL(const ESock::RCFParameterFamilyBundleC& aIn,
|
|
62 |
RPacketQoS::TQoSR5Requested& aOut);
|
|
63 |
|
|
64 |
/**
|
|
65 |
Maps QoS parameters received from the network via Etel into a CSubConGenEventParamsGranted class
|
|
66 |
for client event notification.
|
|
67 |
|
|
68 |
@param aNetworkQoS - A pointer to an Etel TPacketDataConfigBase class containing the
|
|
69 |
QoS to be mapped into the event.
|
|
70 |
@param aGranted - A reference to the CSubConGenEventParamsGranted object that should receive the mapped
|
|
71 |
QoS parameters.
|
|
72 |
*/
|
|
73 |
static void MapQosEtelToGrantedParamsL(TPacketDataConfigBase* aNetworkQoS,
|
|
74 |
CSubConGenEventParamsGranted& aGranted,
|
|
75 |
TQosParameterRelease aRequestedRelease);
|
|
76 |
|
|
77 |
static TBool QoSRequested(const ESock::RCFParameterFamilyBundleC& aIn);
|
|
78 |
|
|
79 |
protected:
|
|
80 |
//-===================================================
|
|
81 |
//
|
|
82 |
// To Etel mappers
|
|
83 |
//
|
|
84 |
//-===================================================
|
|
85 |
static void MapQosR99ExtensionSetToEtel(const CSubConQosR99ParamSet& aInRequested,
|
|
86 |
const CSubConQosR99ParamSet* aInAcceptable,
|
|
87 |
RPacketQoS::TQoSR99_R4Requested& aOut);
|
|
88 |
|
|
89 |
static void MapQosR5ExtensionSetToEtel( const CSubConQosR5ParamSet& aInRequested,
|
|
90 |
const CSubConQosR5ParamSet* aInAcceptable,
|
|
91 |
RPacketQoS::TQoSR5Requested& aOut);
|
|
92 |
|
|
93 |
static void MapQosGenericSetToEtel( const CSubConQosGenericParamSet& aInRequested,
|
|
94 |
const CSubConQosGenericParamSet* aInAcceptable,
|
|
95 |
RPacketQoS::TQoSR99_R4Requested& aOut);
|
|
96 |
/**
|
|
97 |
Given a set of generic parameters, the method derives the R99 value for the traffic class.
|
|
98 |
|
|
99 |
@param aIn requested CSubConQosGenericParamSet to be converted
|
|
100 |
@return the value of RPacketQoS::TTrafficClass
|
|
101 |
*/
|
|
102 |
static RPacketQoS::TTrafficClass DeriveTrafficClass(const CSubConQosGenericParamSet& aIn );
|
|
103 |
|
|
104 |
/**
|
|
105 |
Given a set of generic parameters, the method derives the R99 value for the traffic priority.
|
|
106 |
|
|
107 |
@param aIn requested CSubConQosGenericParamSet to be converted
|
|
108 |
@return the value of RPacketQoS::TTrafficHandlingPriority
|
|
109 |
*/
|
|
110 |
static RPacketQoS::TTrafficHandlingPriority DeriveTrafficPriority(const CSubConQosGenericParamSet& aIn, TUint aTrafficClass );
|
|
111 |
|
|
112 |
//-===================================================
|
|
113 |
//
|
|
114 |
// From Etel mappers
|
|
115 |
//
|
|
116 |
//-===================================================
|
|
117 |
static void MapQosEtelToGenericSetL(RPacketQoS::TQoSR99_R4Negotiated* aNetworkQoS,
|
|
118 |
CSubConGenEventParamsGranted& aGranted);
|
|
119 |
static void MapQosEtelToR99SetL(RPacketQoS::TQoSR99_R4Negotiated* aNetworkQoS,
|
|
120 |
CSubConGenEventParamsGranted& aGranted);
|
|
121 |
static void MapQosEtelToR5SetL(RPacketQoS::TQoSR5Negotiated* aNetworkQoS,
|
|
122 |
CSubConGenEventParamsGranted& aGranted);
|
|
123 |
|
|
124 |
};
|
|
125 |
|
|
126 |
#endif //SYMBIAN_PDPPARAMMAPPER_H
|