mozilla

Revision 166003 of Download Manager improvements in Firefox 3

  • Revision slug: Download_Manager_improvements_in_Firefox_3
  • Revision title: Download Manager improvements in Firefox 3
  • Revision id: 166003
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment add link to DM prefs article

Revision Content

{{template.Fx_minversion_header(3)}} Firefox 3 offers improvements to the Download Manager that allow multiple progress listeners, use of the Storage API for data management, download resuming, and more. In addition, you can augment or replace the Download Manager's user interface by implementing the new {{template.Interface("nsIDownloadManagerUI")}} interface.

{{template.Note("These changes will require some modest revisions to code using the Download Manager; several methods have had minor changes.")}}

Download Manager interfaces

{{template.Interface("nsIDownloadManager")}}
Gives applications and extensions access to the Download Manager, allowing them to add and remove files to the download list, retrieve information about past and present downloads, and request notifications as to the progress of downloads.
{{template.Interface("nsIDownload")}}
Describes a file in the download queue; these files may currently be queued for download, actively being downloaded, or finished being downloaded.
{{template.Interface("nsIDownloadProgressListener")}}
Applications and extensions implement this interface to be made aware of changes in the status of downloads.
{{template.Interface("nsIDownloadManagerUI")}}
Implement this interface to replace or augment the Download Manager user interface.

Other Download Manager documentation

Download Manager preferences
This article lists preferences used by the Download Manager as well as their default values.

Examples

Monitoring downloads
An example showing how to use the new Download Manager APIs to create a download log window that shows all past and present downloads and their status, including the start and end times of the downloads, the download speed, and more. Also demonstrates the Storage API.
{{ wiki.languages( { "ja": "ja/Download_Manager_improvements_in_Firefox_3" } ) }}

Revision Source

<p>{{template.Fx_minversion_header(3)}}
Firefox 3 offers improvements to the Download Manager that allow multiple progress listeners, use of the <a href="en/Storage">Storage</a> API for data management, download resuming, and more.  In addition, you can augment or replace the Download Manager's user interface by implementing the new {{template.Interface("nsIDownloadManagerUI")}} interface.
</p><p>{{template.Note("These changes will require some modest revisions to code using the Download Manager; several methods have had minor changes.")}}
</p>
<h3 name="Download_Manager_interfaces">Download Manager interfaces</h3>
<dl><dt>{{template.Interface("nsIDownloadManager")}}
</dt><dd>Gives applications and extensions access to the Download Manager, allowing them to add and remove files to the download list, retrieve information about past and present downloads, and request notifications as to the progress of downloads.
</dd><dt>{{template.Interface("nsIDownload")}}
</dt><dd>Describes a file in the download queue; these files may currently be queued for download, actively being downloaded, or finished being downloaded.
</dd><dt>{{template.Interface("nsIDownloadProgressListener")}}
</dt><dd>Applications and extensions implement this interface to be made aware of changes in the status of downloads.
</dd><dt>{{template.Interface("nsIDownloadManagerUI")}}
</dt><dd>Implement this interface to replace or augment the Download Manager user interface.
</dd></dl>
<h3 name="Other_Download_Manager_documentation">Other Download Manager documentation</h3>
<dl><dt><a href="en/Download_Manager_preferences">Download Manager preferences</a>
</dt><dd>This article lists preferences used by the Download Manager as well as their default values.
</dd></dl>
<h3 name="Examples">Examples</h3>
<dl><dt><a href="en/Monitoring_downloads">Monitoring downloads</a>
</dt><dd>An example showing how to use the new Download Manager APIs to create a download log window that shows all past and present downloads and their status, including the start and end times of the downloads, the download speed, and more.  Also demonstrates the <a href="en/Storage">Storage</a> API.
</dd></dl>
<div class="noinclude">
</div>
{{ wiki.languages( { "ja": "ja/Download_Manager_improvements_in_Firefox_3" } ) }}
Revert to this revision