286
|
1 module dwt.internal.mozilla.nsIDownload;
|
|
2
|
|
3 import dwt.internal.mozilla.Common;
|
|
4 import dwt.internal.mozilla.nsID;
|
|
5 import dwt.internal.mozilla.nsITransfer;
|
|
6 import dwt.internal.mozilla.nsIURI;
|
|
7 import dwt.internal.mozilla.nsILocalFile;
|
|
8 import dwt.internal.mozilla.nsIObserver;
|
|
9 import dwt.internal.mozilla.nsICancelable;
|
|
10 import dwt.internal.mozilla.nsIMIMEInfo;
|
|
11
|
|
12 const char[] NS_IDOWNLOAD_IID_STR = "9e1fd9f2-9727-4926-85cd-f16c375bba6d";
|
|
13
|
|
14 const nsIID NS_IDOWNLOAD_IID=
|
|
15 {0x9e1fd9f2, 0x9727, 0x4926,
|
|
16 [ 0x85, 0xcd, 0xf1, 0x6c, 0x37, 0x5b, 0xba, 0x6d ]};
|
|
17
|
|
18 extern(System)
|
|
19
|
|
20 interface nsIDownload_1_8 : nsITransfer {
|
|
21
|
|
22 static const char[] IID_STR = NS_IDOWNLOAD_IID_STR;
|
|
23 static const nsIID IID = NS_IDOWNLOAD_IID;
|
|
24
|
|
25 nsresult GetTargetFile(nsILocalFile *aTargetFile);
|
|
26 nsresult GetPercentComplete(PRInt32 *aPercentComplete);
|
|
27 nsresult GetAmountTransferred(PRUint64 *aAmountTransferred);
|
|
28 nsresult GetSize(PRUint64 *aSize);
|
|
29 nsresult GetSource(nsIURI *aSource);
|
|
30 nsresult GetTarget(nsIURI *aTarget);
|
|
31 nsresult GetCancelable(nsICancelable *aCancelable);
|
|
32 nsresult GetDisplayName(PRUnichar * *aDisplayName);
|
|
33 nsresult GetStartTime(PRInt64 *aStartTime);
|
|
34 nsresult GetMIMEInfo(nsIMIMEInfo *aMIMEInfo);
|
|
35
|
|
36 } |