WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.
nsITransfer
| IID: | 23c51569-e9a1-4a92-adeb-3723db82ef7c |
| Inherits From: | nsIWebProgressListener2 |
This interface is implemented by the following components:
Methods
void init ( nsIURI source , nsIURI target , AString displayName , nsIMIMEInfo MIMEInfo , PRTime startTime , nsILocalFile tempFile , nsICancelable cancelable )
void init ( nsIURI source , nsIURI target , AString displayName , nsIMIMEInfo MIMEInfo , PRTime startTime , nsILocalFile tempFile , nsICancelable cancelable )
Initializes the transfer with certain properties. This function must be called prior to accessing any properties on this interface.
- Arguments:
- source: The source URI of the transfer. Must not be null.
- target: The target URI of the transfer. Must not be null.
- displayName: The user-readable description of the transfer. Can be empty.
- MIMEInfo: The MIME info associated with the target, including MIME type and helper app when appropriate. This parameter is optional.
- startTime: Time when the download started (ie, when the first response from the server was received) XXX presumably wbp and exthandler do this differently
- tempFile: The location of a temporary file; i.e. a file in which the received data will be stored, but which is not equal to the target file. (will be moved to the real target by the caller, when the download is finished) May be null.
- cancelable: An object that can be used to abort the download. Must not be null. Implementations are expected to hold a strong reference to this object until the download is finished, at which point they should release the reference.
Reference documentation is generated from Mozilla's source.
