#include <sbMacFileSystemWatcher.h>
Public Member Functions | |
| sbMacFileSystemWatcher () | |
| virtual | ~sbMacFileSystemWatcher () |
| NS_IMETHOD | Init (sbIFileSystemListener *aListener, const nsAString &aRootPath, PRBool aIsRecursive) |
| NS_IMETHOD | InitWithSession (const nsACString &aSessionGuid, sbIFileSystemListener *aListener) |
| NS_IMETHOD | StopWatching (PRBool aShouldSaveSession) |
| NS_IMETHOD | OnTreeReady (const nsAString &aTreeRootPath, sbStringArray &aDirPathArray) |
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 | OnFileSystemEvents (const sbStringArray &aEventPaths) |
Static Protected Member Functions | |
| static void | FSEventCallback (ConstFSEventStreamRef aStreamRef, void *aClientCallbackInfo, size_t aNumEvents, const char *const aEventPaths[], const FSEventStreamEventFlags aEventFlags[], const FSEventStreamEventId aEventIds[]) |
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 40 of file sbMacFileSystemWatcher.h.
| sbMacFileSystemWatcher::sbMacFileSystemWatcher | ( | ) |
Definition at line 66 of file sbMacFileSystemWatcher.cpp.
|
virtual |
Definition at line 80 of file sbMacFileSystemWatcher.cpp.
|
staticprotected |
To log this module, set the following environment variable: NSPR_LOG_MODULES=sbMacFSWatcher:5
Definition at line 40 of file sbMacFileSystemWatcher.cpp.
| NS_IMETHODIMP sbMacFileSystemWatcher::Init | ( | sbIFileSystemListener * | aListener, |
| const nsAString & | aRootPath, | ||
| PRBool | aIsRecursive | ||
| ) |
| NS_IMETHODIMP sbMacFileSystemWatcher::InitWithSession | ( | const nsACString & | aSessionGuid, |
| sbIFileSystemListener * | aListener | ||
| ) |
|
protected |
Definition at line 135 of file sbMacFileSystemWatcher.cpp.
|
virtual |
Reimplemented from sbBaseFileSystemWatcher.
Definition at line 147 of file sbMacFileSystemWatcher.cpp.
| NS_IMETHODIMP sbMacFileSystemWatcher::StopWatching | ( | PRBool | aShouldSaveSession | ) |
Definition at line 110 of file sbMacFileSystemWatcher.cpp.