sbMacFileSystemWatcher Class Reference

#include <sbMacFileSystemWatcher.h>

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

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< sbFileSystemTreemTree
 
nsCOMPtr< sbIFileSystemListenermListener
 
nsString mWatchPath
 
nsID mSessionID
 
PRBool mIsRecursive
 
PRBool mIsWatching
 
PRBool mIsSupported
 
PRBool mShouldLoadSession
 

Detailed Description

Definition at line 40 of file sbMacFileSystemWatcher.h.

Constructor & Destructor Documentation

sbMacFileSystemWatcher::sbMacFileSystemWatcher ( )

Definition at line 66 of file sbMacFileSystemWatcher.cpp.

sbMacFileSystemWatcher::~sbMacFileSystemWatcher ( )
virtual

Definition at line 80 of file sbMacFileSystemWatcher.cpp.

Member Function Documentation

void sbMacFileSystemWatcher::FSEventCallback ( ConstFSEventStreamRef  aStreamRef,
void *  aClientCallbackInfo,
size_t  aNumEvents,
const char *const  aEventPaths[],
const FSEventStreamEventFlags  aEventFlags[],
const FSEventStreamEventId  aEventIds[] 
)
staticprotected

To log this module, set the following environment variable: NSPR_LOG_MODULES=sbMacFSWatcher:5

Definition at line 40 of file sbMacFileSystemWatcher.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 85 of file sbMacFileSystemWatcher.cpp.

Here is the call graph for this function:

NS_IMETHODIMP sbMacFileSystemWatcher::InitWithSession ( const nsACString &  aSessionGuid,
sbIFileSystemListener aListener 
)

Definition at line 98 of file sbMacFileSystemWatcher.cpp.

Here is the call graph for this function:

void sbMacFileSystemWatcher::OnFileSystemEvents ( const sbStringArray aEventPaths)
protected

Definition at line 135 of file sbMacFileSystemWatcher.cpp.

Here is the caller graph for this function:

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

Reimplemented from sbBaseFileSystemWatcher.

Definition at line 147 of file sbMacFileSystemWatcher.cpp.

Here is the call graph for this function:

NS_IMETHODIMP sbMacFileSystemWatcher::StopWatching ( PRBool  aShouldSaveSession)

Definition at line 110 of file sbMacFileSystemWatcher.cpp.

Here is the call graph for this function:


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