605
|
1 |
/*
|
|
2 |
* Copyright (c) 2010 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 |
*
|
|
16 |
*/
|
|
17 |
#ifndef __FAT_CLUSTER_HEADER__
|
|
18 |
#define __FAT_CLUSTER_HEADER__
|
|
19 |
#include <e32std.h>
|
|
20 |
class TFatCluster {
|
|
21 |
public:
|
|
22 |
TFatCluster(int aIndex,int aActClustCnt = 1);
|
|
23 |
~TFatCluster();
|
|
24 |
bool Init(TUint aSize);
|
|
25 |
bool LazyInit(const char* aFileName,TUint aFileSize);
|
|
26 |
inline TUint8* GetData() const {return iData ; }
|
|
27 |
inline TUint GetSize() const { return iSize ;}
|
|
28 |
inline const char* GetFileName() const { return iFileName ;}
|
|
29 |
inline bool IsLazy() const { return iLazy;}
|
|
30 |
inline int ActualClusterCount() const { return iActualClusterCount;}
|
|
31 |
inline int GetIndex() const { return iIndex ;}
|
|
32 |
protected:
|
|
33 |
int iIndex ;
|
|
34 |
int iActualClusterCount ;
|
|
35 |
TUint iSize ; // length of file or size of data
|
|
36 |
TUint8* iData ;
|
|
37 |
char* iFileName ;
|
|
38 |
bool iLazy ;
|
|
39 |
};
|
|
40 |
|
|
41 |
#endif
|