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 TInt GetTBool ( TBool &)
IMPORT_C TInt GetTDes ( TDes &)
IMPORT_C TInt GetTInt ( TInt &)
IMPORT_C TUint32 Id ()
IMPORT_C void SetId (const TUint32 )
IMPORT_C void SetTBool (const TBool )
IMPORT_C TInt SetTDes (const TDesC &)
IMPORT_C void SetTInt (const TInt )
IMPORT_C TAccModeSettingType Type ()
Private Attributes
TUint32 iId
TAccModeSettingType iType
TBuf < KMaxAccModeSetting > iValue

Constructor & Destructor Documentation

TAccModeSetting()

IMPORT_C TAccModeSetting ( )

C++ default constructor.

Member Functions Documentation

GetTBool(TBool &)

IMPORT_C TInt GetTBool ( TBool & aValue ) const

Returns value of setting that has TBool as a type.

Since
S60 3.1

Parameters

TBool & aValue stores setting when method has been succesfully called

GetTDes(TDes &)

IMPORT_C TInt GetTDes ( TDes & aDes ) const

Returns value of setting that has descriptor as a type.

Since
S60 3.1

Parameters

TDes & aDes stores setting when method has been succesfully called

GetTInt(TInt &)

IMPORT_C TInt GetTInt ( 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 & aValue stores setting when method has been succesfully called

Id()

IMPORT_C TUint32 Id ( ) const

Returns identification number for setting.

Since
S60 3.1

SetId(const TUint32)

IMPORT_C void SetId ( const TUint32 aId )

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 aId identifies setting

SetTBool(const TBool)

IMPORT_C void SetTBool ( const TBool aValue )

Sets value for setting that has TBool as a type.

Since
S60 3.1

Parameters

const TBool aValue setting's value

SetTDes(const TDesC &)

IMPORT_C TInt SetTDes ( const TDesC & aValue )

Sets value for setting that has descriptor as a type.

Since
S60 3.1

Parameters

const TDesC & aValue setting's value

SetTInt(const TInt)

IMPORT_C void SetTInt ( const TInt aValue )

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 aValue setting's value

Type()

IMPORT_C TAccModeSettingType Type ( ) 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]