MStateAdaptation Class Reference

class MStateAdaptation

Member Functions Documentation

NotifyCancel()

voidNotifyCancel()[pure virtual]

This cancels the outstanding request for notification of events. Only one request for notification of fatal events is allowed for each connected session.

NotifyCoopSysEvent(TDes8 &, TRequestStatus &)

voidNotifyCoopSysEvent(TDes8 &aEvent,
TRequestStatus &aStatus
)[pure virtual]

Requests notification from the Cooperating system of any events that occur. TSsmCoopSysEventType TRequestStatus

Parameters

TDes8 & aEventone of TSsmCoopSysEventType event's for which notification is requested, packaged in a descriptor
TRequestStatus & aStatusto complete when the notification request has occurred

Release()

voidRelease()[pure virtual]

It is expected that Release will usually just call "delete this" on the object, but this will depend on the implementation of each policy.

RequestCancel()

voidRequestCancel()[pure virtual]

This cancels a previous request from one of the other five Request methods in this class. Only one request is allowed to be outstanding on each connection session.

RequestCoopSysPerformRestartActions(TInt, TRequestStatus &)

voidRequestCoopSysPerformRestartActions(TIntaReason,
TRequestStatus &aStatus
)[pure virtual]

Request the Cooperating System to perform any required restart actions, since a device restart is about to be performed. TRequestStatus

Parameters

TInt aReasonreason used by Cooperating System
TRequestStatus & aStatusto complete when the operation has finished

RequestCoopSysPerformRfsActions(TSsmRfsType, TRequestStatus &)

voidRequestCoopSysPerformRfsActions(TSsmRfsTypeaRfsType,
TRequestStatus &aStatus
)[pure virtual]

Request the Cooperating System to Restore Factory Settings. TSsmRfsType TRequestStatus

Parameters

TSsmRfsType aRfsTypetype of factory settings to be restored
TRequestStatus & aStatusto complete when the operation has finished

RequestCoopSysPerformShutdownActions(TInt, TRequestStatus &)

voidRequestCoopSysPerformShutdownActions(TIntaReason,
TRequestStatus &aStatus
)[pure virtual]

Request the Cooperating System to perform any required shutdown actions, since a device shutdown is about to be performed. TRequestStatus

Parameters

TInt aReasonreason used by Cooperating System
TRequestStatus & aStatusto complete when the operation has finished

RequestCoopSysSelfTest(TRequestStatus &)

voidRequestCoopSysSelfTest(TRequestStatus &aStatus)[pure virtual]

Request the Cooperating System to perform a self test. TRequestStatus

Parameters

TRequestStatus & aStatusto complete when the operation has finished

RequestCoopSysStateChange(TSsmState, TRequestStatus &)

voidRequestCoopSysStateChange(TSsmStateaState,
TRequestStatus &aStatus
)[pure virtual]

Request a Cooperating System to change system state. TSsmState TRequestStatus

Parameters

TSsmState aStatecontains the new System State
TRequestStatus & aStatusto complete when the operation has finished