CSuplCommunicationManager Class Reference

class CSuplCommunicationManager : public CBase

CSuplCommunicationManager is the Singleton that provides SUPL Connection to be used by Protocol Handler

This provides the methods to create and destroy for SUPL Connection Provides method to handle incoming packets from the network

EPosSuplProtocolHandlerPlugin.dll
Since
Series 60 3.1M //e.g. Series 60 3.0

Inherits from

Constructor & Destructor Documentation

CSuplCommunicationManager()

CSuplCommunicationManager ( ) [private]

From ?base_class ?member_description C++ default constructor.

~CSuplCommunicationManager()

IMPORT_C ~CSuplCommunicationManager ( ) [virtual]

Destructor.

Member Functions Documentation

ConstructL()

void ConstructL ( ) [private]

By default Symbian 2nd phase constructor is private.

CreateConnectionL(const TDesC &, const TUint, const TInt)

IMPORT_C CSuplConnection * CreateConnectionL ( const TDesC & aHostAddress,
const TUint aPort,
const TInt aIAPId
)
CreateConnection.
Since
Series 60 3.1M

Parameters

const TDesC & aHostAddress HostAddress with which connection has to be established
const TUint aPort
const TInt aIAPId

CreateConnectionL(const TDesC &, TBool, TBool, const TUint, const TInt)

IMPORT_C CSuplConnection * CreateConnectionL ( const TDesC & aHostAddress,
TBool aTls,
TBool aPskTls,
const TUint aPort,
const TInt aIAPId
)

Parameters

const TDesC & aHostAddress
TBool aTls
TBool aPskTls
const TUint aPort
const TInt aIAPId

DestroyAllConnections()

void DestroyAllConnections ( ) [protected]
DestroyAllConnections.
Since
Series 60 3.1M

DestroyConnection(CSuplConnection *)

IMPORT_C TInt DestroyConnection ( CSuplConnection * aConnection )
DestroyConnection.
Since
Series 60 3.1M

Parameters

CSuplConnection * aConnection

FindConnection(const TDesC &, const TUint)

CSuplConnection * FindConnection ( const TDesC & aHostAddress,
const TUint aPort
) [protected]
FindConnection.
Since
Series 60 3.1M

Parameters

const TDesC & aHostAddress
const TUint aPort

FindConnection(const CSuplConnection *)

TInt FindConnection ( const CSuplConnection * aConnection ) [protected]
FindConnection.
Since
Series 60 3.1M

Parameters

const CSuplConnection * aConnection

HandlePacket(const TDesC8 &, TUint)

void HandlePacket ( const TDesC8 & aPacket,
TUint aPortNo
)
From MSuplPacketNotifier - To handle received packets fromk the Network.
Since
Series 60 3.1U

Parameters

const TDesC8 & aPacket - The packet received from the network
TUint aPortNo

HandlePacketError(const TInt)

void HandlePacketError ( const TInt aError )
From MSuplPacketNotifier - To handle any errors while trying to read packets from the network
Since
Series 60 3.1U

Parameters

const TInt aError - The Error value

Initialize()

IMPORT_C TInt Initialize ( )
Initialize.
Since
Series 60 3.1M

NewL()

IMPORT_C CSuplCommunicationManager * NewL ( ) [static]

Two-phased constructor.

RemoveConnection(TInt)

void RemoveConnection ( TInt aIndex ) [protected]
RemoveConnection.
Since
Series 60 3.1M

Parameters

TInt aIndex

SetPacketReceiver(MSuplPacketReceiver *)

IMPORT_C void SetPacketReceiver ( MSuplPacketReceiver * aReceiver )
SetPacketReceiver.
Since
Series 60 3.1M

Parameters

MSuplPacketReceiver * aReceiver

Member Data Documentation

RPointerArray< CSuplConnection > iConnArray

RPointerArray < CSuplConnection > iConnArray [private]

MSuplPacketReceiver * iPktReceiver

MSuplPacketReceiver * iPktReceiver [private]

TBool iServerConnected

TBool iServerConnected [private]

RSocketServ iSocketServ

RSocketServ iSocketServ [private]

CSuplConnTrace * iTrace

CSuplConnTrace * iTrace [private]