39 #include "nsISupports.idl"
56 [scriptable,
uuid(e1cf5762-1dd1-11b2-bc1c-a0de92947c7a)]
74 in PRInt32 fileCount);
116 [scriptable,
uuid(E53F7F77-9576-46FC-9F25-0A5A05A7E9CA)]
271 in
unsigned long aEndIndex);
299 [scriptable,
uuid(27431e35-b060-486e-ba58-76c5ae7f8c24)]
void setDirectory(in AString strDirectory)
Set the directory to scan.
AString getCurrentScanPath()
Returns the most recent directory scanned.
attribute boolean searchHidden
sbIFileScanCallback getCallback()
Get the callback object for the scan.
nsIArray getResultRangeAsURIStrings(in unsigned long aStartIndex, in unsigned long aEndIndex)
readonly attribute boolean flaggedExtensionsFound
Returns true if a flagged file extension set in |addFlaggedFileExtension()| was found during the file...
void setRecurse(in PRBool bRecurse)
Set the scan to run recursively under the given directory.
AString getFilePath(in PRUint32 nIndex)
Get the N'th file from the results of the scan.
PRUint32 getFileCount()
Get the number of files found.
void setIsScanning(in PRBool bIsScanning)
USER CODE SHOULD NOT REFERENCE THIS METHOD.
AString getFlaggedFilePath(in PRUint32 nIndex)
Get the N'th flagged file from the results of the scan.
The callback to the sbIFileScanQuery interface.
void addFlaggedFileExtension(in AString strExtension)
Add an extension that will not be added to the final discovered paths but will set the |flaggedExtens...
void addFilePath(in AString strFilePath)
USER CODE SHOULD NOT REFERENCE THIS METHOD.
attribute boolean wantLibraryContentURIs
void submitQuery(in sbIFileScanQuery pQuery)
Execute a sbIFileScanQuery object.
void addFileExtension(in AString strExtension)
void setCurrentScanPath(in AString strScanPath)
USER CODE SHOULD NOT REFERENCE THIS METHOD.
void setCallback(in sbIFileScanCallback pCallback)
Set the callback object for the scan.
PRBool getRecurse()
Whether or not the scan will run recursively.
void onFileScanStart()
The media scan is starting.
void onFileScanEnd()
The media scan is complete.
The engine in which to execute sbIFileScanQuery objects.
PRBool isCancelled()
USER CODE SHOULD NOT REFERENCE THIS METHOD.
AString getDirectory()
Get the directory to scan.
AString getLastFileFound()
Returns the most recent file found by the scan.
void onFileScanFile(in AString filePath, in PRInt32 fileCount)
The media scan has found (yet another) file.
PRBool isScanning()
Whether or not the scan operation is executing.
An object to scan through the files of a folder (and optionally subfolders)
void cancel()
Cancel the current scanning loop.
PRUint32 getFlaggedFileCount()
Get the number of flagged files found.