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 ( TDmHierarchyId aHierarchyId,
TDmDomainId aDomainId,
RFs & aFs
)

constructor of CServerStartupMgr

Parameters

TDmHierarchyId aHierarchyId The Id of the domain hierarchy to connect to.
TDmDomainId aDomainId The Id of the domain to connect to.
RFs & aFs A 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 ( TDmDomainState aStartupState ) [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 aStartupState a startup state which can be KSS or USS.

InitialiseL(TBool)

void InitialiseL ( TBool aSsaEnabled )
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 *)

void RegisterObserverL ( const MStartupStateObserver * aObs )

Register the MStartupStateObserver object with the CServerStartupMgr .

Parameters

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

RunError(TInt)

TInt RunError ( TInt aError ) [protected, virtual]

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

Parameters

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

RunL()

void RunL ( ) [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)

void UpdateStateAwareObjectsL ( TStartupStateIdentifier aKnownState ) [private]

updates the MStartupStateObserver objects.

Parameters

TStartupStateIdentifier aKnownState the 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