equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2005-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 the License "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 * @internalComponent |
|
16 * @released |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef __IMAGE_HANDLER_H__ |
|
22 #define __IMAGE_HANDLER_H__ |
|
23 |
|
24 #include "image_reader.h" |
|
25 #include "sisutils.h" |
|
26 |
|
27 |
|
28 const unsigned int KRomBase = 0x80000000; |
|
29 const unsigned int KRomBaseMaxLimit = 0x82000000; |
|
30 |
|
31 |
|
32 |
|
33 class ImageHandler |
|
34 { |
|
35 public: |
|
36 ImageHandler(); |
|
37 ~ImageHandler(); |
|
38 |
|
39 void ProcessArgs(int argc, char**argv); |
|
40 |
|
41 void HandleInputFiles(); |
|
42 EImageType ReadMagicWord(); |
|
43 EImageType ReadBareImage(ifstream& aIfs); |
|
44 void PrintUsage(); |
|
45 void PrintVersion(); |
|
46 void SetInputFile(char* aFile) { iInputFileName = aFile;} |
|
47 |
|
48 private: |
|
49 ImageReader *iReader; |
|
50 string iInputFileName; |
|
51 string iOutFile; |
|
52 TUint iOptions; |
|
53 |
|
54 SisUtils *iSisUtils; |
|
55 }; |
|
56 |
|
57 #endif //__IMAGE_HANDLER_H__ |