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

Constructor & Destructor Documentation

RAccessoryMode()

IMPORT_C RAccessoryMode ( )

C++ default constructor.

Member Functions Documentation

CancelGetAccessoryMode()

IMPORT_C void CancelGetAccessoryMode ( ) const

Cancel GetAccessoryMode() .

Since
S60 3.1

CancelNotifyAccessoryModeChanged()

IMPORT_C void CancelNotifyAccessoryModeChanged ( ) const

Cancel NotifyAccessoryModeChanged() .

Since
S60 3.1

CloseSubSession()

IMPORT_C TInt CloseSubSession ( ) [virtual]

Closes the RAccessoryMode sub-session.

Since
S60 3.1
CreateSubSession()

CreateSubSession(RAccessoryServer &)

IMPORT_C TInt CreateSubSession ( RAccessoryServer & aSession ) [virtual]

Creates a new sub-session within an existing session.

Since
S60 3.1

Parameters

RAccessoryServer & aSession The session to which this sub-session will belong.

GetAccessoryMode(TAccPolAccessoryMode &)

IMPORT_C TInt GetAccessoryMode ( TAccPolAccessoryMode & aAccessoryMode ) const

Returns the current accessory mode.

Since
S60 3.1

Parameters

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

GetAccessoryMode(TRequestStatus &, TAccPolAccessoryMode &)

IMPORT_C void GetAccessoryMode ( TRequestStatus & aStatus,
TAccPolAccessoryMode & aAccessoryMode
)

Returns the current accessory mode.

Since
S60 3.1

Parameters

TRequestStatus & aStatus Indicates 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 & aAccessoryMode On successful request completion, contains the Accessory mode. TAccPolAccessoryMode is declared in AccPolAccessoryMode.h.

NotifyAccessoryModeChanged(TRequestStatus &, TAccPolAccessoryMode &)

IMPORT_C void NotifyAccessoryModeChanged ( 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 & aStatus Indicates 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 & aAccessoryMode On 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]