RAccessoryMode Class Reference

class RAccessoryMode : public RAccessorySubsessionBase

Accessory Mode sub-session.

This class is not intended for user derivation.

AccClient.lib
Since
S60 3.1

Inherits from

Constructor & Destructor Documentation

RAccessoryMode()

IMPORT_CRAccessoryMode()

C++ default constructor.

Member Functions Documentation

CancelGetAccessoryMode()

IMPORT_C voidCancelGetAccessoryMode()const

Cancel GetAccessoryMode().

Since
S60 3.1

CancelNotifyAccessoryModeChanged()

IMPORT_C voidCancelNotifyAccessoryModeChanged()const

Cancel NotifyAccessoryModeChanged().

Since
S60 3.1

CloseSubSession()

IMPORT_C TIntCloseSubSession()[virtual]

Closes the RAccessoryMode sub-session.

Since
S60 3.1
CreateSubSession()

CreateSubSession(RAccessoryServer &)

IMPORT_C TIntCreateSubSession(RAccessoryServer &aSession)[virtual]

Creates a new sub-session within an existing session.

Since
S60 3.1

Parameters

RAccessoryServer & aSessionThe session to which this sub-session will belong.

GetAccessoryMode(TAccPolAccessoryMode &)

IMPORT_C TIntGetAccessoryMode(TAccPolAccessoryMode &aAccessoryMode)const

Returns the current accessory mode.

Since
S60 3.1

Parameters

TAccPolAccessoryMode & aAccessoryModeOn return, contains the Accessory mode. TAccPolAccessoryMode is declared in AccPolAccessoryMode.h.

GetAccessoryMode(TRequestStatus &, TAccPolAccessoryMode &)

IMPORT_C voidGetAccessoryMode(TRequestStatus &aStatus,
TAccPolAccessoryMode &aAccessoryMode
)

Returns the current accessory mode.

Since
S60 3.1

Parameters

TRequestStatus & aStatusIndicates the completion status of a request. KErrNone if successful, system-wide error code if failed. Specifically: KErrAlreadyExists, if request allready exist KErrCancel, if request is cancelled
TAccPolAccessoryMode & aAccessoryModeOn successful request completion, contains the Accessory mode. TAccPolAccessoryMode is declared in AccPolAccessoryMode.h.

NotifyAccessoryModeChanged(TRequestStatus &, TAccPolAccessoryMode &)

IMPORT_C voidNotifyAccessoryModeChanged(TRequestStatus &aStatus,
TAccPolAccessoryMode &aAccessoryMode
)

Issues a request for accessory mode changed notification. Request must be renewed after completion if further notifications are needed.

Since
S60 3.1

Parameters

TRequestStatus & aStatusIndicates the completion status of a request. KErrNone if successful, system-wide error code if failed. Specifically: KErrAlreadyExists, if request allready exist KErrCancel, if request is cancelled
TAccPolAccessoryMode & aAccessoryModeOn successful request completion, contains the updated Accessory Mode. TAccPolAccessoryMode is declared in AccPolAccessoryMode.h.

Member Data Documentation

TInt iFlags

TInt iFlags[private]

TPckg< TInt > iFlagsPckg

TPckg< TInt >iFlagsPckg[private]

TAccSrvAccessoryModePckg iGetAccessoryModePckg

TAccSrvAccessoryModePckg iGetAccessoryModePckg[private]

TAccSrvAccessoryModePckg iNotifyAccessoryModeChangedPckg

TAccSrvAccessoryModePckg iNotifyAccessoryModeChangedPckg[private]

TPckg< TInt > iReserved1

TPckg< TInt >iReserved1[private]

TPckg< TInt > iReserved2

TPckg< TInt >iReserved2[private]