|
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 * FAT32 boot sector Class for FileSystem component |
|
16 * @internalComponent |
|
17 * @released |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 #ifndef FAT32BOOTSECTOR_H |
|
23 #define FAT32BOOTSECTOR_H |
|
24 |
|
25 #include "fatbasebootsector.h" |
|
26 |
|
27 /** |
|
28 Class representing Boot Sector of FAT32 types of fat volume. |
|
29 |
|
30 @internalComponent |
|
31 @released |
|
32 */ |
|
33 class TFAT32BootSector: public TFATBaseBootSector |
|
34 { |
|
35 public: |
|
36 TFAT32BootSector(); |
|
37 ~TFAT32BootSector(); |
|
38 void SetRootDirEntries(); |
|
39 void SetFileSysType(); |
|
40 void SetReservedSectors(); |
|
41 void ComputeSectorsPerCluster(Long64 aPartitionSize); |
|
42 void ComputeFatSectors(Long64 aPartitionSize); |
|
43 void SetExtFlags(); |
|
44 unsigned short ExtFlags(); |
|
45 void SetFileSystemVersion(); |
|
46 unsigned short FileSystemVersion(); |
|
47 void SetRootCluster(); |
|
48 unsigned int RootCluster(); |
|
49 void SetFSInfo(); |
|
50 unsigned short FSInfo(); |
|
51 void SetBackUpBootSector(); |
|
52 unsigned short BackUpBootSector(); |
|
53 void SetFutureReserved(); |
|
54 unsigned char* FutureReserved(); |
|
55 unsigned char* FileSysType(); |
|
56 |
|
57 protected: |
|
58 unsigned short iExtFlags; |
|
59 unsigned short iFileSystemVersion; //revision number |
|
60 unsigned int iRootCluster; |
|
61 unsigned short iFSInfo; //FSINFo structure sector number |
|
62 unsigned short iBackUpBootSector; //Sector area of the reserved area of the volume |
|
63 unsigned char iFutureReserved[KMaxSizeFutureExpansion]; |
|
64 }; |
|
65 |
|
66 |
|
67 |
|
68 #endif //FAT32BOOTSECTOR_H |