sbWin32FileSystemWatcher Class Reference

#include <sbWin32FileSystemWatcher.h>

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

Public Member Functions

 sbWin32FileSystemWatcher ()
 
virtual ~sbWin32FileSystemWatcher ()
 
NS_DECL_ISUPPORTS_INHERITED
NS_DECL_NSIOBSERVER
NS_DECL_NSITIMERCALLBACK
NS_IMETHOD 
Init (sbIFileSystemListener *aListener, const nsAString &aRootPath, PRBool aIsRecursive)
 
NS_IMETHOD StopWatching (PRBool aShouldSaveSession)
 
NS_IMETHOD OnTreeReady (const nsAString &aTreeRootPath, sbStringArray &aDirPathArray)
 
PRBool GetShouldRunThread ()
 
PRBool GetIsThreadRunning ()
 
void SetIsThreadRunning (PRBool aIsThreadRunning)
 
void * GetBuffer ()
 
sbStringSetGetEventPathsSet ()
 
PRLock * GetEventPathsSetLock ()
 
void WatchNextChange ()
 
- Public Member Functions inherited from sbBaseFileSystemWatcher
 sbBaseFileSystemWatcher ()
 
virtual ~sbBaseFileSystemWatcher ()
 
NS_DECL_ISUPPORTS
NS_DECL_SBIFILESYSTEMWATCHER
NS_IMETHOD 
OnChangeFound (const nsAString &aChangePath, EChangeType aChangeType)
 
NS_IMETHOD OnRootPathMissing ()
 
NS_IMETHOD OnTreeSessionLoadError ()
 
- Public Member Functions inherited from sbIFileSystemWatcher
void init (in sbIFileSystemListener aListener, in AString aRootPath, in boolean aIsRecursive)
 
void initWithSession (in ACString aSessionGuid, in sbIFileSystemListener aListener)
 
void startWatching ()
 
void stopWatching (in boolean aShouldSaveSession)
 
void deleteSession (in ACString aSessionGuid)
 
- Public Member Functions inherited from sbFileSystemTreeListener
virtual ~sbFileSystemTreeListener ()
 

Protected Member Functions

void Cleanup ()
 
void InitRebuildThread ()
 

Friends

DWORD WINAPI BackgroundThreadProc (void *p)
 

Additional Inherited Members

- Public Attributes inherited from sbIFileSystemWatcher
readonly attribute boolean isWatching
 
readonly attribute AString watchPath
 
readonly attribute ACString sessionGuid
 
readonly attribute boolean isSupported
 
- Protected Attributes inherited from sbBaseFileSystemWatcher
nsRefPtr< sbFileSystemTreemTree
 
nsCOMPtr< sbIFileSystemListenermListener
 
nsString mWatchPath
 
nsID mSessionID
 
PRBool mIsRecursive
 
PRBool mIsWatching
 
PRBool mIsSupported
 
PRBool mShouldLoadSession
 

Detailed Description

Definition at line 43 of file sbWin32FileSystemWatcher.h.

Constructor & Destructor Documentation

sbWin32FileSystemWatcher::sbWin32FileSystemWatcher ( )
sbWin32FileSystemWatcher::~sbWin32FileSystemWatcher ( )
virtual

Definition at line 147 of file sbWin32FileSystemWatcher.cpp.

Here is the call graph for this function:

Member Function Documentation

void sbWin32FileSystemWatcher::Cleanup ( )
protected

Definition at line 203 of file sbWin32FileSystemWatcher.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void * sbWin32FileSystemWatcher::GetBuffer ( )

Definition at line 282 of file sbWin32FileSystemWatcher.cpp.

Here is the caller graph for this function:

sbStringSet * sbWin32FileSystemWatcher::GetEventPathsSet ( )

Definition at line 288 of file sbWin32FileSystemWatcher.cpp.

Here is the caller graph for this function:

PRLock * sbWin32FileSystemWatcher::GetEventPathsSetLock ( )

Definition at line 294 of file sbWin32FileSystemWatcher.cpp.

Here is the caller graph for this function:

PRBool sbWin32FileSystemWatcher::GetIsThreadRunning ( )

Definition at line 270 of file sbWin32FileSystemWatcher.cpp.

Here is the caller graph for this function:

PRBool sbWin32FileSystemWatcher::GetShouldRunThread ( )

Definition at line 264 of file sbWin32FileSystemWatcher.cpp.

Here is the caller graph for this function:

NS_IMETHODIMP sbWin32FileSystemWatcher::Init ( sbIFileSystemListener aListener,
const nsAString &  aRootPath,
PRBool  aIsRecursive 
)

Definition at line 161 of file sbWin32FileSystemWatcher.cpp.

Here is the call graph for this function:

void sbWin32FileSystemWatcher::InitRebuildThread ( )
protected

Definition at line 219 of file sbWin32FileSystemWatcher.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

NS_IMETHODIMP sbWin32FileSystemWatcher::OnTreeReady ( const nsAString &  aTreeRootPath,
sbStringArray aDirPathArray 
)
virtual

Reimplemented from sbBaseFileSystemWatcher.

Definition at line 303 of file sbWin32FileSystemWatcher.cpp.

Here is the call graph for this function:

void sbWin32FileSystemWatcher::SetIsThreadRunning ( PRBool  aIsThreadRunning)

Definition at line 276 of file sbWin32FileSystemWatcher.cpp.

Here is the caller graph for this function:

NS_IMETHODIMP sbWin32FileSystemWatcher::StopWatching ( PRBool  aShouldSaveSession)

Definition at line 179 of file sbWin32FileSystemWatcher.cpp.

Here is the call graph for this function:

void sbWin32FileSystemWatcher::WatchNextChange ( )

Definition at line 234 of file sbWin32FileSystemWatcher.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Friends And Related Function Documentation

DWORD WINAPI BackgroundThreadProc ( void *  p)
friend

Definition at line 101 of file sbWin32FileSystemWatcher.cpp.


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