27 #ifndef sbFileSystemNode_h_
28 #define sbFileSystemNode_h_
30 #include <nsAutoPtr.h>
32 #include <nsStringAPI.h>
34 #include <nsISerializable.h>
35 #include <nsIClassInfo.h>
39 typedef nsTArray<nsRefPtr<sbFileSystemNode> >
sbNodeArray;
40 typedef std::map<nsString, nsRefPtr<sbFileSystemNode> >
sbNodeMap;
56 NS_DECL_NSISERIALIZABLE
68 nsresult
Init(
const nsAString & aLeafName,
70 PRUint64 aLastModify);
87 nsresult
SetIsDir(
const PRBool aIsDir);
nsresult SetNodeID(PRUint32 aID)
virtual ~sbFileSystemNode()
sbNodeMap * GetChildren()
nsresult AddChild(sbFileSystemNode *aNode)
sbNodeMap::value_type sbNodeMapPair
nsresult GetLeafName(nsAString &aLeafName)
nsresult RemoveChild(sbFileSystemNode *aNode)
nsresult SetLeafName(const nsAString &aLeafName)
std::map< nsString, nsRefPtr< sbFileSystemNode > > sbNodeMap
nsresult GetParentID(PRUint32 *aOutID)
sbNodeMap::const_iterator sbNodeMapIter
nsresult GetIsDir(PRBool *aIsDir)
nsTArray< nsRefPtr< sbFileSystemNode > > sbNodeArray
nsresult SetIsDir(const PRBool aIsDir)
nsresult GetChildCount(PRUint32 *aChildCount)
nsresult GetNodeID(PRUint32 *aID)
nsresult ReplaceNode(const nsAString &aLeafName, sbFileSystemNode *aReplacementNode)
nsresult SetLastModify(const PRInt64 aLastModify)
nsresult SetParentID(const PRUint32 aID)
nsresult GetLastModify(PRInt64 *aLastModify)
nsresult SetChildren(const sbNodeMap &aNodeMap)
NS_DECL_ISUPPORTS NS_DECL_NSISERIALIZABLE NS_DECL_NSICLASSINFO nsresult Init(const nsAString &aLeafName, PRBool aIsDir, PRUint64 aLastModify)