CWEPSecuritySettingsImpl Class Reference

class CWEPSecuritySettingsImpl : public CBase

WEP Security Settings. Implementation behind proxy class CWEPSecuritySettings .

Inherits from

Public Member Functions
~CWEPSecuritySettingsImpl ()
CWEPSecuritySettings::TWEPAuthentication Authentication ()
void ConvertAsciiToHex (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 )
void LoadL ( TUint32 , CCommsDatabase &)
void LoadL ( TUint32 , CMDBSession &)
CWEPSecuritySettingsImpl * NewL ()
void SaveL ( TUint32 , CCommsDatabase &)
void SaveL ( TUint32 , CMDBSession &)
void SetAuthentication (const CWEPSecuritySettings::TWEPAuthentication )
void SetKeyData (const TInt , const TDesC8 &)
TInt SetKeyDataL (const TInt , const TDesC &, const TBool )
void SetKeyFormat (const TInt , const CWEPSecuritySettings::TWEPKeyFormat )
void SetKeyInUse (const CWEPSecuritySettings::TWEPKeyInUse )
void SetKeyLength (const TInt , const CWEPSecuritySettings::TWEPKeyLength )
TInt VerifyKeyData (const TDesC8 &, TInt , CWEPSecuritySettings::TWEPKeyFormat )
TBool WEP256Enabled ()
Protected Member Functions
CWEPSecuritySettingsImpl ()
void ConstructL ()
Private Member Functions
void SetLenKeyDataFromText (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()

void ConstructL ( ) [protected]

Second-phase constructor.

ConvertAsciiToHex(const TDesC8 &, HBufC8 *&)

void ConvertAsciiToHex ( const TDesC8 & aSource,
HBufC8 *& aDest
)

Converts keyData enetered in Ascii format to hex format

Parameters

const TDesC8 & aSource Source string
HBufC8 *& aDest destination string

ExpectedLengthOfKeyData(CWEPSecuritySettings::TWEPKeyLength)

TInt ExpectedLengthOfKeyData ( CWEPSecuritySettings::TWEPKeyLength aKeyLength )

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

Parameters

CWEPSecuritySettings::TWEPKeyLength aKeyLength Chosen key length

IsValid()

TBool IsValid ( )

Tells if the settings are valid and can be saved

KeyData(const TInt)

TDes8 * KeyData ( const TInt aElement ) [inline]

Gets the key data

Parameters

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

KeyFormat(const TInt)

CWEPSecuritySettings::TWEPKeyFormat KeyFormat ( const TInt aElement ) const [inline]

Gets the format of the key

Parameters

const TInt aElement Index 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 TInt aElement ) const [inline]

Gets the length of the key

Parameters

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

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

CWEPSecuritySettingsImpl * NewL ( ) [static]

Two-phased constructor. Leaves on failure.

SaveL(TUint32, CCommsDatabase &)

void SaveL ( TUint32 aIapId,
CCommsDatabase & aCommsDb
) const

Save to database.

Parameters

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

SaveL(TUint32, CMDBSession &)

void SaveL ( TUint32 aIapId,
CMDBSession & aSession
) const

Save to database.

Parameters

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

SetAuthentication(const CWEPSecuritySettings::TWEPAuthentication)

void SetAuthentication ( const CWEPSecuritySettings::TWEPAuthentication aAuthentication ) [inline]

Sets type of Authentication

Parameters

const CWEPSecuritySettings::TWEPAuthentication aAuthentication The new value for type of Authentication.

SetKeyData(const TInt, const TDesC8 &)

void SetKeyData ( const TInt aElement,
const TDesC8 & aKeyData
) [inline]

Sets the new data of the key

Parameters

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

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

TInt SetKeyDataL ( const TInt aElement,
const TDesC & aKeyData,
const TBool aHex
)

Sets the new data of the key

Parameters

const TInt aElement Index of the element whose data has to be set.
const TDesC & aKeyData The new value for data of the key.
const TBool aHex ETrue if data is in Ascii format

SetKeyFormat(const TInt, const CWEPSecuritySettings::TWEPKeyFormat)

void SetKeyFormat ( const TInt aElement,
const CWEPSecuritySettings::TWEPKeyFormat aKeyFormat
) [inline]

Sets the format of the key

Parameters

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

SetKeyInUse(const CWEPSecuritySettings::TWEPKeyInUse)

void SetKeyInUse ( const CWEPSecuritySettings::TWEPKeyInUse aKeyInUse ) [inline]

Sets Key currently in use

Parameters

const CWEPSecuritySettings::TWEPKeyInUse aKeyInUse The new value for key in use.

SetKeyLength(const TInt, const CWEPSecuritySettings::TWEPKeyLength)

void SetKeyLength ( const TInt aElement,
const CWEPSecuritySettings::TWEPKeyLength aKeyLength
) [inline]

Sets the length of the key

Parameters

const TInt aElement Index of the element whose length has to be set.
const CWEPSecuritySettings::TWEPKeyLength aKeyLength The new value for length of the key.

SetLenKeyDataFromText(const TInt)

void SetLenKeyDataFromText ( const TInt aIndex ) [private]

Sets keyLength parsing data contained in iKeyData

Parameters

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

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

TInt VerifyKeyData ( const TDesC8 & aTextToTest,
TInt aLengthOfKeyData,
CWEPSecuritySettings::TWEPKeyFormat aWEPKeyFormat
)

Verify if the entered keyData is valid

Parameters

const TDesC8 & aTextToTest The text to be verified
TInt aLengthOfKeyData The expected length of the keyData
CWEPSecuritySettings::TWEPKeyFormat aWEPKeyFormat The 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]