RAccessorySettings Class Reference
class RAccessorySettings : public RAccessorySubsessionBase |
Accessory Settings sub-session. Accessory Settings provides methods for changing and checking status of accessory related settings.
This class is not intended for user derivation.
AccClient.lib
- Since
- S60 3.1
Inherited Functions |
---|
| RAccessorySubsessionBase::RAccessorySubsessionBase() |
| RSubSessionBase::CloseSubSession(TInt) |
| RSubSessionBase::CreateAutoCloseSubSession(RSessionBase &,TInt,const TIpcArgs &) |
| RSubSessionBase::CreateSubSession(const RSessionBase &,TInt) |
| RSubSessionBase::CreateSubSession(const RSessionBase &,TInt,const TIpcArgs &) |
| RSubSessionBase::RSubSessionBase() |
| RSubSessionBase::Send(TInt)const |
| RSubSessionBase::Send(TInt,const TIpcArgs &)const |
| RSubSessionBase::SendReceive(TInt)const |
| RSubSessionBase::SendReceive(TInt,TRequestStatus &)const |
| RSubSessionBase::SendReceive(TInt,const TIpcArgs &)const |
| RSubSessionBase::SendReceive(TInt,const TIpcArgs &,TRequestStatus &)const |
| RSubSessionBase::Session()const |
| RSubSessionBase::SubSessionHandle()const |
Constructor & Destructor Documentation
RAccessorySettings()
IMPORT_C | RAccessorySettings | ( | ) | |
Member Functions Documentation
CloseSubSession()
IMPORT_C TInt | CloseSubSession | ( | ) | [virtual] |
CreateSubSession(RAccessoryServer &)
Creates a new sub-session within an existing session.
GetAccessoryModeSetting(const TAccMode, TAccModeSetting &)
Returns one setting for specified accessory mode.
Parameters
const TAccMode aAccMode | Defines an accessory mode. Parameter has to be set before calling this method. |
TAccModeSetting & aSetting | Defines setting and it's value. Identification of setting has to be set to aSetting before calling this method. |
GetAccessoryModeSettings(const TAccMode, TAccModeSettingArray &)
Returns all settings for specified accessory mode.
Parameters
const TAccMode aAccMode | Defines accessory mode. Parameter has to be set before calling this method. |
TAccModeSettingArray & aArray | On return contains all existing settings for accessory mode. |
GetHWDeviceSettings(TUint32 &)
IMPORT_C TInt | GetHWDeviceSettings | ( | TUint32 & | aSettings | ) | const |
Returns current HW devices.
Parameters
TUint32 & aSettings | Bit mask storing one or several HW devices. At the moment only one setting is supported. See AccessoryTypes.h for HW device bit mask definitions. |
GetSupportedHWDeviceSettings(TUint32 &)
IMPORT_C TInt | GetSupportedHWDeviceSettings | ( | TUint32 & | aSettings | ) | |
Returns HW devices that can't be properly identified when they are connected to phone without additional information.
Parameters
TUint32 & aSettings | Bit mask storing one or several HW devices. See AccessoryTypes.h for HW device bit mask definitions. |
SetAccessoryModeSettingL(const TAccMode, TAccModeSetting &)
Sets one setting for specified accessory mode.
For example: When accessory mode is EAccModeWiredCarKit and settings id is KAccServerWiredCarKitLights then setting value must be type of enum TAccLightSettings.
- Since
- S60 3.1
- Exceptions
-
system-wide |
error code if failed.
|
Parameters
const TAccMode aAccMode | Defines an accessory mode. Parameter has to be set before calling this method. |
TAccModeSetting & aSetting | Defines setting and it's value. Fill in identification number and TInt, TBool or TDes type setting before calling this method. For details on how to fill in TAccModeSetting object see AccModeSetting.h. |
SetAccessoryModeSettingsL(const TAccMode, TAccModeSettingArray &)
Sets several settings for specified accessory mode.
- Since
- S60 3.1
- Exceptions
-
system-wide |
error code if failed.
|
Parameters
const TAccMode aAccMode | Defines an accessory mode. Parameter has to be set before calling this method. |
TAccModeSettingArray & aArray | Defines an array of several setting and value pairs. See AccModeSettingArray.h on how to add TAccModeSetting objects to array. For each TAccModeSetting object fill in identification number and TInt, TBool or TDes type setting. For details on how to fill in TAccModeSetting object see AccModeSetting.h. |
SetHWDeviceSettingsL(TUint32, TBool, TBool)
Sets or removes HW devices. Used to identify HW device properly when it's connected to phone.
- Since
- S60 3.1
- Exceptions
-
system-wide |
error code if failed.
|
Parameters
TUint32 aSettings | Bit mask storing one or several HW devices. At the moment only one setting is supported. New setting overrides possible current setting. See AccessoryTypes.h for HW device bit mask definitions. |
TBool aEnable = ETrue | ETrue: sets HW device. EFalse: removes HW device. |
TBool aForce = EFalse | Reserved for future use. |
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.