|
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 * Long entry class for FileSystem component |
|
16 * @internalComponent |
|
17 * @released |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 #ifndef LONGENTRY_H |
|
23 #define LONGENTRY_H |
|
24 |
|
25 /** |
|
26 This class is used to represents the single Long entry attributes. |
|
27 The long entry can be directory/file/volume entry. |
|
28 Also declares the functions to operate on them. |
|
29 |
|
30 @internalComponent |
|
31 @released |
|
32 */ |
|
33 #include "messagehandler.h" |
|
34 #include "directory.h" |
|
35 #include "constants.h" |
|
36 |
|
37 class CLongEntry |
|
38 { |
|
39 public: |
|
40 char GetDirOrder() const; |
|
41 void SetDirOrder(char aDirOrder); |
|
42 String& GetSubName1(); |
|
43 void SetSubName1(String aSubName1); |
|
44 String& GetSubName2(); |
|
45 void SetSubName2(String aSubName2); |
|
46 String& GetSubName3(); |
|
47 void SetSubName3(String aSubName3); |
|
48 char GetAttribute() const; |
|
49 char GetCheckSum() const; |
|
50 char GetDirType() const; |
|
51 unsigned short int GetClusterNumberLow() const; |
|
52 |
|
53 private: |
|
54 char iDirOrder; //Order of this entry in the sequence of long directory entries |
|
55 String iSubName1; //character 1-5 of long name sub component |
|
56 char iAttribute; //LONG_FILE_NAME attribute |
|
57 char iDirType; //zero to mention subcomponent of directory entry |
|
58 char iCheckSum; //Check sum of Short directory entry name |
|
59 String iSubName2; //character 6-11 of long name sub component |
|
60 /* Low of cluster number, must be zero for existing disk utility compatible |
|
61 * reason |
|
62 */ |
|
63 unsigned short int iFirstClusterNumberLow; |
|
64 String iSubName3; //character 12-13 of long name sub component |
|
65 |
|
66 public: |
|
67 CLongEntry(char aChckSum); |
|
68 ~CLongEntry(); |
|
69 }; |
|
70 |
|
71 #endif //LONGENTRY_H |