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 void AddWlanTableL ()
IMPORT_C TInt Connect ()
IMPORT_C TInt DeleteWlanSettings ( TUint32 )
IMPORT_C TInt DeleteWlanSettingsForService ( TUint32 )
IMPORT_C void Disconnect ()
IMPORT_C void GetEapDataL ( TEapArray &)
IMPORT_C void GetEapDataL ( RExpandedEapTypeArray &, RExpandedEapTypeArray &)
IMPORT_C TInt GetFirstSettings ( SWLANSettings &)
IMPORT_C void GetIAPWlanServicesL ( RArray < SWlanIAPId > &)
IMPORT_C TInt GetNextSettings ( SWLANSettings &)
IMPORT_C TInt GetSecondarySsidsForService ( TUint32 , RArray < TWlanSecondarySsid > &)
IMPORT_C TInt GetWlanSettings ( TUint32 , SWLANSettings &)
IMPORT_C TInt GetWlanSettingsForIap ( TUint32 , SWLANSettings &)
IMPORT_C TInt GetWlanSettingsForService ( TUint32 , SWLANSettings &)
IMPORT_C TInt IsEasyWlan ( TUint , TBool &)
IMPORT_C void SetEapDataL (const TEapArray &)
IMPORT_C void SetEapDataL ( RExpandedEapTypeArray &, RExpandedEapTypeArray &)
IMPORT_C TInt WriteWlanSettings ( SWLANSettings &)
Private Member Functions
void AsciiToHexValue ( TUint8 &)
void ClearWepKeys ( SWLANSettings &)
void CreateWLANServiceRecordL ( TUint32 , TWlanRecIdType )
void DoConnectL ()
HBufC * DoGetEapDataLC ()
void DoGetEapDataLC ( HBufC8 *&, HBufC8 *&)
void DoSetEapDataL ( TDesC &)
void DoSetEapDataL ( TDesC8 &, TDesC8 &)
void GetDataL ( SWLANSettings &)
void PackWepKeyL (const TWep &, CMDBField < TDesC8 > *)
void ReadWepKeysL ( SWLANSettings &)
void UnPackWepKey ( TDesC8 &, TWep &, TInt )
void WriteDataL ( SWLANSettings &)
void WriteWepKeysL ( 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
enum TWlanRecIdType { EWlanRecordId , EWlanServiceId , EWlanIapId }
Private Attributes
TInt iCurrentRecord
CMDBSession * iDBSession
CMDBGenericRecord * iWLANRecord

Constructor & Destructor Documentation

CWLanSettings()

IMPORT_C CWLanSettings ( )

Constructor

~CWLanSettings()

IMPORT_C ~CWLanSettings ( ) [virtual]

Destructor Handles disconnection if needed

Member Functions Documentation

AddWlanTableL()

IMPORT_C void AddWlanTableL ( )

Not supported

AsciiToHexValue(TUint8 &)

void AsciiToHexValue ( TUint8 & aValue ) [private]

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

Parameters

TUint8 & aValue

ClearWepKeys(SWLANSettings &)

void ClearWepKeys ( SWLANSettings & aSettings ) [private]

If secmode is other than WEP, clear wep keys

Parameters

SWLANSettings & aSettings

Connect()

IMPORT_C TInt Connect ( )
Makes a connection to CommsDat
Note:

CreateWLANServiceRecordL(TUint32, TWlanRecIdType)

void CreateWLANServiceRecordL ( TUint32 aId,
TWlanRecIdType aType
) [private]

Parameters

TUint32 aId
TWlanRecIdType aType

DeleteWlanSettings(TUint32)

IMPORT_C TInt DeleteWlanSettings ( TUint32 aId )

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

Parameters

TUint32 aId

DeleteWlanSettingsForService(TUint32)

IMPORT_C TInt DeleteWlanSettingsForService ( TUint32 aId )

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

Parameters

TUint32 aId

Disconnect()

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

DoConnectL()

void DoConnectL ( ) [private]

DoGetEapDataLC()

HBufC * DoGetEapDataLC ( ) [private]

DoGetEapDataLC(HBufC8 *&, HBufC8 *&)

void DoGetEapDataLC ( HBufC8 *& enabledEapsData,
HBufC8 *& disabledEapsData
) [private]

Parameters

HBufC8 *& enabledEapsData
HBufC8 *& disabledEapsData

DoSetEapDataL(TDesC &)

void DoSetEapDataL ( TDesC & aData ) [private]

Parameters

TDesC & aData

DoSetEapDataL(TDesC8 &, TDesC8 &)

void DoSetEapDataL ( TDesC8 & aEnabledData,
TDesC8 & aDisabledData
) [private]

Parameters

TDesC8 & aEnabledData
TDesC8 & aDisabledData

GetDataL(SWLANSettings &)

void GetDataL ( SWLANSettings & aSettings ) [private]

Gets current settings

Parameters

SWLANSettings & aSettings

GetEapDataL(TEapArray &)

IMPORT_C void GetEapDataL ( TEapArray & aEaps )

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

Parameters

TEapArray & aEaps

GetEapDataL(RExpandedEapTypeArray &, RExpandedEapTypeArray &)

IMPORT_C void GetEapDataL ( 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 TInt GetFirstSettings ( SWLANSettings & aSettings )

Not supported

Parameters

SWLANSettings & aSettings

GetIAPWlanServicesL(RArray< SWlanIAPId > &)

IMPORT_C void GetIAPWlanServicesL ( 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 TInt GetNextSettings ( SWLANSettings & aSettings )

Not supported

Parameters

SWLANSettings & aSettings

GetSecondarySsidsForService(TUint32, RArray< TWlanSecondarySsid > &)

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

Parameters

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

GetWlanSettings(TUint32, SWLANSettings &)

IMPORT_C TInt GetWlanSettings ( TUint32 aId,
SWLANSettings & aSettings
)
Gets WLAN settings with specified ID
Note:

Parameters

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

GetWlanSettingsForIap(TUint32, SWLANSettings &)

IMPORT_C TInt GetWlanSettingsForIap ( TUint32 aId,
SWLANSettings & aSettings
)
Gets WLAN settings with specified IAP ID
Note:

Parameters

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

GetWlanSettingsForService(TUint32, SWLANSettings &)

IMPORT_C TInt GetWlanSettingsForService ( TUint32 aId,
SWLANSettings & aSettings
)
Gets all the wlan settings for specified LAN service
Note:

Parameters

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

IsEasyWlan(TUint, TBool &)

IMPORT_C TInt IsEasyWlan ( TUint aServiceId,
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 > *)

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

Packs wep keys from TWep to CommsDat format

Parameters

const TWep & aInputKey
CMDBField < TDesC8 > * aPackedKey

ReadWepKeysL(SWLANSettings &)

void ReadWepKeysL ( SWLANSettings & aSettings ) [private]

Reads current Wep Keys

Parameters

SWLANSettings & aSettings

SetEapDataL(const TEapArray &)

IMPORT_C void SetEapDataL ( 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 void SetEapDataL ( 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)

void UnPackWepKey ( TDesC8 & aPackedKey,
TWep & aInputKey,
TInt aKeyIndex
) [private]

Unpacks wep keys from CommsDat format to TWep struct

Parameters

TDesC8 & aPackedKey
TWep & aInputKey
TInt aKeyIndex

WriteDataL(SWLANSettings &)

void WriteDataL ( SWLANSettings & aSettings ) [private]

Writes aSettings to current record

Parameters

SWLANSettings & aSettings

WriteWepKeysL(SWLANSettings &)

void WriteWepKeysL ( SWLANSettings & aSettings ) [private]

Writes Wep Keys to current settings

Parameters

SWLANSettings & aSettings

WriteWlanSettings(SWLANSettings &)

IMPORT_C TInt WriteWlanSettings ( 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]