#include <sbWin32FileSystemWatcher.h>
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 () |
sbStringSet * | GetEventPathsSet () |
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< sbFileSystemTree > | mTree |
nsCOMPtr< sbIFileSystemListener > | mListener |
nsString | mWatchPath |
nsID | mSessionID |
PRBool | mIsRecursive |
PRBool | mIsWatching |
PRBool | mIsSupported |
PRBool | mShouldLoadSession |
Definition at line 43 of file sbWin32FileSystemWatcher.h.
sbWin32FileSystemWatcher::sbWin32FileSystemWatcher | ( | ) |
|
virtual |
Definition at line 147 of file sbWin32FileSystemWatcher.cpp.
|
protected |
Definition at line 203 of file sbWin32FileSystemWatcher.cpp.
void * sbWin32FileSystemWatcher::GetBuffer | ( | ) |
Definition at line 282 of file sbWin32FileSystemWatcher.cpp.
sbStringSet * sbWin32FileSystemWatcher::GetEventPathsSet | ( | ) |
Definition at line 288 of file sbWin32FileSystemWatcher.cpp.
PRLock * sbWin32FileSystemWatcher::GetEventPathsSetLock | ( | ) |
Definition at line 294 of file sbWin32FileSystemWatcher.cpp.
PRBool sbWin32FileSystemWatcher::GetIsThreadRunning | ( | ) |
Definition at line 270 of file sbWin32FileSystemWatcher.cpp.
PRBool sbWin32FileSystemWatcher::GetShouldRunThread | ( | ) |
Definition at line 264 of file sbWin32FileSystemWatcher.cpp.
NS_IMETHODIMP sbWin32FileSystemWatcher::Init | ( | sbIFileSystemListener * | aListener, |
const nsAString & | aRootPath, | ||
PRBool | aIsRecursive | ||
) |
Definition at line 161 of file sbWin32FileSystemWatcher.cpp.
|
protected |
Definition at line 219 of file sbWin32FileSystemWatcher.cpp.
|
virtual |
Reimplemented from sbBaseFileSystemWatcher.
Definition at line 303 of file sbWin32FileSystemWatcher.cpp.
void sbWin32FileSystemWatcher::SetIsThreadRunning | ( | PRBool | aIsThreadRunning | ) |
Definition at line 276 of file sbWin32FileSystemWatcher.cpp.
NS_IMETHODIMP sbWin32FileSystemWatcher::StopWatching | ( | PRBool | aShouldSaveSession | ) |
Definition at line 179 of file sbWin32FileSystemWatcher.cpp.
void sbWin32FileSystemWatcher::WatchNextChange | ( | ) |
Definition at line 234 of file sbWin32FileSystemWatcher.cpp.
|
friend |
Definition at line 101 of file sbWin32FileSystemWatcher.cpp.