CWPASecuritySettingsImpl Class Reference

class CWPASecuritySettingsImpl : public CBase

WPA Security Settings. Implementation behind proxy class CWPASecuritySettings.

Inherits from

  • CWPASecuritySettingsImpl
Public Member Functions
~CWPASecuritySettingsImpl()
voidDeleteL(TUint32)
const TUint32IapId()
TBool IsValid()
voidLoadL(TUint32, CCommsDatabase &)
voidLoadL(TUint32, CMDBSession &)
CWPASecuritySettingsImpl *NewL(TSecurityMode)
CEAPPluginConfigurationIf *Plugin()
voidSaveL(TUint32, CCommsDatabase &, TTypeOfSaving, TUint32)
voidSaveL(TUint32, CMDBSession &, TTypeOfSaving, TUint32)
TSecurityMode SecurityMode()
voidSetIapId(const TUint32)
TInt SetWPADisabledEAPPlugin(const TDesC8 &)
voidSetWPAEAPPlugin(const TDes &)
TInt SetWPAEnabledEAPPlugin(const TDesC8 &)
voidSetWPAMode(const TBool)
TInt SetWPAPreSharedKey(const TDesC &)
voidSetWPAPreSharedKey(const TDesC8 &)
voidSetWpa2Only(const TBool)
HBufC8 *WPADisabledEAPPlugin()
TDes *WPAEAPPlugin()
HBufC8 *WPAEnabledEAPPlugin()
TBool WPAMode()
TDes8 *WPAPreSharedKey()
TBool Wpa2Only()
Protected Member Functions
CWPASecuritySettingsImpl(TSecurityMode)
voidConstructL()
Private Member Functions
TBool IsValidPsk(const TDesC8 &)
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 Attributes
TUint32 iIapId
CEAPPluginConfigurationIf *iPlugin
TSecurityMode iSecurityMode
HBufC8 *iWPADisabledEAPPlugin
TBuf< KWLANEAPLISTLENGTH >iWPAEAPPlugin
HBufC8 *iWPAEnabledEAPPlugin
TBool iWPAMode
TBuf8< KWlanWpaPskLength >iWPAPreSharedKey
TBool iWpa2Only

Constructor & Destructor Documentation

CWPASecuritySettingsImpl(TSecurityMode)

CWPASecuritySettingsImpl(TSecurityModeaSecurityMode)[protected]

Constructor.

Parameters

TSecurityMode aSecurityModeThe chosen security mode. It can be ESecurityMode8021x or ESecurityModeWpa

~CWPASecuritySettingsImpl()

~CWPASecuritySettingsImpl()[virtual]

Destructor.

Member Functions Documentation

ConstructL()

voidConstructL()[protected]

Second-phase constructor.

DeleteL(TUint32)

voidDeleteL(TUint32aIapId)

Delete from database. It actually just removes EAP Configuration.

Parameters

TUint32 aIapIdId of the IAP to be saved

IapId()

const TUint32IapId()[inline]

Returns the Id of the AP

IsValid()

TBool IsValid()

Tells if the settings are valid and can be saved

IsValidPsk(const TDesC8 &)

TBool IsValidPsk(const TDesC8 &aPsk)[private]
Checks whether the given string is a valid PSK
Since
S60 5.0

Parameters

const TDesC8 & aPskThe string to be checked

LoadL(TUint32, CCommsDatabase &)

voidLoadL(TUint32aIapId,
CCommsDatabase &aCommsDb
)

Load from database.

Parameters

TUint32 aIapIdWlan Service Table Id of the IAP to be loaded
CCommsDatabase & aCommsDbComms database.

LoadL(TUint32, CMDBSession &)

voidLoadL(TUint32aIapId,
CMDBSession &aSession
)

Load from database.

Parameters

TUint32 aIapIdWlan Service Table Id of the IAP to be loaded
CMDBSession & aSessionCommsDat session.

NewL(TSecurityMode)

CWPASecuritySettingsImpl *NewL(TSecurityModeaSecurityMode)[static]

Two-phased constructor. Leaves on failure.

Parameters

TSecurityMode aSecurityModeThe chosen security mode. It can be ESecurityMode8021x or ESecurityModeWpa

Plugin()

CEAPPluginConfigurationIf *Plugin()[inline]

Returns the pointer to the EAP Configuration plugin

SaveL(TUint32, CCommsDatabase &, TTypeOfSaving, TUint32)

voidSaveL(TUint32aIapId,
CCommsDatabase &aCommsDb,
TTypeOfSavingaTypeOfSaving,
TUint32aOldIapId
)

Save to database.

Parameters

TUint32 aIapIdWlan Service Table Id of the IAP to be saved
CCommsDatabase & aCommsDbComms database.
TTypeOfSaving aTypeOfSavingTells what kind of AP we are going to save: it can be ESavingEditedAP, ESavingBrandNewAP, or ESavingNewAPAsACopy
TUint32 aOldIapIdThe old Id of the IAP; it is used to save the EAP configuration, only when aIsNewAP is ETrue

SaveL(TUint32, CMDBSession &, TTypeOfSaving, TUint32)

voidSaveL(TUint32aIapId,
CMDBSession &aSession,
TTypeOfSavingaTypeOfSaving,
TUint32aOldIapId
)

Save to database.

Parameters

TUint32 aIapIdWlan Service Table Id of the IAP to be saved
CMDBSession & aSessionCommsDat session.
TTypeOfSaving aTypeOfSavingTells what kind of AP we are going to save: it can be ESavingEditedAP, ESavingBrandNewAP, or ESavingNewAPAsACopy
TUint32 aOldIapIdThe old Id of the IAP; it is used to save the EAP configuration, only when aIsNewAP is ETrue

SecurityMode()

TSecurityMode SecurityMode()const [inline]

Gets the type of Security set.

SetIapId(const TUint32)

voidSetIapId(const TUint32aIapId)[inline]

Sets the Id of the AP

Parameters

const TUint32 aIapIdThe Id to be set

SetWPADisabledEAPPlugin(const TDesC8 &)

TInt SetWPADisabledEAPPlugin(const TDesC8 &aDisabledPluginList)

Sets the content of the WlanDisabledEapList column of WLANServiceTable (for expanded EAP types)

Parameters

const TDesC8 & aDisabledPluginListEnumeration of disabled plugins

SetWPAEAPPlugin(const TDes &)

voidSetWPAEAPPlugin(const TDes &aPluginList)[inline]

Sets the content of the WlanEapList column of WLANServiceTable

Parameters

const TDes & aPluginListThe content string to be set

SetWPAEnabledEAPPlugin(const TDesC8 &)

TInt SetWPAEnabledEAPPlugin(const TDesC8 &aEnabledPluginList)

Sets the content of the WlanEnabledEapList column of WLANServiceTable (for expanded EAP types)

Parameters

const TDesC8 & aEnabledPluginListEnumeration of enabled plugins

SetWPAMode(const TBool)

voidSetWPAMode(const TBoolaWPAMode)[inline]

Sets the use of Pre-shared key.

Parameters

const TBool aWPAModeETrue if pre-shared key is in use

SetWPAPreSharedKey(const TDesC &)

TInt SetWPAPreSharedKey(const TDesC &aPreSharedKey)

Sets the Pre-shared key

Parameters

const TDesC & aPreSharedKeyThe key to be set

SetWPAPreSharedKey(const TDesC8 &)

voidSetWPAPreSharedKey(const TDesC8 &aPreSharedKey)[inline]

Sets the Pre-shared key

Parameters

const TDesC8 & aPreSharedKeyThe key to be set

SetWpa2Only(const TBool)

voidSetWpa2Only(const TBoolaAllowed)[inline]

Sets the WPA2 Only mode enabling variable

Parameters

const TBool aAllowedETrue if WPA2 Only mode is enabled

WPADisabledEAPPlugin()

HBufC8 *WPADisabledEAPPlugin()[inline]

Returns the content of the WlanDisabledEapList column of WLANServiceTable

WPAEAPPlugin()

TDes *WPAEAPPlugin()[inline]

Returns the content of the WlanEapList column of WLANServiceTable

WPAEnabledEAPPlugin()

HBufC8 *WPAEnabledEAPPlugin()[inline]

Returns the content of the WlanEnabledEapList column of WLANServiceTable

WPAMode()

TBool WPAMode()const [inline]

Tells if Pre-shared key is in use or not

WPAPreSharedKey()

TDes8 *WPAPreSharedKey()[inline]

Returns the Pre-shared key

Wpa2Only()

TBool Wpa2Only()const [inline]

Tells if it is WPA2 Only mode

Member Data Documentation

TUint32 iIapId

TUint32 iIapId[private]

CEAPPluginConfigurationIf * iPlugin

CEAPPluginConfigurationIf *iPlugin[private]

TSecurityMode iSecurityMode

TSecurityMode iSecurityMode[private]

HBufC8 * iWPADisabledEAPPlugin

HBufC8 *iWPADisabledEAPPlugin[private]

TBuf< KWLANEAPLISTLENGTH > iWPAEAPPlugin

TBuf< KWLANEAPLISTLENGTH >iWPAEAPPlugin[private]

HBufC8 * iWPAEnabledEAPPlugin

HBufC8 *iWPAEnabledEAPPlugin[private]

TBool iWPAMode

TBool iWPAMode[private]

TBuf8< KWlanWpaPskLength > iWPAPreSharedKey

TBuf8< KWlanWpaPskLength >iWPAPreSharedKey[private]

TBool iWpa2Only

TBool iWpa2Only[private]