@mozilla.org/network/incremental-download;1
This component implements the following interfaces:
- nsIIncrementalDownload
- nsIObserver
- nsIRequest
- nsIRequestObserver
- nsIStreamListener
- nsISupports
- nsISupportsWeakReference
Constants
Properties
readonly PRInt64 nsIIncrementalDownload.currentSize
The current number of bytes downloaded so far. This attribute is set just prior to calling OnStartRequest on the observer passed to the start method.
This attribute has a value of -1 if the current size is unknown.
readonly nsIFile nsIIncrementalDownload.destination
The file where the download is being written.
readonly nsIURI nsIIncrementalDownload.finalURI
The URI being fetched after any redirects have been followed. This attribute is set just prior to calling OnStartRequest on the observer passed to the start method.
nsLoadFlags nsIRequest.loadFlags
The load flags of this request. Bits 0-15 are reserved.
When added to a load group, this request's load flags are merged with the load flags of the load group.
nsILoadGroup nsIRequest.loadGroup
The load group of this request. While pending, the request is a member of the load group. It is the responsibility of the request to implement this policy.
readonly AUTF8String nsIRequest.name
The name of the request. Often this is the URI of the request.
readonly nsresult nsIRequest.status
The error status associated with the request.
readonly PRInt64 nsIIncrementalDownload.totalSize
The total number of bytes for the requested file. This attribute is set just prior to calling OnStartRequest on the observer passed to the start method.
This attribute has a value of -1 if the total size is unknown.
readonly nsIURI nsIIncrementalDownload.URI
The URI being fetched.
Methods
| Interface | Method |
|---|---|
| nsIRequest |
void cancel ( nsresult status )
|
| nsISupportsWeakReference |
nsIWeakReference GetWeakReference ( )
|
| nsIIncrementalDownload |
void init ( nsIURI uri , nsIFile destination , PRInt32 chunkSize , PRInt32 intervalInSeconds )
|
| nsIRequest |
PRBool isPending ( )
|
| nsIObserver |
void observe ( nsISupports subject , char* topic , PRUnichar* data )
|
| nsIStreamListener |
void onDataAvailable ( nsIRequest request , nsISupports context , nsIInputStream inputStream , PRUint32 offset , PRUint32 count )
|
| nsIRequestObserver |
void onStartRequest ( nsIRequest request , nsISupports context )
|
| nsIRequestObserver |
void onStopRequest ( nsIRequest request , nsISupports context , nsresult statusCode )
|
| nsIRequest |
void resume ( )
|
| nsIIncrementalDownload |
void start ( nsIRequestObserver observer , nsISupports ctxt )
|
| nsIRequest |
void suspend ( )
|
Reference documentation is generated from Mozilla's source.
