class RQoSPolicy |
An interface to manage QoS policies and QoS policy files. RQoSPolicy::Open must always be called before any other methods in the RQoSPolicy can be called. Note that only one request can be pending at once (QoS event should be received before issuing next request).
Public Member Functions | |
---|---|
RQoSPolicy() | |
~RQoSPolicy() | |
IMPORT_C TInt | CancelNotifyEvent(MQoSObserver &) |
IMPORT_C TInt | Close() |
IMPORT_C TInt | GetQoS() |
IMPORT_C TInt | LoadPolicyFile(const TDesC &) |
IMPORT_C TInt | NotifyEvent(MQoSObserver &, TUint) |
IMPORT_C TInt | Open(const TQoSSelector &) |
IMPORT_C TInt | SetQoS(CQoSParameters &) |
IMPORT_C TInt | UnloadPolicyFile(const TDesC &) |
Private Attributes | |
---|---|
CPolicy * | iPolicy |
IMPORT_C | RQoSPolicy | ( | ) |
Default constructor.
RQoSPolicy::Open() must always be called before any other methods in the RQoSPolicy can be called.
IMPORT_C | ~RQoSPolicy | ( | ) |
Destructor.
Closes any open policy.
IMPORT_C TInt | CancelNotifyEvent | ( | MQoSObserver & | aObserver | ) |
Deregisters an event observer to catch QoS events.
Deregisters an event observer to catch QoS events.
MQoSObserver & aObserver | Event observer. |
IMPORT_C TInt | Close | ( | ) |
Deletes the QoS policy. Deletes the QoS policy.
IMPORT_C TInt | GetQoS | ( | ) |
Gets the QoS policy from QoS policy database. CQoSGetEvent event is received asynchronously to indicate the success of failure of the request.
Gets the QoS policy from QoS policy database.
A CQoSGetEvent event is received asynchronously to indicate the success or failure of the request.
IMPORT_C TInt | LoadPolicyFile | ( | const TDesC & | aName | ) |
Loads a QoS policy file into the QoS policy database. EQoSEventLoadPolicyFile event is received asynchronously to indicate the success of failure of the request.
Loads a QoS policy file into the QoS policy database.
A TQoSEvent event (EQoSEventLoadPolicyFile) is received asynchronously to indicate the success or failure of the request.
const TDesC & aName | Name of the QoS policy file to be loaded. |
IMPORT_C TInt | NotifyEvent | ( | MQoSObserver & | aObserver, |
TUint | aMask = KQoSEventAll | |||
) |
Registers an event observer to catch QoS events.
Registers an event observer to catch QoS events.
MQoSObserver & aObserver | Event observer. |
TUint aMask = KQoSEventAll | An event mask. An application can specify a set of QoS events that it wants to receive. By default all events are notified to the application. See TQoSEvent enumerations. |
IMPORT_C TInt | Open | ( | const TQoSSelector & | aSelector | ) |
RQoSPolicy::Open must always be called before any other method can be used. Specifies the selector for a QoS policy.
This must always be called before any other function can be used.
It specifies the selector for a QoS policy.
const TQoSSelector & aSelector | Selector for the QoS policy. |
IMPORT_C TInt | SetQoS | ( | CQoSParameters & | aPolicy | ) |
Sets the QoS parameters for the QoS policy. CQoSAddEvent event is received asynchronously to indicate the success of failure of the request.
Sets the QoS parameters for the QoS policy.
A CQoSAddEvent event is received asynchronously to indicate the success or failure of the request.
CQoSParameters & aPolicy | QoS parameters. |
IMPORT_C TInt | UnloadPolicyFile | ( | const TDesC & | aName | ) |
Unloads a QoS policy file from the QoS policy database. EQoSEventUnloadPolicyFile event is received asynchronously to indicate the success of failure of the request.
Unloads a QoS policy file from the QoS policy database.
A TQoSEvent event (EQoSEventUnloadPolicyFile) is received asynchronously to indicate the success or failure of the request.
const TDesC & aName | Name of the QoS policy file to be unloaded. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.