CServerStartupMgr Class Reference

class CServerStartupMgr : public CDmDomain

This class interacts with the Domain Manager to be kept aware of the current system startup state. It also contains a list of MStartupStateObserver objects. It will distribute the startup state changes to the MStartupStateObserver objects in ECOM.

Inherits from

Constructor & Destructor Documentation

CServerStartupMgr(TDmHierarchyId, TDmDomainId, RFs &)

CServerStartupMgr(TDmHierarchyIdaHierarchyId,
TDmDomainIdaDomainId,
RFs &aFs
)

constructor of CServerStartupMgr

Parameters

TDmHierarchyId aHierarchyIdThe Id of the domain hierarchy to connect to.
TDmDomainId aDomainIdThe Id of the domain to connect to.
RFs & aFsA reference to a connected file server session.

~CServerStartupMgr()

~CServerStartupMgr()[virtual]

destructor

Member Functions Documentation

CurrentStartupState()

TStartupStateIdentifier CurrentStartupState()

Accessor to the current startup state

GetKnownStartupState(TDmDomainState)

TStartupStateIdentifier GetKnownStartupState(TDmDomainStateaStartupState)[private]

This method takes a a startup state which can be KSS or USS as a parameter, and returns a ECOM Known Startup State

Parameters

TDmDomainState aStartupStatea startup state which can be KSS or USS.

InitialiseL(TBool)

voidInitialiseL(TBoolaSsaEnabled)
This method indicates how the CServerStartupMgr interacts with the Domain manager to keep aware of the startup state change, and distribute it to the MStartupStateObserver objects inside ECOM.
Pre-condition
CServerStartupMgr is fully constructed.

Parameters

TBool aSsaEnabled

RegisterObserverL(const MStartupStateObserver *)

voidRegisterObserverL(const MStartupStateObserver *aObs)

Register the MStartupStateObserver object with the CServerStartupMgr.

Parameters

const MStartupStateObserver * aObsthe pointer to the MStartupStateObserver object to be registered with CServerStartupMgr.

RunError(TInt)

TInt RunError(TIntaError)[protected, virtual]

Handle the error if RunL leaves. Panic with the error code

Parameters

TInt aErrorerror code generated by the RunL(), not used here.

RunL()

voidRunL()[protected, virtual]

Executed when the startup state change is done, it does the same thing as the method InitialiseL() does when SSA is on and the CurrentStartupState is not EStartupStateNonCritical.

UpdateStateAwareObjectsL(TStartupStateIdentifier)

voidUpdateStateAwareObjectsL(TStartupStateIdentifieraKnownState)[private]

updates the MStartupStateObserver objects.

Parameters

TStartupStateIdentifier aKnownStatethe startup state passed into the MStartupStateObserver objects.

Member Data Documentation

TStartupStateIdentifier EKFinalStartupState

TStartupStateIdentifier EKFinalStartupState[private]

Final startup state

TStartupStateIdentifier iCurrentStartupState

TStartupStateIdentifier iCurrentStartupState[private]

Current startup state

RFs & iFs

RFs &iFs[private]

A reference to a connected file session

RPointerArray< MStartupStateObserver > iObserverList

RPointerArray< MStartupStateObserver >iObserverList[private]

A list of MStartup StateObserver objects