class RSuplTerminalServer : public RSessionBase |
This class is used to establish connection and to close connection to terminal resident SUPL Server. This class contains methods for connecting to SUPL Server, to close connection to SUPL Server and get SUPL Terminal Initiation API version number. After the connection has been established, its handle is passed as a parameter to the Open method of RSuplTerminalSubSession to create a "sub-session". Client should close connection to SUPL Server when connection is no longer required.
Public Member Functions | |
---|---|
RSuplTerminalServer () | |
IMPORT_C void | Close () |
IMPORT_C TInt | Connect () |
IMPORT_C TInt | Connect ( TRequestStatus &) |
IMPORT_C TVersion | Version () |
Private Member Functions | |
---|---|
void | ConstructL () |
void | Destruct () |
TInt | StartServer () |
Inherited Enumerations | |
---|---|
RHandleBase:TAttributes | |
RSessionBase:TAttachMode |
Private Attributes | |
---|---|
TAny * | iReserved |
Inherited Attributes | |
---|---|
RHandleBase::iHandle |
IMPORT_C void | Close | ( | ) |
Closes a connection with the SUPL Server. A client must ensure that all sub-sessions are closed and all outstanding requests are cancelled before the connection to SUPL Server is closed.
IMPORT_C TInt | Connect | ( | ) |
Creates a connection with SUPL Server. If there is no other connection when this is called, the method will start the server. If client tries to connect again with the same instance before closing previous connection, it panics with panic code ESuplServerHandleNotClosed.
KErrNone when a link has been successfully established with SUPL Server.
KErrNotFound if server executable is not found to start a SUPL Server
KErrNotSupported if version of client API is not compatible with SUPL Server or if SUPL feature is not enabled in the terminal.
KErrPermissionDenied if client does not have CommDD capability
IMPORT_C TInt | Connect | ( | TRequestStatus & | aStatus | ) |
Asynchronous method to creates a connection with SUPL Server. If there is no other connection when this is called, the method will start the server. If client tries to connect again with the same instance before closing previous connection, it panics with panic code ESuplServerHandleNotClosed.
KErrNone when a link has been successfully established with SUPL Server.
KErrNotFound if server executable is not found to start a SUPL Server
KErrNotSupported if version of client API is not compatible with SUPL Server or if SUPL feature is not enabled in the terminal.
KErrPermissionDenied if client does not have CommDD capability
TRequestStatus & aStatus |
TInt | StartServer | ( | ) | [private, static] |
Start the server process/thread which lives in an EPOCEXE object.
IMPORT_C TVersion | Version | ( | ) | const |
Obtains the current version number of the SUPL Terminal Initiation API.
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.