diff -r 000000000000 -r e4d67989cc36 genericservices/taskscheduler/SCHSVR/SchSSAMan.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/genericservices/taskscheduler/SCHSVR/SchSSAMan.h Tue Feb 02 02:01:42 2010 +0200 @@ -0,0 +1,61 @@ +// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +#ifndef __SCHSSAMAN_H__ +#define __SCHSSAMAN_H__ + +#include +#include +#include +#include +#include +#include + +#include "SchSSAObserver.h" + +/** +This class interacts with the Domain Manager to be kept aware of the current +system startup state. It also contains a list of MSchStartupStateObserver objects. +It will distribute the startup state changes to registered observers. + +@internalComponent +*/ +NONSHARABLE_CLASS(CSchStartupStateMgr) : public CDmDomain + { +public: + CSchStartupStateMgr(TDmHierarchyId aHierarchyId, TDmDomainId aDomainId); + virtual ~CSchStartupStateMgr(); + void InitialiseL(); + void RegisterObserverL(const MSchStartupStateObserver* aObs); + TStartupStateIdentifier CurrentStartupState(); + +protected: + //inherited from CActive + void RunL(); + TInt RunError(TInt aError); + +private: + void UpdateStateAwareObjectsL(TStartupStateIdentifier aKnownState); + TStartupStateIdentifier GetKnownStartupState(TDmDomainState aStartupState); + +private: + /** A list of MStartup StateObserver objects */ + RPointerArray iObserverList; + + /** Current startup state*/ + TStartupStateIdentifier iCurrentStartupState; + + }; +#endif // __SCHSSAMAN_H__