|
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 #if !defined (__RESOURCEFILEREADER2_H__) |
|
17 #define __RESOURCEFILEREADER2_H__ |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <barsc.h> |
|
21 #include <barsread.h> |
|
22 |
|
23 #include "startsafe.h" |
|
24 #include "sysmonclisess.h" |
|
25 #include "StartupStateInfo.h" |
|
26 #include "startuputilprovider.h" |
|
27 |
|
28 |
|
29 class MStartupStateInfo; |
|
30 class CSystemStartupStateInfo; |
|
31 class MStartupCommand; |
|
32 |
|
33 /** This class is responsible for reading the supplied resource file and |
|
34 creating all the objects described by it. |
|
35 @internalComponent |
|
36 @deprecated |
|
37 */ |
|
38 class CResourceFileReader : public CBase |
|
39 { |
|
40 public: |
|
41 static CResourceFileReader* NewL(TInt aBootMode, RFs& aFs); |
|
42 static CResourceFileReader* NewLC(TInt aBootMode, RFs& aFs); |
|
43 ~CResourceFileReader(); |
|
44 |
|
45 MStartupStateInfo* GetStateInfoL(); |
|
46 |
|
47 private: |
|
48 CResourceFileReader(TInt aBootMode, RFs& aFs); |
|
49 void ConstructL(const TDesC& aResourceFile); |
|
50 void FindFirstStateEntryL(); |
|
51 CSystemStartupStateInfo* ReadStateInformationL(); |
|
52 CommandList ReadCommandListL(TUint32 aCommandListId); |
|
53 MStartupCommand* ReadDllInfoL(TResourceReader& aReader); |
|
54 MStartupCommand* ReadSplashScreenL(TResourceReader& aReader); |
|
55 MStartupCommand* ReadAppArcInitL(); |
|
56 MStartupCommand* ReadMultipleWaitInfoL(TResourceReader& aReader, CommandList& aDeferredList); |
|
57 MStartupCommand* ReadAmaInfoL(TResourceReader& aReader); |
|
58 void ValidateRestartMode(TInt aStartupMode); |
|
59 |
|
60 private: |
|
61 RFs iFs; |
|
62 TInt32 iState; |
|
63 TInt iBootMode; |
|
64 |
|
65 RResourceFile iResourceFile; |
|
66 CStartupUtilProvider *iStartupUtilProvider; |
|
67 TInt iMaxStartupMode; |
|
68 }; |
|
69 |
|
70 #endif // __RESOURCEFILEREADER2_H__ |