|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __SCHSSAMAN_H__ |
|
17 #define __SCHSSAMAN_H__ |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <f32file.h> |
|
21 #include <startup.hrh> |
|
22 #include <domaindefs.h> |
|
23 #include <startupdomaindefs.h> |
|
24 #include <domainmember.h> |
|
25 |
|
26 #include "SchSSAObserver.h" |
|
27 |
|
28 /** |
|
29 This class interacts with the Domain Manager to be kept aware of the current |
|
30 system startup state. It also contains a list of MSchStartupStateObserver objects. |
|
31 It will distribute the startup state changes to registered observers. |
|
32 |
|
33 @internalComponent |
|
34 */ |
|
35 NONSHARABLE_CLASS(CSchStartupStateMgr) : public CDmDomain |
|
36 { |
|
37 public: |
|
38 CSchStartupStateMgr(TDmHierarchyId aHierarchyId, TDmDomainId aDomainId); |
|
39 virtual ~CSchStartupStateMgr(); |
|
40 void InitialiseL(); |
|
41 void RegisterObserverL(const MSchStartupStateObserver* aObs); |
|
42 TStartupStateIdentifier CurrentStartupState(); |
|
43 |
|
44 protected: |
|
45 //inherited from CActive |
|
46 void RunL(); |
|
47 TInt RunError(TInt aError); |
|
48 |
|
49 private: |
|
50 void UpdateStateAwareObjectsL(TStartupStateIdentifier aKnownState); |
|
51 TStartupStateIdentifier GetKnownStartupState(TDmDomainState aStartupState); |
|
52 |
|
53 private: |
|
54 /** A list of MStartup StateObserver objects */ |
|
55 RPointerArray<MSchStartupStateObserver> iObserverList; |
|
56 |
|
57 /** Current startup state*/ |
|
58 TStartupStateIdentifier iCurrentStartupState; |
|
59 |
|
60 }; |
|
61 #endif // __SCHSSAMAN_H__ |