sbBaseFileSystemWatcher Class Reference

#include <sbBaseFileSystemWatcher.h>

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

Public Member Functions

 sbBaseFileSystemWatcher ()
 
virtual ~sbBaseFileSystemWatcher ()
 
NS_DECL_ISUPPORTS
NS_DECL_SBIFILESYSTEMWATCHER
NS_IMETHOD 
OnChangeFound (const nsAString &aChangePath, EChangeType aChangeType)
 
NS_IMETHOD OnTreeReady (const nsAString &aTreeRootPath, sbStringArray &aDirPathArray)
 
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 Attributes

nsRefPtr< sbFileSystemTreemTree
 
nsCOMPtr< sbIFileSystemListenermListener
 
nsString mWatchPath
 
nsID mSessionID
 
PRBool mIsRecursive
 
PRBool mIsWatching
 
PRBool mIsSupported
 
PRBool mShouldLoadSession
 

Additional Inherited Members

- Public Attributes inherited from sbIFileSystemWatcher
readonly attribute boolean isWatching
 
readonly attribute AString watchPath
 
readonly attribute ACString sessionGuid
 
readonly attribute boolean isSupported
 

Detailed Description

Definition at line 42 of file sbBaseFileSystemWatcher.h.

Constructor & Destructor Documentation

sbBaseFileSystemWatcher::sbBaseFileSystemWatcher ( )

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

Definition at line 42 of file sbBaseFileSystemWatcher.cpp.

sbBaseFileSystemWatcher::~sbBaseFileSystemWatcher ( )
virtual

Definition at line 53 of file sbBaseFileSystemWatcher.cpp.

Member Function Documentation

NS_IMETHODIMP sbBaseFileSystemWatcher::OnChangeFound ( const nsAString &  aChangePath,
EChangeType  aChangeType 
)
virtual

Implements sbFileSystemTreeListener.

Reimplemented in sbLinuxFileSystemWatcher.

Definition at line 215 of file sbBaseFileSystemWatcher.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

NS_IMETHODIMP sbBaseFileSystemWatcher::OnRootPathMissing ( )
virtual

Implements sbFileSystemTreeListener.

Definition at line 254 of file sbBaseFileSystemWatcher.cpp.

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

Implements sbFileSystemTreeListener.

Definition at line 269 of file sbBaseFileSystemWatcher.cpp.

Member Data Documentation

PRBool sbBaseFileSystemWatcher::mIsRecursive
protected

Definition at line 65 of file sbBaseFileSystemWatcher.h.

PRBool sbBaseFileSystemWatcher::mIsSupported
protected

Definition at line 67 of file sbBaseFileSystemWatcher.h.

PRBool sbBaseFileSystemWatcher::mIsWatching
protected

Definition at line 66 of file sbBaseFileSystemWatcher.h.

nsCOMPtr<sbIFileSystemListener> sbBaseFileSystemWatcher::mListener
protected

Definition at line 62 of file sbBaseFileSystemWatcher.h.

nsID sbBaseFileSystemWatcher::mSessionID
protected

Definition at line 64 of file sbBaseFileSystemWatcher.h.

PRBool sbBaseFileSystemWatcher::mShouldLoadSession
protected

Definition at line 68 of file sbBaseFileSystemWatcher.h.

nsRefPtr<sbFileSystemTree> sbBaseFileSystemWatcher::mTree
protected

Definition at line 61 of file sbBaseFileSystemWatcher.h.

nsString sbBaseFileSystemWatcher::mWatchPath
protected

Definition at line 63 of file sbBaseFileSystemWatcher.h.


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