components.conf |
|
561 |
content |
|
|
DownloadLastDir.sys.mjs |
-*- indent-tabs-mode: nil; js-indent-level: 2 -*- |
7857 |
DownloadUtils.sys.mjs |
This module provides the DownloadUtils object which contains useful methods
for downloads such as displaying file sizes, transfer times, and download
locations.
List of methods:
[string status, double newLast]
getDownloadStatus(int aCurrBytes, [optional] int aMaxBytes,
[optional] double aSpeed, [optional] double aLastSec)
string progress
getTransferTotal(int aCurrBytes, [optional] int aMaxBytes)
[string timeLeft, double newLast]
getTimeLeft(double aSeconds, [optional] double aLastSec)
[string dateCompact, string dateComplete]
getReadableDates(Date aDate, [optional] Date aNow)
[string displayHost, string fullHost]
getURIHost(string aURIString)
[string convertedBytes, string units]
convertByteUnits(int aBytes)
[int time, string units, int subTime, string subUnits]
convertTimeUnits(double aSecs)
|
19917 |
HelperAppDlg.sys.mjs |
Determines if a given directory is able to be used to download to.
@param aDirectory
The directory to check.
@return true if we can use the directory, false otherwise.
|
45888 |
jar.mn |
|
350 |
moz.build |
|
569 |
tests |
|
|