CWEPSecuritySettingsImpl Class Reference

class CWEPSecuritySettingsImpl : public CBase

WEP Security Settings. Implementation behind proxy class CWEPSecuritySettings.

Inherits from

  • CWEPSecuritySettingsImpl
Public Member Functions
~CWEPSecuritySettingsImpl()
CWEPSecuritySettings::TWEPAuthentication Authentication()
voidConvertAsciiToHex(const TDesC8 &, HBufC8 *&)
TInt ExpectedLengthOfKeyData(CWEPSecuritySettings::TWEPKeyLength)
TBool IsValid()
TDes8 *KeyData(const TInt)
CWEPSecuritySettings::TWEPKeyFormat KeyFormat(const TInt)
CWEPSecuritySettings::TWEPKeyInUse KeyInUse()
CWEPSecuritySettings::TWEPKeyLength KeyLength(const TInt)
voidLoadL(TUint32, CCommsDatabase &)
voidLoadL(TUint32, CMDBSession &)
CWEPSecuritySettingsImpl *NewL()
voidSaveL(TUint32, CCommsDatabase &)
voidSaveL(TUint32, CMDBSession &)
voidSetAuthentication(const CWEPSecuritySettings::TWEPAuthentication)
voidSetKeyData(const TInt, const TDesC8 &)
TInt SetKeyDataL(const TInt, const TDesC &, const TBool)
voidSetKeyFormat(const TInt, const CWEPSecuritySettings::TWEPKeyFormat)
voidSetKeyInUse(const CWEPSecuritySettings::TWEPKeyInUse)
voidSetKeyLength(const TInt, const CWEPSecuritySettings::TWEPKeyLength)
TInt VerifyKeyData(const TDesC8 &, TInt, CWEPSecuritySettings::TWEPKeyFormat)
TBool WEP256Enabled()
Protected Member Functions
CWEPSecuritySettingsImpl()
voidConstructL()
Private Member Functions
voidSetLenKeyDataFromText(const TInt)
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
CWEPSecuritySettings::TWEPAuthentication iAuthentication
TBool iIsWEP256Enabled
TBuf8< KMaxLengthOfKeyData >iKeyData
CWEPSecuritySettings::TWEPKeyFormat iKeyFormat
CWEPSecuritySettings::TWEPKeyInUse iKeyInUse
CWEPSecuritySettings::TWEPKeyLength iKeyLength

Constructor & Destructor Documentation

CWEPSecuritySettingsImpl()

CWEPSecuritySettingsImpl()[protected]

Constructor.

~CWEPSecuritySettingsImpl()

~CWEPSecuritySettingsImpl()[virtual]

Destructor.

Member Functions Documentation

Authentication()

CWEPSecuritySettings::TWEPAuthentication Authentication()const [inline]

Gets type of Authentication

ConstructL()

voidConstructL()[protected]

Second-phase constructor.

ConvertAsciiToHex(const TDesC8 &, HBufC8 *&)

voidConvertAsciiToHex(const TDesC8 &aSource,
HBufC8 *&aDest
)

Converts keyData enetered in Ascii format to hex format

Parameters

const TDesC8 & aSourceSource string
HBufC8 *& aDestdestination string

ExpectedLengthOfKeyData(CWEPSecuritySettings::TWEPKeyLength)

TInt ExpectedLengthOfKeyData(CWEPSecuritySettings::TWEPKeyLengthaKeyLength)

Calculates expected length of hex string of keyData on the base of the selected key length.

Parameters

CWEPSecuritySettings::TWEPKeyLength aKeyLengthChosen key length

IsValid()

TBool IsValid()

Tells if the settings are valid and can be saved

KeyData(const TInt)

TDes8 *KeyData(const TIntaElement)[inline]

Gets the key data

Parameters

const TInt aElementIndex of the element whose keyData has to be retrieved.

KeyFormat(const TInt)

CWEPSecuritySettings::TWEPKeyFormat KeyFormat(const TIntaElement)const [inline]

Gets the format of the key

Parameters

const TInt aElementIndex of the element whose format has to be retrieved.

KeyInUse()

CWEPSecuritySettings::TWEPKeyInUse KeyInUse()const [inline]

Gets Key currently in use

KeyLength(const TInt)

CWEPSecuritySettings::TWEPKeyLength KeyLength(const TIntaElement)const [inline]

Gets the length of the key

Parameters

const TInt aElementIndex of the element whose length has to be retrieved.

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

CWEPSecuritySettingsImpl *NewL()[static]

Two-phased constructor. Leaves on failure.

SaveL(TUint32, CCommsDatabase &)

voidSaveL(TUint32aIapId,
CCommsDatabase &aCommsDb
)const

Save to database.

Parameters

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

SaveL(TUint32, CMDBSession &)

voidSaveL(TUint32aIapId,
CMDBSession &aSession
)const

Save to database.

Parameters

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

SetAuthentication(const CWEPSecuritySettings::TWEPAuthentication)

voidSetAuthentication(const CWEPSecuritySettings::TWEPAuthenticationaAuthentication)[inline]

Sets type of Authentication

Parameters

const CWEPSecuritySettings::TWEPAuthentication aAuthenticationThe new value for type of Authentication.

SetKeyData(const TInt, const TDesC8 &)

voidSetKeyData(const TIntaElement,
const TDesC8 &aKeyData
)[inline]

Sets the new data of the key

Parameters

const TInt aElementIndex of the element whose data has to be set.
const TDesC8 & aKeyData

SetKeyDataL(const TInt, const TDesC &, const TBool)

TInt SetKeyDataL(const TIntaElement,
const TDesC &aKeyData,
const TBoolaHex
)

Sets the new data of the key

Parameters

const TInt aElementIndex of the element whose data has to be set.
const TDesC & aKeyDataThe new value for data of the key.
const TBool aHexETrue if data is in Ascii format

SetKeyFormat(const TInt, const CWEPSecuritySettings::TWEPKeyFormat)

voidSetKeyFormat(const TIntaElement,
const CWEPSecuritySettings::TWEPKeyFormataKeyFormat
)[inline]

Sets the format of the key

Parameters

const TInt aElementIndex of the element whose format has to be set.
const CWEPSecuritySettings::TWEPKeyFormat aKeyFormat

SetKeyInUse(const CWEPSecuritySettings::TWEPKeyInUse)

voidSetKeyInUse(const CWEPSecuritySettings::TWEPKeyInUseaKeyInUse)[inline]

Sets Key currently in use

Parameters

const CWEPSecuritySettings::TWEPKeyInUse aKeyInUseThe new value for key in use.

SetKeyLength(const TInt, const CWEPSecuritySettings::TWEPKeyLength)

voidSetKeyLength(const TIntaElement,
const CWEPSecuritySettings::TWEPKeyLengthaKeyLength
)[inline]

Sets the length of the key

Parameters

const TInt aElementIndex of the element whose length has to be set.
const CWEPSecuritySettings::TWEPKeyLength aKeyLengthThe new value for length of the key.

SetLenKeyDataFromText(const TInt)

voidSetLenKeyDataFromText(const TIntaIndex)[private]

Sets keyLength parsing data contained in iKeyData

Parameters

const TInt aIndexIndex of the element whose length has to be calculated.

VerifyKeyData(const TDesC8 &, TInt, CWEPSecuritySettings::TWEPKeyFormat)

TInt VerifyKeyData(const TDesC8 &aTextToTest,
TIntaLengthOfKeyData,
CWEPSecuritySettings::TWEPKeyFormataWEPKeyFormat
)

Verify if the entered keyData is valid

Parameters

const TDesC8 & aTextToTestThe text to be verified
TInt aLengthOfKeyDataThe expected length of the keyData
CWEPSecuritySettings::TWEPKeyFormat aWEPKeyFormatThe format chosen to enter the keyData

WEP256Enabled()

TBool WEP256Enabled()const [inline]

Tells if the Wep256 feature is enabled or not

Member Data Documentation

CWEPSecuritySettings::TWEPAuthentication iAuthentication

CWEPSecuritySettings::TWEPAuthentication iAuthentication[private]

TBool iIsWEP256Enabled

TBool iIsWEP256Enabled[private]

TBuf8< KMaxLengthOfKeyData > iKeyData

TBuf8< KMaxLengthOfKeyData >iKeyData[private]

CWEPSecuritySettings::TWEPKeyFormat iKeyFormat

CWEPSecuritySettings::TWEPKeyFormat iKeyFormat[private]

CWEPSecuritySettings::TWEPKeyInUse iKeyInUse

CWEPSecuritySettings::TWEPKeyInUse iKeyInUse[private]

CWEPSecuritySettings::TWEPKeyLength iKeyLength

CWEPSecuritySettings::TWEPKeyLength iKeyLength[private]