13 // Description: |
13 // Description: |
14 // f32\sfat32\inc\sl_leafdir_cache.inl |
14 // f32\sfat32\inc\sl_leafdir_cache.inl |
15 // |
15 // |
16 // |
16 // |
17 |
17 |
|
18 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
|
19 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
|
20 //!! |
|
21 //!! WARNING!! DO NOT edit this file !! '\sfat' component is obsolete and is not being used. '\sfat32'replaces it |
|
22 //!! |
|
23 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
|
24 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
|
25 |
|
26 |
18 /** |
27 /** |
19 @file |
28 @file |
20 @internalTechnology |
29 @internalTechnology |
21 |
30 |
22 Overloaded == operator |
31 Overloaded == operator |
23 |
32 |
24 @param aDirPos the position to compare |
33 @param aDirPos the position to compare |
25 @return EFalse if aDirPos matches self, else |
34 @return EFalse if aDirPos matches self, else |
26 ETrue |
35 ETrue |
27 */ |
36 */ |
28 TBool TLeafDirData::operator==(const TLeafDirData &aDirPos) const |
37 TBool TLeafDirData::operator==(const TLeafDirData &aDirPos) const |
29 { |
38 { |
30 return (aDirPos.iClusterNum == iClusterNum); |
39 return (aDirPos.iClusterNum == iClusterNum); |
31 } |
40 } |
32 |
41 |
33 /** |
42 /** |
34 Overloaded != operator |
43 Overloaded != operator |
35 |
44 |
36 @param aDirPos the position to compare |
45 @param aDirPos the position to compare |
37 @return EFlase if aDirPos matches self, else |
46 @return EFlase if aDirPos matches self, else |
38 ETrue |
47 ETrue |
39 */ |
48 */ |
40 TBool TLeafDirData::operator!=(const TLeafDirData &aDirPos) const |
49 TBool TLeafDirData::operator!=(const TLeafDirData &aDirPos) const |
41 { |
50 { |
42 return (aDirPos.iClusterNum != iClusterNum); |
51 return (aDirPos.iClusterNum != iClusterNum); |
43 } |
52 } |
44 |
53 |
45 /** |
54 /** |
46 'Get' function to retrieve the 'parent' node |
55 'Get' function to retrieve the 'parent' node |
47 |
56 |
48 @return the parent node |
57 @return the parent node |
49 */ |
58 */ |
50 CLeafDirTreeNode* CLeafDirTreeNode::Parent() |
59 CLeafDirTreeNode* CLeafDirTreeNode::Parent() |
51 { |
60 { |
52 return iParent; |
61 return iParent; |
53 } |
62 } |
54 |
63 |
55 /** |
64 /** |
56 Set Parent node |
65 Set Parent node |
57 |
66 |
58 @param the parent node to be set |
67 @param the parent node to be set |
59 */ |
68 */ |
60 void CLeafDirTreeNode::SetParent(CLeafDirTreeNode* aNode) |
69 void CLeafDirTreeNode::SetParent(CLeafDirTreeNode* aNode) |
61 { |
70 { |
62 iParent = aNode; |
71 iParent = aNode; |
63 } |
72 } |
64 |
73 |
65 /** |
74 /** |
66 'Get' function to retrieve children nodes |
75 'Get' function to retrieve children nodes |
67 |
76 |
68 @return the children nodes |
77 @return the children nodes |
69 */ |
78 */ |
70 RPointerArray<CLeafDirTreeNode>& CLeafDirTreeNode::Children() |
79 RPointerArray<CLeafDirTreeNode>& CLeafDirTreeNode::Children() |
71 { |
80 { |
72 return iChildren; |
81 return iChildren; |
73 } |
82 } |
74 |
83 |
75 /** |
84 /** |
76 'Get' function to retrieve dir location store by this node |
85 'Get' function to retrieve dir location store by this node |
77 |
86 |
78 @return the location of the directory |
87 @return the location of the directory |
79 */ |
88 */ |
80 TUint32 CLeafDirTreeNode::StartClusterNum() const |
89 TUint32 CLeafDirTreeNode::StartClusterNum() const |
81 { |
90 { |
82 return iLeafDirData.iClusterNum; |
91 return iLeafDirData.iClusterNum; |
83 } |
92 } |
84 |
93 |
85 const TLeafDirData& CLeafDirTreeNode::LeafDirData() const |
94 const TLeafDirData& CLeafDirTreeNode::LeafDirData() const |
86 { |
95 { |
87 return iLeafDirData; |
96 return iLeafDirData; |
88 } |
97 } |
89 |
98 |
90 /** |
99 /** |
91 Set position of the direcotry this node represents. |
100 Set position of the direcotry this node represents. |
92 |
101 |
93 @param aDirPos the position to be set |
102 @param aDirPos the position to be set |
94 */ |
103 */ |
95 void CLeafDirTreeNode::SetLeafDirData(const TLeafDirData& aLeafDirData) |
104 void CLeafDirTreeNode::SetLeafDirData(const TLeafDirData& aLeafDirData) |
96 { |
105 { |
97 iLeafDirData = aLeafDirData; |
106 iLeafDirData = aLeafDirData; |
98 } |
107 } |
99 |
108 |
100 /** |
109 /** |
101 'Get' function to retrieve dir path store by this node |
110 'Get' function to retrieve dir path store by this node |
102 |
111 |
103 @return the path of the directory |
112 @return the path of the directory |
104 */ |
113 */ |
105 const TDesC& CLeafDirTreeNode::Path() const |
114 const TDesC& CLeafDirTreeNode::Path() const |
106 { |
115 { |
107 return iPath; |
116 return iPath; |
108 } |
117 } |
109 |
118 |
110 /** |
119 /** |
111 Test if self is ERoot type |
120 Test if self is ERoot type |
112 |
121 |
113 @return ETrue if self is ERoot |
122 @return ETrue if self is ERoot |
114 EFalse if self is of other types |
123 EFalse if self is of other types |
115 */ |
124 */ |
116 TBool CLeafDirTreeNode::IsRoot() const |
125 TBool CLeafDirTreeNode::IsRoot() const |
117 { |
126 { |
118 return (iNodeType == ERoot); |
127 return (iNodeType == ERoot); |
119 } |
128 } |
120 |
129 |
121 /** |
130 /** |
122 Test if self is ELeaf type |
131 Test if self is ELeaf type |
123 |
132 |
124 @return ETrue if self is ELeaf |
133 @return ETrue if self is ELeaf |
125 EFalse if self is of other types |
134 EFalse if self is of other types |
126 */ |
135 */ |
127 TBool CLeafDirTreeNode::IsLeaf() |
136 TBool CLeafDirTreeNode::IsLeaf() |
128 { |
137 { |
129 return (iNodeType == ELeaf); |
138 return (iNodeType == ELeaf); |
130 } |
139 } |
131 |
140 |
132 /** |
141 /** |
133 Test if self is ELeafIntermediary type |
142 Test if self is ELeafIntermediary type |
134 |
143 |
135 @return ETrue if self is ELeafIntermediary |
144 @return ETrue if self is ELeafIntermediary |
136 EFalse if self is of other types |
145 EFalse if self is of other types |
137 */ |
146 */ |
138 TBool CLeafDirTreeNode::IsLeafIntermediary() |
147 TBool CLeafDirTreeNode::IsLeafIntermediary() |
139 { |
148 { |
140 return (iNodeType == ELeafIntermediary); |
149 return (iNodeType == ELeafIntermediary); |
141 } |
150 } |
142 |
151 |
143 /** |
152 /** |
144 Test if self is EPureIntermediary type |
153 Test if self is EPureIntermediary type |
145 |
154 |
146 @return ETrue if self is EPureIntermediary |
155 @return ETrue if self is EPureIntermediary |
147 EFalse if self is of other types |
156 EFalse if self is of other types |
148 */ |
157 */ |
149 TBool CLeafDirTreeNode::IsPureIntermediary() |
158 TBool CLeafDirTreeNode::IsPureIntermediary() |
150 { |
159 { |
151 return (iNodeType == EPureIntermediary); |
160 return (iNodeType == EPureIntermediary); |
152 } |
161 } |
153 |
162 |