CSaaStateAdaptation Class Reference

class CSaaStateAdaptation : public CAdaptationBase

Inherits from

Public Member Functions
~CSaaStateAdaptation ()
CSaaStateAdaptation * NewL ( CStartupAdaptationAdapter *)
void ProcessEventL ( TSsmCoopSysEventType )
Private Member Functions
CSaaStateAdaptation ( CStartupAdaptationAdapter *)
void ConstructL ()
StartupAdaptation::TGlobalState MapToStartupAdaptationState ( TSsmState )
void NotifyCancel ()
void NotifyCoopSysEvent ( TDes8 &, TRequestStatus &)
TDesC8 * ParameterPckg ()
void Release ()
void RequestCancel ()
void RequestComplete (const StartupAdaptation::TCommand , TDesC8 &)
void RequestCoopSysPerformRestartActions ( TInt , TRequestStatus &)
void RequestCoopSysPerformRfsActions ( TSsmRfsType , TRequestStatus &)
void RequestCoopSysPerformShutdownActions ( TInt , TRequestStatus &)
void RequestCoopSysSelfTest ( TRequestStatus &)
void RequestCoopSysStateChange ( 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()

void ConstructL ( ) [private]

MapToStartupAdaptationState(TSsmState)

StartupAdaptation::TGlobalState MapToStartupAdaptationState ( TSsmState aState ) [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()

void NotifyCancel ( ) [private, virtual]

NotifyCoopSysEvent(TDes8 &, TRequestStatus &)

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

Parameters

TDes8 & aEvent
TRequestStatus & aStatus

ParameterPckg()

TDesC8 * ParameterPckg ( ) [private, virtual]

See CAdaptationBase for description of method.

ProcessEventL(TSsmCoopSysEventType)

void ProcessEventL ( TSsmCoopSysEventType aEventType )

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

Parameters

TSsmCoopSysEventType aEventType

Release()

void Release ( ) [private, virtual]

RequestCancel()

void RequestCancel ( ) [private, virtual]

RequestComplete(const StartupAdaptation::TCommand, TDesC8 &)

void RequestComplete ( const StartupAdaptation::TCommand aCommandId,
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 &)

void RequestCoopSysPerformRestartActions ( TInt aReason,
TRequestStatus & aStatus
) [private, virtual]

Parameters

TInt aReason
TRequestStatus & aStatus

RequestCoopSysPerformRfsActions(TSsmRfsType, TRequestStatus &)

void RequestCoopSysPerformRfsActions ( TSsmRfsType aRfsType,
TRequestStatus & aStatus
) [private, virtual]

Parameters

TSsmRfsType aRfsType
TRequestStatus & aStatus

RequestCoopSysPerformShutdownActions(TInt, TRequestStatus &)

void RequestCoopSysPerformShutdownActions ( TInt aReason,
TRequestStatus & aStatus
) [private, virtual]

Parameters

TInt aReason
TRequestStatus & aStatus

RequestCoopSysSelfTest(TRequestStatus &)

void RequestCoopSysSelfTest ( TRequestStatus & aStatus ) [private, virtual]

Parameters

TRequestStatus & aStatus

RequestCoopSysStateChange(TSsmState, TRequestStatus &)

void RequestCoopSysStateChange ( TSsmState aState,
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]