CQoSParameters Class Reference

class CQoSParameters : public CBase

This class contains the generic QoS parameters and optional extensions.

Inherits from

Public Member Functions
CQoSParameters()
~CQoSParameters()
IMPORT_C TBoolAdaptMode()
IMPORT_C TIntAddExtensionL(CExtensionBase &)
IMPORT_C voidCopyL(CQoSParameters &)
IMPORT_C TQoSExtensionQueue &Extensions()
IMPORT_C CExtensionBase *FindExtension(TInt)
IMPORT_C TIntGetDownLinkAveragePacketSize()
IMPORT_C TIntGetDownLinkDelay()
IMPORT_C TIntGetDownLinkDelayVariation()
IMPORT_C TIntGetDownLinkMaximumBurstSize()
IMPORT_C TIntGetDownLinkMaximumPacketSize()
IMPORT_C TIntGetDownLinkPriority()
IMPORT_C TIntGetDownlinkBandwidth()
IMPORT_C TBoolGetHeaderMode()
IMPORT_C const TName &GetName()
IMPORT_C TIntGetUpLinkAveragePacketSize()
IMPORT_C TIntGetUpLinkDelay()
IMPORT_C TIntGetUpLinkDelayVariation()
IMPORT_C TIntGetUpLinkMaximumBurstSize()
IMPORT_C TIntGetUpLinkMaximumPacketSize()
IMPORT_C TIntGetUpLinkPriority()
IMPORT_C TIntGetUplinkBandwidth()
IMPORT_C TIntRemoveExtension(TInt)
IMPORT_C voidSetAdaptMode(TBool)
IMPORT_C voidSetDownLinkAveragePacketSize(TInt)
IMPORT_C voidSetDownLinkDelay(TInt)
IMPORT_C voidSetDownLinkDelayVariation(TInt)
IMPORT_C voidSetDownLinkMaximumBurstSize(TInt)
IMPORT_C voidSetDownLinkMaximumPacketSize(TInt)
IMPORT_C voidSetDownLinkPriority(TInt)
IMPORT_C voidSetDownlinkBandwidth(TInt)
IMPORT_C voidSetHeaderMode(TBool)
IMPORT_C voidSetName(const TName &)
IMPORT_C voidSetUpLinkAveragePacketSize(TInt)
IMPORT_C voidSetUpLinkDelay(TInt)
IMPORT_C voidSetUpLinkDelayVariation(TInt)
IMPORT_C voidSetUpLinkMaximumBurstSize(TInt)
IMPORT_C voidSetUpLinkMaximumPacketSize(TInt)
IMPORT_C voidSetUpLinkPriority(TInt)
IMPORT_C voidSetUplinkBandwidth(TInt)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Attributes
TQoSExtensionQueue iExtensionList
TName iName
TQoSParameters iQoS

Constructor & Destructor Documentation

CQoSParameters()

IMPORT_CCQoSParameters()

Constructor.

Default constructor.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.

~CQoSParameters()

IMPORT_C~CQoSParameters()

Destructor.

Destructor.

Deletes all extensions.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.

Member Functions Documentation

AdaptMode()

IMPORT_C TBoolAdaptMode()const

Returns the adaptation mode.

Gets the adaptation mode.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.

AddExtensionL(CExtensionBase &)

IMPORT_C TIntAddExtensionL(CExtensionBase &aExtension)

Copies the extension into the list of extensions. If there already exists an extension with the same type, it is replaced.

Exceptions
Leaves

if there is no memory available for the extension.

Copies the extension into the list of extensions.

If there already exists an extension with the same type, it is replaced.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.
leave
If there is no memory available for the extension.

Parameters

CExtensionBase & aExtensionThe extension that is added to the list of extenstions.

CopyL(CQoSParameters &)

IMPORT_C voidCopyL(CQoSParameters &aPolicy)

Copies the parameters and extensions from aPolicy into this object.

Exceptions
Leaves

if there is no memory available for extensions.

Copies the parameters and extensions from aFlowSpec into this object.

Any existing extensions are deleted.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.
leave
If there is no memory available for extensions.

Parameters

CQoSParameters & aPolicyContains the CQoSParameters object that is copied into this object.

Extensions()

IMPORT_C TQoSExtensionQueue &Extensions()

Returns a list of extensions that have been added to this object.

Gets a list of extensions that have been added to this object.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.

FindExtension(TInt)

IMPORT_C CExtensionBase *FindExtension(TIntaType)

Returns an extension with extension type aType.

Gets an extension with the specified extension type.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.

Parameters

TInt aTypeThe type of extension that is to be searched for from the list of extensions.

GetDownLinkAveragePacketSize()

IMPORT_C TIntGetDownLinkAveragePacketSize()const

Returns the average packet size for downlink direction. Average packet size is used as the smallest packet size when doing traffic policing and estimating effect of protocol headers.

Gets the average packet size for downlink direction.

Average packet size is used when doing traffic policing and estimating effect of protocol headers.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.

GetDownLinkDelay()

IMPORT_C TIntGetDownLinkDelay()const

Returns the delay for downlink direction.

Gets the delay for downlink direction.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.

GetDownLinkDelayVariation()

IMPORT_C TIntGetDownLinkDelayVariation()const

GetDownLinkMaximumBurstSize()

IMPORT_C TIntGetDownLinkMaximumBurstSize()const

Returns the maximum burst size for downlink direction. Maximum burst size defines the burst size that the application might send.

Gets the maximum burst size for downlink direction.

Maximum burst size defines the burst size that the application might send.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.

GetDownLinkMaximumPacketSize()

IMPORT_C TIntGetDownLinkMaximumPacketSize()const

Returns the maximum packet size for downlink direction.

Gets the maximum packet size for downlink direction.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.

GetDownLinkPriority()

IMPORT_C TIntGetDownLinkPriority()const

Returns the priority for downlink direction. Priority can be used to prioritise between traffic flows inside the terminal.

Gets the priority for downlink direction.

Priority can be used to prioritise between traffic flows inside the terminal.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.

GetDownlinkBandwidth()

IMPORT_C TIntGetDownlinkBandwidth()const

Returns the bandwidth for downlink direction. Bandwidth defines the requested transfer rate that the application requests.

Gets the bandwidth for downlink direction.

Bandwidth defines the requested transfer rate that the application requests.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.

GetHeaderMode()

IMPORT_C TBoolGetHeaderMode()const

Returns the headers included mode.

Returns the headers included mode.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.

GetName()

IMPORT_C const TName &GetName()const

Returns the name of the flowspec.

Gets the name of the flowspec.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.

GetUpLinkAveragePacketSize()

IMPORT_C TIntGetUpLinkAveragePacketSize()const

Returns the average packet size for uplink direction. Average packet size is used when doing traffic policing and estimating effect of protocol headers.

Gets the average packet size for uplink direction.

Average packet size is used when doing traffic policing and estimating effect of protocol headers.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.

GetUpLinkDelay()

IMPORT_C TIntGetUpLinkDelay()const

Returns the delay for uplink direction.

Gets the delay for uplink direction.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.

GetUpLinkDelayVariation()

IMPORT_C TIntGetUpLinkDelayVariation()const

GetUpLinkMaximumBurstSize()

IMPORT_C TIntGetUpLinkMaximumBurstSize()const

Returns the maximum burst size for uplink direction. Maximum burst size defines the burst size that the application might send.

Gets the maximum burst size for uplink direction.

Maximum burst size defines the burst size that the application might send.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.

GetUpLinkMaximumPacketSize()

IMPORT_C TIntGetUpLinkMaximumPacketSize()const

Returns the maximum packet size for uplink direction.

Gets the maximum packet size for uplink direction.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.

GetUpLinkPriority()

IMPORT_C TIntGetUpLinkPriority()const

Returns the priority for uplink direction. Priority can be used to prioritise between traffic flows inside the terminal.

Gets the priority for uplink direction.

Priority can be used to prioritise between traffic flows inside the terminal.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.

GetUplinkBandwidth()

IMPORT_C TIntGetUplinkBandwidth()const

Returns the bandwidth for uplink direction. Bandwidth defines the requested transfer rate that the application requests.

Gets the bandwidth for uplink direction.

Bandwidth defines the requested transfer rate that the application requests.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.

RemoveExtension(TInt)

IMPORT_C TIntRemoveExtension(TIntaType)

Removes the extension with extension type aType from the list of extensions.

Removes the extension with the specified extension type from the list of extensions.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.

Parameters

TInt aTypeThe type of extension to be removed from the list of extensions.

SetAdaptMode(TBool)

IMPORT_C voidSetAdaptMode(TBoolaCanAdapt)

Sets the adaptation mode. If the application is willing to accept lower QoS than requested, it should set the adapt mode on. By default adapt mode is not set.

Sets the adaptation mode.

If the application is willing to accept lower QoS than requested, it should set the adapt mode on. By default adapt mode is not set.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.

Parameters

TBool aCanAdaptThe value for adapt mode.

SetDownLinkAveragePacketSize(TInt)

IMPORT_C voidSetDownLinkAveragePacketSize(TIntaSize)

Sets the average packet size for downlink direction. Average packet size is used as the smallest packet size when doing traffic policing and estimating effect of protocol headers. The average packet size must be <= maximum packet size.

Sets the average packet size for downlink direction.

Average packet size is used when doing traffic policing and estimating effect of protocol headers. The average packet size must be <= maximum packet size.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.

Parameters

TInt aSizeValue (in bytes) to which to set the average packet size for downlink direction.

SetDownLinkDelay(TInt)

IMPORT_C voidSetDownLinkDelay(TIntaDelay)

Sets the requested delay for downlink direction.

Sets the requested delay for downlink direction.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.

Parameters

TInt aDelayValue (in milliseconds) to which to set the delay for downlink direction.

SetDownLinkDelayVariation(TInt)

IMPORT_C voidSetDownLinkDelayVariation(TIntaVariation)

Parameters

TInt aVariation

SetDownLinkMaximumBurstSize(TInt)

IMPORT_C voidSetDownLinkMaximumBurstSize(TIntaSize)

Sets the maximum burst size for downlink direction. Maximum burst size defines the burst size that the application might send. Maximum burst size must be > 0.

Sets the maximum burst size for downlink direction.

Maximum burst size defines the burst size that the application might send. Maximum burst size must be > 0.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.

Parameters

TInt aSizeValue (in bytes) to which to set the maximum burst size for downlink direction.

SetDownLinkMaximumPacketSize(TInt)

IMPORT_C voidSetDownLinkMaximumPacketSize(TIntaMaxSize)

Sets the maximum packet size for downlink direction.

Sets the maximum packet size for downlink direction.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.

Parameters

TInt aMaxSizeValue (in bytes) to which to set the maximum packet size for downlink direction.

SetDownLinkPriority(TInt)

IMPORT_C voidSetDownLinkPriority(TIntaPriority)

Sets the priority for downlink direction. Priority can be used to prioritise between traffic flows inside the terminal.

Sets the priority for downlink direction.

Priority can be used to prioritise between traffic flows inside the terminal.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.

Parameters

TInt aPriorityValue (0-7) to which to set the priority for downlink direction: 0 is the highest priority, 7 is lowest.

SetDownlinkBandwidth(TInt)

IMPORT_C voidSetDownlinkBandwidth(TIntaBandwidth)

Sets the bandwidth for downlink direction. Bandwidth defines the requested transfer rate that the application requests. Bandwidth must be > 0.

Sets the bandwidth for downlink direction.

Bandwidth defines the requested transfer rate that the application requests. Bandwidth must be > 0.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.

Parameters

TInt aBandwidthValue (in bytes/second) to which to set the bandwidth for downlink direction.

SetHeaderMode(TBool)

IMPORT_C voidSetHeaderMode(TBoolaHeadersIncluded)

Sets the header mode. If the application wants QoS Framework to include network and transport layer header values in bitrate calcutaions or not. By default the mode is set to include the headers in the calculations. Protocols such as RTSP or SIP, which already include the header sizes in their calculations will want to alter the mode so that header values are not included in calculations twice.

Sets the header mode. If the application wants QoS Framework to include network and transport layer header values in bitrate calculations or not. By default the mode is set to include the headers in the calculations. Protocols such as RTSP or SIP, which already include the header sizes in their calculations will want to alter the mode so that header values are not included in calculations twice.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.

Parameters

TBool aHeadersIncludedThe value for header mode.

SetName(const TName &)

IMPORT_C voidSetName(const TName &aName)

Sets the name of the flowspec. This allows application to specify a user friendly name for a flowspec.

Sets the name of the flowspec.

This allows application to specify a user friendly name for a flowspec.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.

Parameters

const TName & aNameThe name for the flowspec. Maximum length for the name is KMaxName.

SetUpLinkAveragePacketSize(TInt)

IMPORT_C voidSetUpLinkAveragePacketSize(TIntaSize)

Sets the average packet size for uplink direction. Average packet size is used when doing traffic policing and estimating effect of protocol headers. The average packet size must be <= maximum packet size.

Sets the average packet size for uplink direction.

Average packet size is used when doing traffic policing and estimating effect of protocol headers. The average packet size must be <= maximum packet size.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.

Parameters

TInt aSizeValue (in bytes) to which to set the average packet size for uplink direction.

SetUpLinkDelay(TInt)

IMPORT_C voidSetUpLinkDelay(TIntaDelay)

Sets the requested delay for uplink direction.

Sets the requested delay for uplink direction.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.

Parameters

TInt aDelayValue (in milliseconds) to which to set the delay for uplink direction.

SetUpLinkDelayVariation(TInt)

IMPORT_C voidSetUpLinkDelayVariation(TIntaVariation)

Parameters

TInt aVariation

SetUpLinkMaximumBurstSize(TInt)

IMPORT_C voidSetUpLinkMaximumBurstSize(TIntaSize)

Sets the maximum burst size for uplink direction. Maximum burst size defines the burst size that the application might send. Maximum burst size must be > 0.

Sets the maximum burst size for uplink direction.

Maximum burst size defines the burst size that the application might send. Maximum burst size must be > 0.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.

Parameters

TInt aSizeValue (in bytes) to which to set the maximum burst size for uplink direction.

SetUpLinkMaximumPacketSize(TInt)

IMPORT_C voidSetUpLinkMaximumPacketSize(TIntaMaxSize)

Sets the maximum packet size for uplink direction.

Sets the maximum packet size for uplink direction.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.

Parameters

TInt aMaxSizeValue (in bytes) to which to set the maximum packet size for uplink direction.

SetUpLinkPriority(TInt)

IMPORT_C voidSetUpLinkPriority(TIntaPriority)

Sets the priority for uplink direction. Priority can be used to prioritise between traffic flows inside the terminal.

Sets the priority for uplink direction.

Priority can be used to prioritise between traffic flows inside the terminal.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.

Parameters

TInt aPriorityValue (0-7) to which to set the priority for uplink direction: 0 is the highest priority, 7 is lowest.

SetUplinkBandwidth(TInt)

IMPORT_C voidSetUplinkBandwidth(TIntaBandwidth)

Sets the bandwidth for uplink direction. Bandwidth defines the requested transfer rate that the application requests. Bandwidth must be > 0.

Sets the bandwidth for uplink direction.

Bandwidth defines the requested transfer rate that the application requests. Bandwidth must be > 0.

capability
NetworkServices Restrict QoS operations in similar way as normal socket operations.

Parameters

TInt aBandwidthValue (in bytes/second) to which to set the bandwidth for uplink direction.

Member Data Documentation

TQoSExtensionQueue iExtensionList

TQoSExtensionQueue iExtensionList[private]

A list of extensions.

TName iName

TName iName[private]

TQoSParameters iQoS

TQoSParameters iQoS[private]

Generic QoS parameters.