CSaaStateAdaptation Class Reference

class CSaaStateAdaptation : public CAdaptationBase

Inherits from

Public Member Functions
~CSaaStateAdaptation()
CSaaStateAdaptation *NewL(CStartupAdaptationAdapter *)
voidProcessEventL(TSsmCoopSysEventType)
Private Member Functions
CSaaStateAdaptation(CStartupAdaptationAdapter *)
voidConstructL()
StartupAdaptation::TGlobalState MapToStartupAdaptationState(TSsmState)
voidNotifyCancel()
voidNotifyCoopSysEvent(TDes8 &, TRequestStatus &)
TDesC8 *ParameterPckg()
voidRelease()
voidRequestCancel()
voidRequestComplete(const StartupAdaptation::TCommand, TDesC8 &)
voidRequestCoopSysPerformRestartActions(TInt, TRequestStatus &)
voidRequestCoopSysPerformRfsActions(TSsmRfsType, TRequestStatus &)
voidRequestCoopSysPerformShutdownActions(TInt, TRequestStatus &)
voidRequestCoopSysSelfTest(TRequestStatus &)
voidRequestCoopSysStateChange(TSsmState, TRequestStatus &)
Inherited Functions
CAdaptationBase::Busy()
CAdaptationBase::CAdaptationBase(CStartupAdaptationAdapter *)
CAdaptationBase::CancelRequest()
CAdaptationBase::CommandId()
CAdaptationBase::CompleteRequestStatus(TInt)
CAdaptationBase::Dispatched()
CAdaptationBase::SetCommandId(StartupAdaptation::TCommand)
CAdaptationBase::SetDispatched(TBool)
CAdaptationBase::SetRequestStatus(TRequestStatus *)
CAdaptationBase::~CAdaptationBase()
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Attributes
TDes8 *iEventOutputBuffer
RArray< TSsmCoopSysEventType >iEventQueue
TRequestStatus *iEventStatus
StartupAdaptation::TGlobalStateChangePckg iGlobalStatePckg
TBuf8< 1 >iNullBuf
StartupAdaptation::TResetReasonPckg iResetReasonPckg
StartupAdaptation::TRFSReasonPckg iRfsReasonPckg
Inherited Attributes
CAdaptationBase::iAdapter

Constructor & Destructor Documentation

CSaaStateAdaptation(CStartupAdaptationAdapter *)

CSaaStateAdaptation(CStartupAdaptationAdapter *aAdapter)[private]

Parameters

CStartupAdaptationAdapter * aAdapter

~CSaaStateAdaptation()

~CSaaStateAdaptation()

Member Functions Documentation

ConstructL()

voidConstructL()[private]

MapToStartupAdaptationState(TSsmState)

StartupAdaptation::TGlobalState MapToStartupAdaptationState(TSsmStateaState)[private, static]

Maps a TSsmState object into the associated StartupAdaptation::TGlobalState value.

Uses the following mappings:

ESWStateStartingUiServices = TSsmState(ESsmStartup, ESWStateStartingUiServices - ESWStateStartingUiServices + ESsmStartupSubStateNonCritical); ESWStateStartingCriticalApps = TSsmState(ESsmStartup, ESWStateStartingCriticalApps - ESWStateStartingUiServices + ESsmStartupSubStateNonCritical); ESWStateSelfTestOK = TSsmState(ESsmStartup, ESWStateSelfTestOK - ESWStateStartingUiServices + ESsmStartupSubStateNonCritical); // States for the security check phase. ESWStateSecurityCheck = TSsmState(ESsmStartup, ESWStateSecurityCheck - ESWStateStartingUiServices + ESsmStartupSubStateNonCritical); ESWStateCriticalPhaseOK = TSsmState(ESsmStartup, ESWStateCriticalPhaseOK - ESWStateStartingUiServices + ESsmStartupSubStateNonCritical); ESWStateEmergencyCallsOnly = TSsmState(ESsmStartup, ESWStateEmergencyCallsOnly - ESWStateStartingUiServices + ESsmStartupSubStateNonCritical); // Terminal states defined by the boot mode (and some other variables such as offline mode). ESWStateTest = TSsmState(ESsmStartup, ESWStateTest - ESWStateStartingUiServices + ESsmStartupSubStateNonCritical); ESWStateCharging = TSsmState(ESsmStartup, ESWStateCharging - ESWStateStartingUiServices + ESsmStartupSubStateNonCritical); ESWStateAlarm = TSsmState(ESsmStartup, ESWStateAlarm - ESWStateStartingUiServices + ESsmStartupSubStateNonCritical); ESWStateNormalRfOn = TSsmState(ESsmNormal, ESWStateNormalRfOn - ESWStateStartingUiServices + ESsmStartupSubStateCriticalStatic); ESWStateNormalRfOff = TSsmState(ESsmNormal, ESWStateNormalRfOff - ESWStateStartingUiServices + ESsmStartupSubStateCriticalStatic); ESWStateNormalBTSap = TSsmState(ESsmNormal, ESWStateNormalBTSap - ESWStateStartingUiServices + ESsmStartupSubStateCriticalStatic); // States for notifying adaptation about a terminal state change. ESWStateAlarmToCharging = TSsmState(ESsmStartup, ESWStateAlarmToCharging - ESWStateStartingUiServices + ESsmStartupSubStateNonCritical); ESWStateChargingToAlarm = TSsmState(ESsmStartup, ESWStateChargingToAlarm - ESWStateStartingUiServices + ESsmStartupSubStateNonCritical); ESWStateChargingToNormal = TSsmState(ESsmStartup, ESWStateChargingToNormal - ESWStateStartingUiServices + ESsmStartupSubStateNonCritical); ESWStateAlarmToNormal = TSsmState(ESsmStartup, ESWStateAlarmToNormal - ESWStateStartingUiServices + ESsmStartupSubStateNonCritical); // Shutdown-related states. ESWStateShuttingDown = TSsmState(ESsmShutdown, KSsmAnySubState); // Error states during critical phase. ESWStateFatalStartupError = TSsmState(ESsmFail, KSsmAnySubState);

Returns 0 on invalid TSsmState

Parameters

TSsmState aState

NewL(CStartupAdaptationAdapter *)

CSaaStateAdaptation *NewL(CStartupAdaptationAdapter *aAdapter)[static]

Parameters

CStartupAdaptationAdapter * aAdapter

NotifyCancel()

voidNotifyCancel()[private, virtual]

NotifyCoopSysEvent(TDes8 &, TRequestStatus &)

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

Parameters

TDes8 & aEvent
TRequestStatus & aStatus

ParameterPckg()

TDesC8 *ParameterPckg()[private, virtual]

See CAdaptationBase for description of method.

ProcessEventL(TSsmCoopSysEventType)

voidProcessEventL(TSsmCoopSysEventTypeaEventType)

Processes the event passed in and distributes to waiting client or queues event.

Parameters

TSsmCoopSysEventType aEventType

Release()

voidRelease()[private, virtual]

RequestCancel()

voidRequestCancel()[private, virtual]

RequestComplete(const StartupAdaptation::TCommand, TDesC8 &)

voidRequestComplete(const StartupAdaptation::TCommandaCommandId,
TDesC8 &aRetPckg
)[private, virtual]

Callback function called by the adaptation adapter when the command from this adaptation has been completed

Parameters

const StartupAdaptation::TCommand aCommandId
TDesC8 & aRetPckg

RequestCoopSysPerformRestartActions(TInt, TRequestStatus &)

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

Parameters

TInt aReason
TRequestStatus & aStatus

RequestCoopSysPerformRfsActions(TSsmRfsType, TRequestStatus &)

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

Parameters

TSsmRfsType aRfsType
TRequestStatus & aStatus

RequestCoopSysPerformShutdownActions(TInt, TRequestStatus &)

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

Parameters

TInt aReason
TRequestStatus & aStatus

RequestCoopSysSelfTest(TRequestStatus &)

voidRequestCoopSysSelfTest(TRequestStatus &aStatus)[private, virtual]

Parameters

TRequestStatus & aStatus

RequestCoopSysStateChange(TSsmState, TRequestStatus &)

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

Parameters

TSsmState aState
TRequestStatus & aStatus

Member Data Documentation

TDes8 * iEventOutputBuffer

TDes8 *iEventOutputBuffer[private]

RArray< TSsmCoopSysEventType > iEventQueue

RArray< TSsmCoopSysEventType >iEventQueue[private]

TRequestStatus * iEventStatus

TRequestStatus *iEventStatus[private]

StartupAdaptation::TGlobalStateChangePckg iGlobalStatePckg

StartupAdaptation::TGlobalStateChangePckg iGlobalStatePckg[private]

TBuf8< 1 > iNullBuf

TBuf8< 1 >iNullBuf[private]

StartupAdaptation::TResetReasonPckg iResetReasonPckg

StartupAdaptation::TResetReasonPckg iResetReasonPckg[private]

StartupAdaptation::TRFSReasonPckg iRfsReasonPckg

StartupAdaptation::TRFSReasonPckg iRfsReasonPckg[private]