import"sbIWatchFolder.idl";
|
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 | start (in ACString aSessionGuid) |
| Starts watching. More...
|
|
ACString | stop () |
| Stops watching. More...
|
|
void | setFolder (in AString aPath, in boolean aSynchronizeMediaList) |
|
Definition at line 37 of file sbIWatchFolder.idl.
void sbIWatchFolder::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()|.
- Parameters
-
aFilePath | The absolute path to ignore. |
aCount | The number of times to ignore events for the given path. Passing in zero will have no effect. Passing in a negative number will decrement the previously recorded count. Attempts to decrement the count below zero will be silently clamped to zero. |
void sbIWatchFolder::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.
- Parameters
-
aFilePath | The absolute path to start ignoring. |
void sbIWatchFolder::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.
- Parameters
-
aFilePath | The absolute path to stop ignoring. |
void sbIWatchFolder::setFolder |
( |
in AString |
aPath, |
|
|
in boolean |
aSynchronizeMediaList |
|
) |
| |
void sbIWatchFolder::start |
( |
in ACString |
aSessionGuid | ) |
|
Starts watching.
- Parameters
-
aSessionGuid | An empty string or a string previously returned by stop(). If valid, the specified watch session resumes. Otherwise, start() begins a new watch session. |
- Todo:
- sbWatchFolderService will set aSessionGuid from PREF_WATCHFOLDER_SESSIONGUID
ACString sbIWatchFolder::stop |
( |
| ) |
|
Stops watching.
- Returns
- A session GUID. The GUID can be saved and later passed to start() to resume the stopped watch session.
- Todo:
- sbWatchFolderService will save the result in PREF_WATCHFOLDER_SESSIONGUID
attribute boolean sbIWatchFolder::canInteract |
readonly attribute boolean sbIWatchFolder::isRunning |
readonly attribute boolean sbIWatchFolder::isSupported |
readonly attribute AString sbIWatchFolder::path |
The documentation for this interface was generated from the following file: