CWLanSettings Class Reference

class CWLanSettings : public CBase

Class for handling wlan table in commsdat

wlandbif.lib

Inherits from

Public Member Functions
CWLanSettings()
~CWLanSettings()
IMPORT_C voidAddWlanTableL()
IMPORT_C TIntConnect()
IMPORT_C TIntDeleteWlanSettings(TUint32)
IMPORT_C TIntDeleteWlanSettingsForService(TUint32)
IMPORT_C voidDisconnect()
IMPORT_C voidGetEapDataL(TEapArray &)
IMPORT_C voidGetEapDataL(RExpandedEapTypeArray &, RExpandedEapTypeArray &)
IMPORT_C TIntGetFirstSettings(SWLANSettings &)
IMPORT_C voidGetIAPWlanServicesL(RArray< SWlanIAPId > &)
IMPORT_C TIntGetNextSettings(SWLANSettings &)
IMPORT_C TIntGetSecondarySsidsForService(TUint32, RArray< TWlanSecondarySsid > &)
IMPORT_C TIntGetWlanSettings(TUint32, SWLANSettings &)
IMPORT_C TIntGetWlanSettingsForIap(TUint32, SWLANSettings &)
IMPORT_C TIntGetWlanSettingsForService(TUint32, SWLANSettings &)
IMPORT_C TIntIsEasyWlan(TUint, TBool &)
IMPORT_C voidSetEapDataL(const TEapArray &)
IMPORT_C voidSetEapDataL(RExpandedEapTypeArray &, RExpandedEapTypeArray &)
IMPORT_C TIntWriteWlanSettings(SWLANSettings &)
Private Member Functions
voidAsciiToHexValue(TUint8 &)
voidClearWepKeys(SWLANSettings &)
voidCreateWLANServiceRecordL(TUint32, TWlanRecIdType)
voidDoConnectL()
HBufC *DoGetEapDataLC()
voidDoGetEapDataLC(HBufC8 *&, HBufC8 *&)
voidDoSetEapDataL(TDesC &)
voidDoSetEapDataL(TDesC8 &, TDesC8 &)
voidGetDataL(SWLANSettings &)
voidPackWepKeyL(const TWep &, CMDBField< TDesC8 > *)
voidReadWepKeysL(SWLANSettings &)
voidUnPackWepKey(TDesC8 &, TWep &, TInt)
voidWriteDataL(SWLANSettings &)
voidWriteWepKeysL(SWLANSettings &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Member Enumerations
enumTWlanRecIdType { EWlanRecordId, EWlanServiceId, EWlanIapId }
Private Attributes
TInt iCurrentRecord
CMDBSession *iDBSession
CMDBGenericRecord *iWLANRecord

Constructor & Destructor Documentation

CWLanSettings()

IMPORT_CCWLanSettings()

Constructor

~CWLanSettings()

IMPORT_C~CWLanSettings()[virtual]

Destructor Handles disconnection if needed

Member Functions Documentation

AddWlanTableL()

IMPORT_C voidAddWlanTableL()

Not supported

AsciiToHexValue(TUint8 &)

voidAsciiToHexValue(TUint8 &aValue)[private]

Returns the hex value of aValue, which originally is the ascii value of a hex digit

Parameters

TUint8 & aValue

ClearWepKeys(SWLANSettings &)

voidClearWepKeys(SWLANSettings &aSettings)[private]

If secmode is other than WEP, clear wep keys

Parameters

SWLANSettings & aSettings

Connect()

IMPORT_C TIntConnect()
Makes a connection to CommsDat
Note:

CreateWLANServiceRecordL(TUint32, TWlanRecIdType)

voidCreateWLANServiceRecordL(TUint32aId,
TWlanRecIdTypeaType
)[private]

Parameters

TUint32 aId
TWlanRecIdType aType

DeleteWlanSettings(TUint32)

IMPORT_C TIntDeleteWlanSettings(TUint32aId)

Deletes wlan settings record with specified ID returns KErrNone on success, other error code if failed

Parameters

TUint32 aId

DeleteWlanSettingsForService(TUint32)

IMPORT_C TIntDeleteWlanSettingsForService(TUint32aId)

Deletes wlan settings record for specified LAN service returns KErrNone on success, other error code if failed

Parameters

TUint32 aId

Disconnect()

IMPORT_C voidDisconnect()
Disconnect function that disconnects the connection to commsdat
Note:

DoConnectL()

voidDoConnectL()[private]

DoGetEapDataLC()

HBufC *DoGetEapDataLC()[private]

DoGetEapDataLC(HBufC8 *&, HBufC8 *&)

voidDoGetEapDataLC(HBufC8 *&enabledEapsData,
HBufC8 *&disabledEapsData
)[private]

Parameters

HBufC8 *& enabledEapsData
HBufC8 *& disabledEapsData

DoSetEapDataL(TDesC &)

voidDoSetEapDataL(TDesC &aData)[private]

Parameters

TDesC & aData

DoSetEapDataL(TDesC8 &, TDesC8 &)

voidDoSetEapDataL(TDesC8 &aEnabledData,
TDesC8 &aDisabledData
)[private]

Parameters

TDesC8 & aEnabledData
TDesC8 & aDisabledData

GetDataL(SWLANSettings &)

voidGetDataL(SWLANSettings &aSettings)[private]

Gets current settings

Parameters

SWLANSettings & aSettings

GetEapDataL(TEapArray &)

IMPORT_C voidGetEapDataL(TEapArray &aEaps)

Gets the current wlan settings EAP information (first do a GetWlanSettings{ForService}) returns

Parameters

TEapArray & aEaps

GetEapDataL(RExpandedEapTypeArray &, RExpandedEapTypeArray &)

IMPORT_C voidGetEapDataL(RExpandedEapTypeArray &aEapsEnabled,
RExpandedEapTypeArray &aEapsDisabled
)

Gets the current wlan settings EAP information (first do a GetWlanSettings{ForService}) returns

Parameters

RExpandedEapTypeArray & aEapsEnabled
RExpandedEapTypeArray & aEapsDisabled

GetFirstSettings(SWLANSettings &)

IMPORT_C TIntGetFirstSettings(SWLANSettings &aSettings)

Not supported

Parameters

SWLANSettings & aSettings

GetIAPWlanServicesL(RArray< SWlanIAPId > &)

IMPORT_C voidGetIAPWlanServicesL(RArray< SWlanIAPId > &aServices)

Gets WLAN Service Id's which correspond to IAP's using WLAN returns found WLANServiceTable and IAP record ID's in aServices

Parameters

RArray< SWlanIAPId > & aServices

GetNextSettings(SWLANSettings &)

IMPORT_C TIntGetNextSettings(SWLANSettings &aSettings)

Not supported

Parameters

SWLANSettings & aSettings

GetSecondarySsidsForService(TUint32, RArray< TWlanSecondarySsid > &)

IMPORT_C TIntGetSecondarySsidsForService(TUint32aId,
RArray< TWlanSecondarySsid > &aSsids
)
Get all secondary SSIDs for the specified LAN service.
Since
Series 60 3.0

Parameters

TUint32 aId
RArray< TWlanSecondarySsid > & aSsidsSecondary SSIDs for the service.

GetWlanSettings(TUint32, SWLANSettings &)

IMPORT_C TIntGetWlanSettings(TUint32aId,
SWLANSettings &aSettings
)
Gets WLAN settings with specified ID
Note:

Parameters

TUint32 aIdis the id of wlan settings record that is fetched, aSettings contains the wlan settings
SWLANSettings & aSettings

GetWlanSettingsForIap(TUint32, SWLANSettings &)

IMPORT_C TIntGetWlanSettingsForIap(TUint32aId,
SWLANSettings &aSettings
)
Gets WLAN settings with specified IAP ID
Note:

Parameters

TUint32 aIdis the IAP id that is fetched, aSettings contains the wlan settings
SWLANSettings & aSettings

GetWlanSettingsForService(TUint32, SWLANSettings &)

IMPORT_C TIntGetWlanSettingsForService(TUint32aId,
SWLANSettings &aSettings
)
Gets all the wlan settings for specified LAN service
Note:

Parameters

TUint32 aIdis the id of lan settings that uses wanted wlan settings. aSettings contains the wlan settings
SWLANSettings & aSettings

IsEasyWlan(TUint, TBool &)

IMPORT_C TIntIsEasyWlan(TUintaServiceId,
TBool &aEasyWlan
)

Sets aEasyWlan to ETrue if the aServiceID service is an easy wlan returns

Parameters

TUint aServiceId
TBool & aEasyWlan

PackWepKeyL(const TWep &, CMDBField< TDesC8 > *)

voidPackWepKeyL(const TWep &aInputKey,
CMDBField< TDesC8 > *aPackedKey
)[private]

Packs wep keys from TWep to CommsDat format

Parameters

const TWep & aInputKey
CMDBField< TDesC8 > * aPackedKey

ReadWepKeysL(SWLANSettings &)

voidReadWepKeysL(SWLANSettings &aSettings)[private]

Reads current Wep Keys

Parameters

SWLANSettings & aSettings

SetEapDataL(const TEapArray &)

IMPORT_C voidSetEapDataL(const TEapArray &aEaps)

Sets the EAP information to current wlan settings (first do a GetWlanSettings{ForService}) returns

Parameters

const TEapArray & aEaps

SetEapDataL(RExpandedEapTypeArray &, RExpandedEapTypeArray &)

IMPORT_C voidSetEapDataL(RExpandedEapTypeArray &aEapsEnabled,
RExpandedEapTypeArray &aEapsDisabled
)

Sets the EAP information to current wlan settings (first do a GetWlanSettings{ForService}) returns

Parameters

RExpandedEapTypeArray & aEapsEnabled
RExpandedEapTypeArray & aEapsDisabled

UnPackWepKey(TDesC8 &, TWep &, TInt)

voidUnPackWepKey(TDesC8 &aPackedKey,
TWep &aInputKey,
TIntaKeyIndex
)[private]

Unpacks wep keys from CommsDat format to TWep struct

Parameters

TDesC8 & aPackedKey
TWep & aInputKey
TInt aKeyIndex

WriteDataL(SWLANSettings &)

voidWriteDataL(SWLANSettings &aSettings)[private]

Writes aSettings to current record

Parameters

SWLANSettings & aSettings

WriteWepKeysL(SWLANSettings &)

voidWriteWepKeysL(SWLANSettings &aSettings)[private]

Writes Wep Keys to current settings

Parameters

SWLANSettings & aSettings

WriteWlanSettings(SWLANSettings &)

IMPORT_C TIntWriteWlanSettings(SWLANSettings &aSettings)

writes all the wlan settings to CommsDat, if settings.id is 0, new record is created returns KErrNone on success, other error code if failed

Parameters

SWLANSettings & aSettings

Member Enumerations Documentation

Enum TWlanRecIdType

Enumerators

EWlanRecordId
EWlanServiceId
EWlanIapId

Member Data Documentation

TInt iCurrentRecord

TInt iCurrentRecord[private]

CMDBSession * iDBSession

CMDBSession *iDBSession[private]

CMDBGenericRecord * iWLANRecord

CMDBGenericRecord *iWLANRecord[private]