#include <ups/upsclient.h>
Link against: upsclient.lib
class UserPromptService::RUpsSession : public RScsClientBase |
Public Member Functions | |
---|---|
RUpsSession() | |
IMPORT_C void | Close() |
IMPORT_C TInt | Connect() |
void | NotifyPolicyFileChangedL() |
Inherited Attributes | |
---|---|
RHandleBase::iHandle |
Inherited Enumerations | |
---|---|
RHandleBase:TAttributes | |
RSessionBase:TAttachMode |
The system server uses this class to establish a connection with the UPS server.
Internally it retrieves and caches authorisation policy information for all the services supported by the current server SID. This information is used to allow the RUpsSubsession to avoid creating a subsession and/or querying the UPS if the request does not require UPS interaction.
IMPORT_C | RUpsSession | ( | ) |
This constructor provides a single point of definition from which the superclass constructor is called.
IMPORT_C void | Close | ( | ) |
Reimplemented from RScsClientBase::Close()
Frees the configuration object and calls RScsClientBase::Close
This function MUST be called by the same thread which Connect().
IMPORT_C TInt | Connect | ( | ) |
Connect to the UPS server.
The thread which calls this function must be the same one which later calls Close().
Once connected, this session can be shared by multiple RUpsSubsession objects.
The RUpsSubsession objects are allowed to be in different threads, in which case ShareAuto() must be called before they are created.