27 #ifndef sbFileSystemTreeState_h_
28 #define sbFileSystemTreeState_h_
34 #include <nsIUUIDGenerator.h>
35 #include <nsStringAPI.h>
40 typedef std::map<PRUint32, nsRefPtr<sbFileSystemNode> >
sbNodeIDMap;
54 const nsID & aSessionID);
57 nsString & aSessionAbsolutePath,
58 PRBool *aIsRecursiveWatch,
78 PRUint32 *aNodeCount);
81 nsCOMPtr<nsIUUIDGenerator> mUuidGen;
84 #endif // sbFileSystemTreeState_h_
nsresult LoadTreeState(nsID &aSessionID, nsString &aSessionAbsolutePath, PRBool *aIsRecursiveWatch, sbFileSystemNode **aOutRootNode)
nsresult GetTreeNodeCount(sbFileSystemNode *aRootNode, PRUint32 *aNodeCount)
static nsresult DeleteSavedTreeState(const nsID &aSessionID)
nsresult AssignRelationships(sbFileSystemNode *aChildNode, sbNodeIDMap &aParentGuidMap)
NS_DECL_ISUPPORTS nsresult SaveTreeState(sbFileSystemTree *aFileSystemTree, const nsID &aSessionID)
virtual ~sbFileSystemTreeState()
static nsresult GetTreeSessionFile(const nsID &aSessionID, PRBool aShouldCreate, nsIFile **aOutFile)
sbNodeIDMap::const_iterator sbNodeIDMapIter
std::map< PRUint32, nsRefPtr< sbFileSystemNode > > sbNodeIDMap
nsresult WriteNode(sbFileObjectOutputStream *aOutputStream, sbFileSystemNode *aOutNode)
sbNodeIDMap::value_type sbNodeIDMapPair
nsresult ReadNode(sbFileObjectInputStream *aInputStream, sbFileSystemNode **aOutNode)