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

  • CSuplCommunicationManager

Constructor & Destructor Documentation

CSuplCommunicationManager()

CSuplCommunicationManager()[private]

From ?base_class ?member_description C++ default constructor.

~CSuplCommunicationManager()

IMPORT_C~CSuplCommunicationManager()[virtual]

Destructor.

Member Functions Documentation

ConstructL()

voidConstructL()[private]

By default Symbian 2nd phase constructor is private.

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

IMPORT_C CSuplConnection *CreateConnectionL(const TDesC &aHostAddress,
const TUintaPort,
const TIntaIAPId
)
CreateConnection.
Since
Series 60 3.1M

Parameters

const TDesC & aHostAddressHostAddress 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,
TBoolaTls,
TBoolaPskTls,
const TUintaPort,
const TIntaIAPId
)

Parameters

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

DestroyAllConnections()

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

DestroyConnection(CSuplConnection *)

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

Parameters

CSuplConnection * aConnection

FindConnection(const TDesC &, const TUint)

CSuplConnection *FindConnection(const TDesC &aHostAddress,
const TUintaPort
)[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)

voidHandlePacket(const TDesC8 &aPacket,
TUintaPortNo
)
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)

voidHandlePacketError(const TIntaError)
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 TIntInitialize()
Initialize.
Since
Series 60 3.1M

NewL()

IMPORT_C CSuplCommunicationManager *NewL()[static]

Two-phased constructor.

RemoveConnection(TInt)

voidRemoveConnection(TIntaIndex)[protected]
RemoveConnection.
Since
Series 60 3.1M

Parameters

TInt aIndex

SetPacketReceiver(MSuplPacketReceiver *)

IMPORT_C voidSetPacketReceiver(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]