This component implements the following interfaces:
readonly PRUint64 nsIDownload.amountTransferred
The amount of kbytes downloaded so far.
readonly nsICancelable nsIDownload.cancelable
Object that can be used to cancel the download. Will be null after the download is finished.
Whether the download should be cancelled when the progress dialog is closed using the standard OS close box. This is useful for showing the progress dialog as an information window, which is what download manager does.
The dialog object itself. This might be null if the dialog isn't open yet, or has been closed.
readonly PRUnichar* nsIDownload.displayName
The user-readable description of the transfer.
readonly nsIMIMEInfo nsIDownload.MIMEInfo
Optional. If set, it will contain the target's relevant MIME information. This includes it's MIME Type, helper app, and whether that helper should be executed.
Observer for this dialog. If set, receives the following topics: oncancel - observer should cancel the transfer onpause - observer should suspend the transfer onresume - observer should resume the suspended transfer For each of those, the subject will be the nsIProgressDialog.
readonly PRInt32 nsIDownload.percentComplete
The percentage of transfer completed. If the file size is unknown it'll be -1 here.
readonly PRUint64 nsIDownload.size
The size of file in kbytes. Unknown size is represented by 0.
readonly nsIURI nsIDownload.source
The source of the transfer.
readonly PRInt64 nsIDownload.startTime
The time a transfer was started.
readonly nsIURI nsIDownload.target
The target of the transfer.
readonly nsILocalFile nsIDownload.targetFile
The target of a download is always a file on the local file system.
Reference documentation is generated from Mozilla's source.