|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef LAUNCHERDLLPARSER_H_ |
|
19 #define LAUNCHERDLLPARSER_H_ |
|
20 |
|
21 #include <e32base.h> |
|
22 #include <f32file.h> |
|
23 #include "launcherdllelement.h" |
|
24 |
|
25 #define UID1_OFFSET 0x00 |
|
26 #define UID2_OFFSET 0x04 |
|
27 #define UID3_OFFSET 0x08 |
|
28 #define SID_OFFSET_ROM 0x44 |
|
29 #define SID_OFFSET_ROFS 0x80 |
|
30 #define CAPABILITY_OFFSET_ROM 0x4c |
|
31 #define CAPABILITY_OFFSET_ROFS 0x88 |
|
32 |
|
33 class CLauncherDLLParser : public CBase |
|
34 { |
|
35 public: |
|
36 |
|
37 virtual ~CLauncherDLLParser(); |
|
38 static CLauncherDLLParser* NewL(); |
|
39 static CLauncherDLLParser* NewLC(); |
|
40 |
|
41 /** |
|
42 * Reads data from the given DLL-file and sets parsed data to given object. |
|
43 * @param aFileSession Reference to an open file session |
|
44 * @param aFile Reference to the DLL file object |
|
45 * @param aElement Reference to the element, which will contain the parsed data |
|
46 */ |
|
47 void ParseL( RFs& aFileSession, RFile& aFile, CLauncherDLLElement& aElement ); |
|
48 |
|
49 private: |
|
50 |
|
51 CLauncherDLLParser(); |
|
52 void ConstructL(); |
|
53 |
|
54 /** |
|
55 * Reads 32-bit unsigned integer from the given file. |
|
56 * @return 32-bit unsigned integer value. |
|
57 * @param aFile File handle. |
|
58 */ |
|
59 TUint32 ReadUint32L( RFile& aFile ); |
|
60 }; |
|
61 |
|
62 #endif /* LAUNCHERDLLPARSER_H_ */ |