#include <sbWatchFolderService.h>
|
| sbWatchFolderService () |
|
virtual | ~sbWatchFolderService () |
|
NS_DECL_ISUPPORTS
NS_DECL_SBIWATCHFOLDERSERVICE
NS_DECL_SBIFILESYSTEMLISTENER
NS_DECL_SBIMEDIALISTENUMERATIONLISTENER
NS_DECL_NSITIMERCALLBACK
NS_DECL_SBIJOBPROGRESSLISTENER
nsresult | Init () |
|
void | addIgnorePath (in AString aFilePath) |
| Add a absolute file path to be ignored by the watch folder service. This path will be ignored until it is removed via a call to |removeIgnorePath()|. Each call to |addIgnorePath()| should be balanced by a call to |removeIgnorePath()|. When used in conjunction with |addIgnoreCount()|, the count will be decremented as normal when the path is ignored. The path will continue to be ignored when the count reaches zero. More...
|
|
void | removeIgnorePath (in AString aFilePath) |
| Remove an absolute file path from the ignored paths list of the watch folder service. All future events at the specified path will be processed by the watch folders service. When used in conjunction with |addIgnoreCount()|, any remaining events specified by the count will still be ignored. More...
|
|
void | addIgnoreCount (in AString aFilePath, in long aCount) |
| Add an absolute file path to be ignore by the watch folder service. This path will be ignored for the given number of events, which includes file addition, deletion, or change. When used in conjunction with |addIgnorePath()| and |removeIgnorPath()|, the counter will be decremented as events are ignored. The path may continue to be ignored after the count reaches zero if any calls to |addIgnorePath()| are not balanced by calls to |removeIgnorePath()|. More...
|
|
void | onWatcherStarted () |
|
void | onWatcherStopped () |
|
void | onWatcherError (in unsigned long aErrorType, in AString aDescription) |
|
void | onFileSystemChanged (in AString aFilePath) |
|
void | onFileSystemRemoved (in AString aFilePath) |
|
void | onFileSystemAdded (in AString aFilePath) |
|
unsigned short | onEnumerationBegin (in sbIMediaList aMediaList) |
| Called when enumeration is about to begin. More...
|
|
unsigned short | onEnumeratedItem (in sbIMediaList aMediaList, in sbIMediaItem aMediaItem) |
| Called once for each item in the enumeration. More...
|
|
void | onEnumerationEnd (in sbIMediaList aMediaList, in nsresult aStatusCode) |
| Called when enumeration has completed. More...
|
|
void | onJobProgress (in sbIJobProgress aJobProgress) |
| Notification that an object implementing sbIJobProgress has changed. More...
|
|
|
static NS_METHOD | RegisterSelf (nsIComponentManager *aCompMgr, nsIFile *aPath, const char *aLoaderStr, const char *aType, const nsModuleComponentInfo *aInfo) |
|
Definition at line 82 of file sbWatchFolderService.h.
sbWatchFolderService::sbWatchFolderService |
( |
| ) |
|
sbWatchFolderService::~sbWatchFolderService |
( |
| ) |
|
|
virtual |
nsresult sbWatchFolderService::DecrementIgnoredPathCount |
( |
const nsAString & |
aFilePath, |
|
|
PRBool * |
aIsIgnoredPath |
|
) |
| |
|
protected |
nsresult sbWatchFolderService::EnumerateItemsByPaths |
( |
sbStringSet & |
aPathSet | ) |
|
|
protected |
nsresult sbWatchFolderService::GetFilePathURI |
( |
const nsAString & |
aFilePath, |
|
|
nsIURI ** |
aURIRetVal |
|
) |
| |
|
protected |
nsresult sbWatchFolderService::GetSongbirdWindow |
( |
nsIDOMWindow ** |
aSongbirdWindow | ) |
|
|
protected |
nsresult sbWatchFolderService::GetURIArrayForStringPaths |
( |
sbStringSet & |
aPathsSet, |
|
|
nsIArray ** |
aURIs |
|
) |
| |
|
protected |
nsresult sbWatchFolderService::HandleRootPathMissing |
( |
| ) |
|
|
protected |
nsresult sbWatchFolderService::HandleSessionLoadError |
( |
| ) |
|
|
protected |
nsresult sbWatchFolderService::Init |
( |
| ) |
|
nsresult sbWatchFolderService::InitInternal |
( |
| ) |
|
|
protected |
nsresult sbWatchFolderService::OnAppShutdown |
( |
| ) |
|
|
protected |
nsresult sbWatchFolderService::OnAppStartup |
( |
| ) |
|
|
protected |
nsresult sbWatchFolderService::OnEnableWatchFolderChanged |
( |
PRBool |
aShouldEnable | ) |
|
|
protected |
nsresult sbWatchFolderService::OnWatchFolderPathChanged |
( |
const nsAString & |
aNewPath | ) |
|
|
protected |
nsresult sbWatchFolderService::ProcessAddedPaths |
( |
| ) |
|
|
protected |
nsresult sbWatchFolderService::ProcessEventPaths |
( |
| ) |
|
|
protected |
NS_METHOD sbWatchFolderService::RegisterSelf |
( |
nsIComponentManager * |
aCompMgr, |
|
|
nsIFile * |
aPath, |
|
|
const char * |
aLoaderStr, |
|
|
const char * |
aType, |
|
|
const nsModuleComponentInfo * |
aInfo |
|
) |
| |
|
static |
nsresult sbWatchFolderService::SetEventPumpTimer |
( |
| ) |
|
|
protected |
nsresult sbWatchFolderService::SetStartupDelayTimer |
( |
| ) |
|
|
protected |
nsresult sbWatchFolderService::StartWatchingFolder |
( |
| ) |
|
|
protected |
nsresult sbWatchFolderService::StopWatchingFolder |
( |
| ) |
|
|
protected |
The documentation for this class was generated from the following files: