Update contrib.
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // f32\sfat32\inc\sl_leafdir_cache.inl
22 Overloaded == operator
24 @param aDirPos the position to compare
25 @return EFalse if aDirPos matches self, else
28 TBool TLeafDirData::operator==(const TLeafDirData &aDirPos) const
30 return (aDirPos.iClusterNum == iClusterNum);
34 Overloaded != operator
36 @param aDirPos the position to compare
37 @return EFlase if aDirPos matches self, else
40 TBool TLeafDirData::operator!=(const TLeafDirData &aDirPos) const
42 return (aDirPos.iClusterNum != iClusterNum);
46 'Get' function to retrieve the 'parent' node
48 @return the parent node
50 CLeafDirTreeNode* CLeafDirTreeNode::Parent()
58 @param the parent node to be set
60 void CLeafDirTreeNode::SetParent(CLeafDirTreeNode* aNode)
66 'Get' function to retrieve children nodes
68 @return the children nodes
70 RPointerArray<CLeafDirTreeNode>& CLeafDirTreeNode::Children()
76 'Get' function to retrieve dir location store by this node
78 @return the location of the directory
80 TUint32 CLeafDirTreeNode::StartClusterNum() const
82 return iLeafDirData.iClusterNum;
85 const TLeafDirData& CLeafDirTreeNode::LeafDirData() const
91 Set position of the direcotry this node represents.
93 @param aDirPos the position to be set
95 void CLeafDirTreeNode::SetLeafDirData(const TLeafDirData& aLeafDirData)
97 iLeafDirData = aLeafDirData;
101 'Get' function to retrieve dir path store by this node
103 @return the path of the directory
105 const TDesC& CLeafDirTreeNode::Path() const
111 Test if self is ERoot type
113 @return ETrue if self is ERoot
114 EFalse if self is of other types
116 TBool CLeafDirTreeNode::IsRoot() const
118 return (iNodeType == ERoot);
122 Test if self is ELeaf type
124 @return ETrue if self is ELeaf
125 EFalse if self is of other types
127 TBool CLeafDirTreeNode::IsLeaf()
129 return (iNodeType == ELeaf);
133 Test if self is ELeafIntermediary type
135 @return ETrue if self is ELeafIntermediary
136 EFalse if self is of other types
138 TBool CLeafDirTreeNode::IsLeafIntermediary()
140 return (iNodeType == ELeafIntermediary);
144 Test if self is EPureIntermediary type
146 @return ETrue if self is EPureIntermediary
147 EFalse if self is of other types
149 TBool CLeafDirTreeNode::IsPureIntermediary()
151 return (iNodeType == EPureIntermediary);