27 #include "nsISupports.idl"
44 [scriptable,
uuid(7a497d5c-1dd2-11b2-8c68-a37686c9bb01)]
156 [scriptable,
uuid(3267334a-a1ef-4bf3-b6e5-8c8ae5f19f44)]
179 #define SB_FILEDOWNLOADER_CONTRACTID \
180 "@songbirdnest.com/Songbird/FileDownloader;1"
void onProgress()
Called when progress is made on file download.
void cancel()
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.
void start()
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.
void onComplete()
Called when download has completed.