Linux Mac OSX Windows

Implemented by


  
[scriptable, uuid(20e790a2-76c6-462d-851a-22ab6cbbe48b)]
interface nsIProgressDialog : nsIDownload

Attributes

 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.
attribute PRBool cancelDownloadOnClose
 The dialog object itself.  This might be null if the dialog isn't
 open yet, or has been closed.
attribute nsIDOMWindow dialog
 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.
attribute nsIObserver observer

Methods

 Open the dialog

 @param aParent  Parent window; optional (if null, then
                 a top-level window is created)
void open(in nsIDOMWindow aParent)