CWPASecuritySettingsImpl Class Reference

class CWPASecuritySettingsImpl : public CBase

WPA Security Settings. Implementation behind proxy class CWPASecuritySettings .

Inherits from

Public Member Functions
~CWPASecuritySettingsImpl ()
void DeleteL ( TUint32 )
const TUint32 IapId ()
TBool IsValid ()
void LoadL ( TUint32 , CCommsDatabase &)
void LoadL ( TUint32 , CMDBSession &)
CWPASecuritySettingsImpl * NewL ( TSecurityMode )
CEAPPluginConfigurationIf * Plugin ()
void SaveL ( TUint32 , CCommsDatabase &, TTypeOfSaving , TUint32 )
void SaveL ( TUint32 , CMDBSession &, TTypeOfSaving , TUint32 )
TSecurityMode SecurityMode ()
void SetIapId (const TUint32 )
TInt SetWPADisabledEAPPlugin (const TDesC8 &)
void SetWPAEAPPlugin (const TDes &)
TInt SetWPAEnabledEAPPlugin (const TDesC8 &)
void SetWPAMode (const TBool )
TInt SetWPAPreSharedKey (const TDesC &)
void SetWPAPreSharedKey (const TDesC8 &)
void SetWpa2Only (const TBool )
HBufC8 * WPADisabledEAPPlugin ()
TDes * WPAEAPPlugin ()
HBufC8 * WPAEnabledEAPPlugin ()
TBool WPAMode ()
TDes8 * WPAPreSharedKey ()
TBool Wpa2Only ()
Protected Member Functions
CWPASecuritySettingsImpl ( TSecurityMode )
void ConstructL ()
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 ( TSecurityMode aSecurityMode ) [protected]

Constructor.

Parameters

TSecurityMode aSecurityMode The chosen security mode. It can be ESecurityMode8021x or ESecurityModeWpa

~CWPASecuritySettingsImpl()

~CWPASecuritySettingsImpl ( ) [virtual]

Destructor.

Member Functions Documentation

ConstructL()

void ConstructL ( ) [protected]

Second-phase constructor.

DeleteL(TUint32)

void DeleteL ( TUint32 aIapId )

Delete from database. It actually just removes EAP Configuration.

Parameters

TUint32 aIapId Id of the IAP to be saved

IapId()

const TUint32 IapId ( ) [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 & aPsk The string to be checked

LoadL(TUint32, CCommsDatabase &)

void LoadL ( TUint32 aIapId,
CCommsDatabase & aCommsDb
)

Load from database.

Parameters

TUint32 aIapId Wlan Service Table Id of the IAP to be loaded
CCommsDatabase & aCommsDb Comms database.

LoadL(TUint32, CMDBSession &)

void LoadL ( TUint32 aIapId,
CMDBSession & aSession
)

Load from database.

Parameters

TUint32 aIapId Wlan Service Table Id of the IAP to be loaded
CMDBSession & aSession CommsDat session.

NewL(TSecurityMode)

CWPASecuritySettingsImpl * NewL ( TSecurityMode aSecurityMode ) [static]

Two-phased constructor. Leaves on failure.

Parameters

TSecurityMode aSecurityMode The 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)

void SaveL ( TUint32 aIapId,
CCommsDatabase & aCommsDb,
TTypeOfSaving aTypeOfSaving,
TUint32 aOldIapId
)

Save to database.

Parameters

TUint32 aIapId Wlan Service Table Id of the IAP to be saved
CCommsDatabase & aCommsDb Comms database.
TTypeOfSaving aTypeOfSaving Tells what kind of AP we are going to save: it can be ESavingEditedAP, ESavingBrandNewAP, or ESavingNewAPAsACopy
TUint32 aOldIapId The old Id of the IAP; it is used to save the EAP configuration, only when aIsNewAP is ETrue

SaveL(TUint32, CMDBSession &, TTypeOfSaving, TUint32)

void SaveL ( TUint32 aIapId,
CMDBSession & aSession,
TTypeOfSaving aTypeOfSaving,
TUint32 aOldIapId
)

Save to database.

Parameters

TUint32 aIapId Wlan Service Table Id of the IAP to be saved
CMDBSession & aSession CommsDat session.
TTypeOfSaving aTypeOfSaving Tells what kind of AP we are going to save: it can be ESavingEditedAP, ESavingBrandNewAP, or ESavingNewAPAsACopy
TUint32 aOldIapId The 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)

void SetIapId ( const TUint32 aIapId ) [inline]

Sets the Id of the AP

Parameters

const TUint32 aIapId The 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 & aDisabledPluginList Enumeration of disabled plugins

SetWPAEAPPlugin(const TDes &)

void SetWPAEAPPlugin ( const TDes & aPluginList ) [inline]

Sets the content of the WlanEapList column of WLANServiceTable

Parameters

const TDes & aPluginList The 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 & aEnabledPluginList Enumeration of enabled plugins

SetWPAMode(const TBool)

void SetWPAMode ( const TBool aWPAMode ) [inline]

Sets the use of Pre-shared key.

Parameters

const TBool aWPAMode ETrue if pre-shared key is in use

SetWPAPreSharedKey(const TDesC &)

TInt SetWPAPreSharedKey ( const TDesC & aPreSharedKey )

Sets the Pre-shared key

Parameters

const TDesC & aPreSharedKey The key to be set

SetWPAPreSharedKey(const TDesC8 &)

void SetWPAPreSharedKey ( const TDesC8 & aPreSharedKey ) [inline]

Sets the Pre-shared key

Parameters

const TDesC8 & aPreSharedKey The key to be set

SetWpa2Only(const TBool)

void SetWpa2Only ( const TBool aAllowed ) [inline]

Sets the WPA2 Only mode enabling variable

Parameters

const TBool aAllowed ETrue 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]