TAccModeSetting Class Reference
Used to deliver parameters in some of
RAccessorySettings
class methods.
AccControl.lib
-
Since
-
S60 3.1
Constructor & Destructor Documentation
TAccModeSetting()
IMPORT_C
|
TAccModeSetting
|
(
|
)
|
|
Member Functions Documentation
GetTBool(TBool &)
IMPORT_C
TInt
|
GetTBool
|
(
|
TBool
&
|
aValue
|
)
|
const
|
Returns value of setting that has TBool as a type.
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.
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.
Parameters
TInt
& aValue
|
stores setting when method has been succesfully called
|
Id()
Returns identification number for setting.
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.
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.
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.
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.
Parameters
const
TInt
aValue
|
setting's value
|
Type()
IMPORT_C
TAccModeSettingType
|
Type
|
(
|
)
|
const
|
Member Data Documentation
TAccModeSettingType
iType
TAccModeSettingType
|
iType
|
[private]
|
TBuf< KMaxAccModeSetting > iValue
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.