TAccModeSetting Class Reference

class TAccModeSetting

Used to deliver parameters in some of RAccessorySettings class methods.

AccControl.lib
Since
S60 3.1
Public Member Functions
TAccModeSetting()
IMPORT_C TIntGetTBool(TBool &)
IMPORT_C TIntGetTDes(TDes &)
IMPORT_C TIntGetTInt(TInt &)
IMPORT_C TUint32Id()
IMPORT_C voidSetId(const TUint32)
IMPORT_C voidSetTBool(const TBool)
IMPORT_C TIntSetTDes(const TDesC &)
IMPORT_C voidSetTInt(const TInt)
IMPORT_C TAccModeSettingTypeType()
Private Attributes
TUint32 iId
TAccModeSettingType iType
TBuf< KMaxAccModeSetting >iValue

Constructor & Destructor Documentation

TAccModeSetting()

IMPORT_CTAccModeSetting()

C++ default constructor.

Member Functions Documentation

GetTBool(TBool &)

IMPORT_C TIntGetTBool(TBool &aValue)const

Returns value of setting that has TBool as a type.

Since
S60 3.1

Parameters

TBool & aValuestores setting when method has been succesfully called

GetTDes(TDes &)

IMPORT_C TIntGetTDes(TDes &aDes)const

Returns value of setting that has descriptor as a type.

Since
S60 3.1

Parameters

TDes & aDesstores setting when method has been succesfully called

GetTInt(TInt &)

IMPORT_C TIntGetTInt(TInt &aValue)const

Returns value of setting that has TInt as a type.

All settings listed in AccSettingsDomainCRKeys.h are of type TInt.

Since
S60 3.1

Parameters

TInt & aValuestores setting when method has been succesfully called

Id()

IMPORT_C TUint32Id()const

Returns identification number for setting.

Since
S60 3.1

SetId(const TUint32)

IMPORT_C voidSetId(const TUint32aId)

Sets identification number for setting.

If any of the settings listed in AccSettingsDomainCRKeys.h are stored to Accessory Server, following two things have to be taken into account:

1) Identification number is equal to constant value in AccSettingsDomainCRKeys.h. E.g. if lights are set for wired headset mode, then aId = KAccServerWiredHSLights.

2) Value of the setting has to be of type TInt. This means that value has to be set with method TAccModeSetting::SetTInt(const TInt aValue)

If setting is read from Accessory Server, following thing has to be taken into account before reading:

1) Set identification number of setting so that Accessory Server knows what setting is wanted to be read.

Since
S60 3.1

Parameters

const TUint32 aIdidentifies setting

SetTBool(const TBool)

IMPORT_C voidSetTBool(const TBoolaValue)

Sets value for setting that has TBool as a type.

Since
S60 3.1

Parameters

const TBool aValuesetting's value

SetTDes(const TDesC &)

IMPORT_C TIntSetTDes(const TDesC &aValue)

Sets value for setting that has descriptor as a type.

Since
S60 3.1

Parameters

const TDesC & aValuesetting's value

SetTInt(const TInt)

IMPORT_C voidSetTInt(const TIntaValue)

Sets value for setting that has TInt as a type.

All settings listed in AccSettingsDomainCRKeys.h are of type TInt.

Since
S60 3.1

Parameters

const TInt aValuesetting's value

Type()

IMPORT_C TAccModeSettingTypeType()const

Returns type of setting.

Since
S60 3.1

Member Data Documentation

TUint32 iId

TUint32 iId[private]

TAccModeSettingType iType

TAccModeSettingType iType[private]

TBuf< KMaxAccModeSetting > iValue

TBuf< KMaxAccModeSetting >iValue[private]