sbLinuxFileSystemWatcher Class Reference

#include <sbLinuxFileSystemWatcher.h>

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

Public Member Functions

 sbLinuxFileSystemWatcher ()
 
virtual ~sbLinuxFileSystemWatcher ()
 
NS_IMETHOD StopWatching (PRBool aShouldSaveSession)
 
nsresult OnInotifyEvent ()
 
NS_IMETHOD OnChangeFound (const nsAString &aChangePath, EChangeType aChangeType)
 
NS_IMETHOD OnTreeReady (const nsAString &aTreeRootPath, sbStringArray &aDirPathArray)
 
- Public Member Functions inherited from sbBaseFileSystemWatcher
 sbBaseFileSystemWatcher ()
 
virtual ~sbBaseFileSystemWatcher ()
 
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

nsresult Cleanup ()
 
nsresult AddInotifyHook (const nsAString &aDirPath)
 

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 41 of file sbLinuxFileSystemWatcher.h.

Constructor & Destructor Documentation

sbLinuxFileSystemWatcher::sbLinuxFileSystemWatcher ( )

Definition at line 62 of file sbLinuxFileSystemWatcher.cpp.

sbLinuxFileSystemWatcher::~sbLinuxFileSystemWatcher ( )
virtual

Definition at line 69 of file sbLinuxFileSystemWatcher.cpp.

Here is the call graph for this function:

Member Function Documentation

nsresult sbLinuxFileSystemWatcher::AddInotifyHook ( const nsAString &  aDirPath)
protected

Definition at line 100 of file sbLinuxFileSystemWatcher.cpp.

Here is the caller graph for this function:

nsresult sbLinuxFileSystemWatcher::Cleanup ( )
protected

Definition at line 78 of file sbLinuxFileSystemWatcher.cpp.

Here is the caller graph for this function:

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

Reimplemented from sbBaseFileSystemWatcher.

Definition at line 213 of file sbLinuxFileSystemWatcher.cpp.

Here is the call graph for this function:

nsresult sbLinuxFileSystemWatcher::OnInotifyEvent ( )

Definition at line 155 of file sbLinuxFileSystemWatcher.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Reimplemented from sbBaseFileSystemWatcher.

Definition at line 251 of file sbLinuxFileSystemWatcher.cpp.

Here is the call graph for this function:

NS_IMETHODIMP sbLinuxFileSystemWatcher::StopWatching ( PRBool  aShouldSaveSession)

Definition at line 142 of file sbLinuxFileSystemWatcher.cpp.

Here is the call graph for this function:


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