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 &)

voidChangeIapL(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()

voidDisconnect()[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 &)

voidSetApChangeObserver(MApChangeObserver &aObserver)[pure virtual]

Sets an observer on the AP changes

Parameters

MApChangeObserver & aObserverreference to the the AP change observer

SetConnectionType(CMManager::TCmSettingSelectionMode)

voidSetConnectionType(CMManager::TCmSettingSelectionModeaConnectionType)[pure virtual]

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

Parameters

CMManager::TCmSettingSelectionMode aConnectionType

SetOccPreferences(TSetOCCPreferences)

voidSetOccPreferences(TSetOCCPreferencesaOCCPreferences)[pure virtual]

Setting OCC Preferences

Parameters

TSetOCCPreferences aOCCPreferences

SetRequestedAP(TUint32, TBool)

voidSetRequestedAP(TUint32aRequestedAPId,
TBoolaDefault = EFalse
)[pure virtual]

Sets RequestedAP

Parameters

TUint32 aRequestedAPId
TBool aDefault = EFalse

SetRequestedAPs(TIdPair)

voidSetRequestedAPs(TIdPairaRequestedAPs)[pure virtual]

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

Parameters

TIdPair aRequestedAPsthe requested AP idpair

SetRequestedSnap(TUint32)

voidSetRequestedSnap(TUint32aRequestedSnapId)[pure virtual]

Parameters

TUint32 aRequestedSnapId

ShowConnectionChangedDlg()

voidShowConnectionChangedDlg()[pure virtual]

Shows the connection changed dialog.

SocketServer()

RSocketServ &SocketServer()[pure virtual]

Return socket server

StartConnectionL(TBool, TBool)

TInt StartConnectionL(TBoolaDisableConnNeeded = EFalse,
TBoolaIgnoreSecureAttribute = EFalse
)[pure virtual]

Starts the connection process

Parameters

TBool aDisableConnNeeded = EFalseif set to ETrue the initial dialog indicating that there is no connection will not appear
TBool aIgnoreSecureAttribute = EFalseif 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()

voidUnsetApChangeObserver()[pure virtual]

Removes the AP change observer