27 #include "nsISupports.idl"
44 [scriptable,
uuid(13979e02-1dd2-11b2-9e89-eefb590278a8)]
66 readonly attribute
unsigned short status;
93 readonly attribute
unsigned long total;
128 [scriptable,
function,
uuid(75302170-1174-11dd-bd0b-0200200c9a66)]
145 [scriptable,
uuid(2693a1e5-7e07-4730-bf3b-68e76dd95f90)]
void onJobProgress(in sbIJobProgress aJobProgress)
Notification that an object implementing sbIJobProgress has changed.
readonly attribute AString statusText
Localized message describing the status of the job.
readonly attribute unsigned long errorCount
Number of errors that have been encountered.
Generic interface for exposing long running jobs to the UI.
const unsigned short STATUS_SUCCEEDED
Constant indicating that the job has completed.
Generic interface extending sbIJobProgress that can track expected time, etc in addition to abstract ...
const unsigned short STATUS_RUNNING
Constant indicating that the job is active.
nsIStringEnumerator getErrorMessages()
Enumerate all the errors encountered during the job.
void addJobProgressListener(in sbIJobProgressListener aListener)
Add a listener to be notified when significant job progress has been made.
void removeJobProgressListener(in sbIJobProgressListener aListener)
Remove a previously added listener.
readonly attribute unsigned long elapsedTime
Time elapsed while working on this job, in milliseconds.
readonly attribute unsigned long remainingTime
Estimated time remaining for this job to complete, in milliseconds. May be -1 if the remaining time i...
readonly attribute unsigned long progress
Number of work units completed.
readonly attribute unsigned long total
Total number of work units to be completed May be set to 0 if the job length is indeterminate.
Implemented to receive notifications from sbIJobProgress interfaces.
readonly attribute AString titleText
Localized message describing the type or purpose of the job.
readonly attribute unsigned short status
Current status of the job.
const unsigned short STATUS_FAILED
Constant indicating that the job has completed with errors.
readonly attribute boolean blocked
If true, progress of job is blocked (e.g., due to locked resource).