sbFileSystemTree Class Reference

#include <sbFileSystemTree.h>

Inheritance diagram for sbFileSystemTree:
[legend]
Collaboration diagram for sbFileSystemTree:
[legend]

Public Member Functions

 sbFileSystemTree ()
 
virtual ~sbFileSystemTree ()
 
NS_DECL_ISUPPORTS
NS_DECL_SBPIFILESYSTEMTREE
nsresult 
Init (const nsAString &aPath, PRBool aIsRecursive)
 
nsresult InitWithTreeSession (nsID &aSessionID)
 
nsresult Update (const nsAString &aPath)
 
nsresult SetListener (sbFileSystemTreeListener *aListener)
 
nsresult ClearListener ()
 
nsresult SaveTreeSession (const nsID &aSessionID)
 
nsString EnsureTrailingPath (const nsAString &aFilePath)
 
- Public Member Functions inherited from sbPIFileSystemTree
void notifyChanges (in AString aChangePath, in unsigned long aChangeType)
 

Protected Member Functions

nsresult InitTree ()
 
nsresult AddChildren (const nsAString &aPath, sbFileSystemNode *aParentNode, PRBool aBuildDiscoveredDirArray, PRBool aNotifyListener)
 
nsresult GetChildren (const nsAString &aPath, sbFileSystemNode *aParentNode, sbNodeMap &aNodeMap)
 
nsresult GetNode (const nsAString &aPath, sbFileSystemNode *aRootSearchNode, sbFileSystemNode **aNodeRetVal)
 
nsresult CreateNode (nsIFile *aFile, sbFileSystemNode *aParentNode, sbFileSystemNode **aNodeRetVal)
 
nsresult GetNodeChanges (sbFileSystemNode *aNode, const nsAString &aNodePath, sbNodeChangeArray &aOutChangeArray)
 
nsresult GetTreeChanges (sbFileSystemNode *aOldRootNode, sbPathChangeArray &aOutChangeArray)
 
nsresult NotifyDirAdded (sbFileSystemNode *aAddedDirNode, nsAString &aFullPath)
 
nsresult NotifyDirRemoved (sbFileSystemNode *aRemovedDirNode, nsAString &aFullPath)
 
nsresult CreateTreeEvents (sbNodeContextStack &aContextStack, EChangeType aChangeType, sbPathChangeArray &aChangeArray)
 
void RunBuildThread ()
 
void NotifyBuildComplete ()
 
void NotifyRootPathIsMissing ()
 
void NotifySessionLoadError ()
 

Static Protected Member Functions

static nsresult GetPathEntries (const nsAString &aPath, nsISimpleEnumerator **aResultEnum)
 
static nsresult CompareNodes (sbFileSystemNode *aNode1, sbFileSystemNode *aNode2, PRBool *aIsSame)
 
static nsresult AppendCreateNodeChangeItem (sbFileSystemNode *aChangedNode, EChangeType aChangeType, sbNodeChangeArray &aChangeArray)
 
static nsresult AppendCreatePathChangeItem (const nsAString &aEventPath, EChangeType aChangeType, sbPathChangeArray &aChangeArray)
 

Friends

class sbFileSystemTreeState
 

Detailed Description

Definition at line 54 of file sbFileSystemTree.h.

Constructor & Destructor Documentation

sbFileSystemTree::sbFileSystemTree ( )

Definition at line 79 of file sbFileSystemTree.cpp.

sbFileSystemTree::~sbFileSystemTree ( )
virtual

Definition at line 95 of file sbFileSystemTree.cpp.

Member Function Documentation

nsresult sbFileSystemTree::AddChildren ( const nsAString &  aPath,
sbFileSystemNode aParentNode,
PRBool  aBuildDiscoveredDirArray,
PRBool  aNotifyListener 
)
protected

Definition at line 470 of file sbFileSystemTree.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult sbFileSystemTree::AppendCreateNodeChangeItem ( sbFileSystemNode aChangedNode,
EChangeType  aChangeType,
sbNodeChangeArray aChangeArray 
)
staticprotected

Definition at line 1153 of file sbFileSystemTree.cpp.

Here is the caller graph for this function:

nsresult sbFileSystemTree::AppendCreatePathChangeItem ( const nsAString &  aEventPath,
EChangeType  aChangeType,
sbPathChangeArray aChangeArray 
)
staticprotected

Definition at line 1170 of file sbFileSystemTree.cpp.

Here is the caller graph for this function:

nsresult sbFileSystemTree::ClearListener ( )

Definition at line 441 of file sbFileSystemTree.cpp.

nsresult sbFileSystemTree::CompareNodes ( sbFileSystemNode aNode1,
sbFileSystemNode aNode2,
PRBool *  aIsSame 
)
staticprotected

Definition at line 1075 of file sbFileSystemTree.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult sbFileSystemTree::CreateNode ( nsIFile *  aFile,
sbFileSystemNode aParentNode,
sbFileSystemNode **  aNodeRetVal 
)
protected

Definition at line 663 of file sbFileSystemTree.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult sbFileSystemTree::CreateTreeEvents ( sbNodeContextStack aContextStack,
EChangeType  aChangeType,
sbPathChangeArray aChangeArray 
)
protected

Definition at line 1112 of file sbFileSystemTree.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsString sbFileSystemTree::EnsureTrailingPath ( const nsAString &  aFilePath)

Definition at line 1185 of file sbFileSystemTree.cpp.

Here is the caller graph for this function:

nsresult sbFileSystemTree::GetChildren ( const nsAString &  aPath,
sbFileSystemNode aParentNode,
sbNodeMap aNodeMap 
)
protected

Definition at line 536 of file sbFileSystemTree.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult sbFileSystemTree::GetNode ( const nsAString &  aPath,
sbFileSystemNode aRootSearchNode,
sbFileSystemNode **  aNodeRetVal 
)
protected

Definition at line 587 of file sbFileSystemTree.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult sbFileSystemTree::GetNodeChanges ( sbFileSystemNode aNode,
const nsAString &  aNodePath,
sbNodeChangeArray aOutChangeArray 
)
protected

Definition at line 713 of file sbFileSystemTree.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult sbFileSystemTree::GetPathEntries ( const nsAString &  aPath,
nsISimpleEnumerator **  aResultEnum 
)
staticprotected

Definition at line 1058 of file sbFileSystemTree.cpp.

Here is the caller graph for this function:

nsresult sbFileSystemTree::GetTreeChanges ( sbFileSystemNode aOldRootNode,
sbPathChangeArray aOutChangeArray 
)
protected

Definition at line 834 of file sbFileSystemTree.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult sbFileSystemTree::Init ( const nsAString &  aPath,
PRBool  aIsRecursive 
)

Definition at line 106 of file sbFileSystemTree.cpp.

Here is the call graph for this function:

nsresult sbFileSystemTree::InitTree ( )
protected

Definition at line 135 of file sbFileSystemTree.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult sbFileSystemTree::InitWithTreeSession ( nsID &  aSessionID)

Definition at line 121 of file sbFileSystemTree.cpp.

Here is the call graph for this function:

void sbFileSystemTree::NotifyBuildComplete ( )
protected

Definition at line 255 of file sbFileSystemTree.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult sbFileSystemTree::NotifyDirAdded ( sbFileSystemNode aAddedDirNode,
nsAString &  aFullPath 
)
protected

Definition at line 960 of file sbFileSystemTree.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult sbFileSystemTree::NotifyDirRemoved ( sbFileSystemNode aRemovedDirNode,
nsAString &  aFullPath 
)
protected

Definition at line 981 of file sbFileSystemTree.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void sbFileSystemTree::NotifyRootPathIsMissing ( )
protected

Definition at line 308 of file sbFileSystemTree.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void sbFileSystemTree::NotifySessionLoadError ( )
protected

Definition at line 318 of file sbFileSystemTree.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void sbFileSystemTree::RunBuildThread ( )
protected

Definition at line 164 of file sbFileSystemTree.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult sbFileSystemTree::SaveTreeSession ( const nsID &  aSessionID)

Definition at line 450 of file sbFileSystemTree.cpp.

nsresult sbFileSystemTree::SetListener ( sbFileSystemTreeListener aListener)

Definition at line 430 of file sbFileSystemTree.cpp.

nsresult sbFileSystemTree::Update ( const nsAString &  aPath)

Definition at line 328 of file sbFileSystemTree.cpp.

Here is the call graph for this function:

Friends And Related Function Documentation

friend class sbFileSystemTreeState
friend

Definition at line 56 of file sbFileSystemTree.h.


The documentation for this class was generated from the following files: