27 #include "nsISupports.idl"
179 #define SB_FILEDOWNLOADER_CONTRACTID \
Called when progress is made on file download.
Cancel file download.
attribute AString destinationFileExtension
Destination file extension. If a temporary file is created, set its file extension to destinationFile...
readonly attribute boolean succeeded
True if file downloaded successfully. Will be false if download is cancelled.
readonly attribute boolean complete
True if file download has completed, whether successful or not.
readonly attribute unsigned long percentComplete
Percentage (0-100) of bytes of file that have been downloaded.
Start file download from source URI to destination file. If source URI is not specified, use source URI spec. If destination file is not specified, create a temporary one.
readonly attribute unsigned long long bytesDownloaded
Number of bytes in file that have been downloaded.
attribute sbIFileDownloaderListener listener
Listener for download events.
readonly attribute nsIRequest request
The request object used during the file download.
attribute nsIURI sourceURI
URI of source of file.
attribute AString sourceURISpec
URI spec of source of file.
readonly attribute unsigned long long bytesToDownload
Number of bytes in file being downloaded.
attribute nsIFile destinationFile
Destination file. If not set when download is started, a temporary file will be created and set in de...
attribute sbITemporaryFileFactory temporaryFileFactory
Temporary file factory to use for any temporary files.
Called when download has completed.