606
|
1 |
/*
|
|
2 |
* Copyright (c) 2006-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 * @released
|
|
16 |
* DriveImage class declaration.
|
|
17 |
*
|
|
18 |
*/
|
|
19 |
|
|
20 |
|
|
21 |
#ifndef __R_DRIVEIMAGE_H__
|
|
22 |
#define __R_DRIVEIMAGE_H__
|
|
23 |
|
|
24 |
#include <fstream>
|
|
25 |
#include <vector>
|
|
26 |
|
|
27 |
const TInt KMaxGenBuffer=0x14;
|
|
28 |
|
|
29 |
// Node Type.
|
|
30 |
enum KNodeType
|
|
31 |
{
|
|
32 |
KNodeTypeNone=0,
|
|
33 |
KNodeTypeRoot,
|
|
34 |
KNodeTypeChild,
|
|
35 |
KNodeTypeSibling
|
|
36 |
};
|
|
37 |
|
|
38 |
// File Format Supported.
|
|
39 |
|
|
40 |
class TFSNode ;
|
|
41 |
// Image creation class.
|
|
42 |
class CDriveImage
|
|
43 |
{
|
|
44 |
public:
|
|
45 |
CDriveImage(CObeyFile *aObey);
|
|
46 |
~CDriveImage();
|
|
47 |
TInt CreateImage(const char* alogfile);
|
|
48 |
|
|
49 |
private:
|
|
50 |
|
|
51 |
TFSNode* PrepareFileSystem(TRomNode* aRomNode);
|
|
52 |
// Holds the address of CObeyFile object. used to get the object information.
|
|
53 |
CObeyFile *iObey;
|
|
54 |
|
|
55 |
|
|
56 |
};
|
|
57 |
|
|
58 |
#endif
|