MConnection Class Reference

class MConnection

Member Functions Documentation

AskIap(TUint32 &)

TInt AskIap ( TUint32 & aNewAp ) [pure virtual]

Ask Internet Accespoint from dialog

Parameters

TUint32 & aNewAp

ChangeIapL(TConManChangeConn &, TUint32 &)

void ChangeIapL ( TConManChangeConn & aCangeConn,
TUint32 & aNewAp
) [pure virtual]

Change Internet Accespoint ( Change Connection )

Parameters

TConManChangeConn & aCangeConn
TUint32 & aNewAp

Connected()

TBool Connected ( ) [pure virtual]

A query function to find out whether there is a connection which was matches with the "current" connection parameters

Connection()

RConnection & Connection ( ) [pure virtual]

Returns the RConnection object used to create connection.

ConnectionNameL()

TName * ConnectionNameL ( ) [pure virtual]

Return name of the connection created. Ownership of name is handed over.

CurrentAPId()

TUint32 CurrentAPId ( ) const [pure virtual]

Returns the currently (or the last used) AP id

CurrentAccessPoint()

const CApAccessPointItem * CurrentAccessPoint ( ) const [pure virtual]

Call this for obtaining the AP for the current connection

CurrentApNameLC()

HBufC * CurrentApNameLC ( ) const [pure virtual]

Call this function to get the name of the current Wap AP, space for zero terminator should also allocated return

CurrentBearerTypeL()

TApBearerType CurrentBearerTypeL ( ) const [pure virtual]

Call this the get the current bearer to be used

CurrentConnectionSpeed()

TApCallSpeed CurrentConnectionSpeed ( ) const [pure virtual]

Call this the get the current connection speed to be used

CurrentGatewayLC()

HBufC * CurrentGatewayLC ( ) const [pure virtual]

Call this the get the gateway address to be used the address of the gateway associated with the current AP, space for zero terminator should also be allocated

CurrentSessionConnectionOriented()

TBool CurrentSessionConnectionOriented ( ) const [pure virtual]

Call this the find out the connection type for the current AP the conection type for the current AP

CurrentSessionSecure()

TBool CurrentSessionSecure ( ) const [pure virtual]

Call this the find out the session security mode for the current AP the security mode for the current AP

CurrentStartPageLC()

HBufC * CurrentStartPageLC ( ) const [pure virtual]

Call this the get the start page to be used

Disconnect()

void Disconnect ( ) [pure virtual]

It closes the connection and sets the manager to offline mode

NewConnectionEstablished()

TBool NewConnectionEstablished ( ) const [pure virtual]

Returns whether a new connection needed to be established or the old one is used.

RequestedAPValidityL()

TAPValidity RequestedAPValidityL ( ) [pure virtual]

SetApChangeObserver(MApChangeObserver &)

void SetApChangeObserver ( MApChangeObserver & aObserver ) [pure virtual]

Sets an observer on the AP changes

Parameters

MApChangeObserver & aObserver reference to the the AP change observer

SetConnectionType(CMManager::TCmSettingSelectionMode)

void SetConnectionType ( CMManager::TCmSettingSelectionMode aConnectionType ) [pure virtual]

Functions that are used to store the connection type and the snap ID

Parameters

CMManager::TCmSettingSelectionMode aConnectionType

SetOccPreferences(TSetOCCPreferences)

void SetOccPreferences ( TSetOCCPreferences aOCCPreferences ) [pure virtual]

Setting OCC Preferences

Parameters

TSetOCCPreferences aOCCPreferences

SetRequestedAP(TUint32, TBool)

void SetRequestedAP ( TUint32 aRequestedAPId,
TBool aDefault = EFalse
) [pure virtual]

Sets RequestedAP

Parameters

TUint32 aRequestedAPId
TBool aDefault = EFalse

SetRequestedAPs(TIdPair)

void SetRequestedAPs ( TIdPair aRequestedAPs ) [pure virtual]

Sets the requested AP later it may not be the one to be used

Parameters

TIdPair aRequestedAPs the requested AP idpair

SetRequestedSnap(TUint32)

void SetRequestedSnap ( TUint32 aRequestedSnapId ) [pure virtual]

Parameters

TUint32 aRequestedSnapId

ShowConnectionChangedDlg()

void ShowConnectionChangedDlg ( ) [pure virtual]

Shows the connection changed dialog.

SocketServer()

RSocketServ & SocketServer ( ) [pure virtual]

Return socket server

StartConnectionL(TBool, TBool)

TInt StartConnectionL ( TBool aDisableConnNeeded = EFalse,
TBool aIgnoreSecureAttribute = EFalse
) [pure virtual]

Starts the connection process

Parameters

TBool aDisableConnNeeded = EFalse if set to ETrue the initial dialog indicating that there is no connection will not appear
TBool aIgnoreSecureAttribute = EFalse if set to ETrue the security of the AP will not be taken into account when making making decisions about which AP to use the requested or the active

UnsetApChangeObserver()

void UnsetApChangeObserver ( ) [pure virtual]

Removes the AP change observer