Mercurial > projects > dwt-linux
comparison dwt/internal/mozilla.old/nsIDownload.d @ 288:4ee8c4237614
old branches... commit by mistake
author | John Reimer<terminal.node@gmail.com> |
---|---|
date | Tue, 05 Aug 2008 18:00:50 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
287:9cbe6285f746 | 288:4ee8c4237614 |
---|---|
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 : 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 } | |
37 | |
38 const char[] NS_IDOWNLOAD_MOZILLA_1_8_BRANCH_IID_STR = "ff76f0c7-caaf-4e64-8896-154348322696"; | |
39 | |
40 const nsIID NS_IDOWNLOAD_MOZILLA_1_8_BRANCH_IID= | |
41 {0xff76f0c7, 0xcaaf, 0x4e64, | |
42 [ 0x88, 0x96, 0x15, 0x43, 0x48, 0x32, 0x26, 0x96 ]}; | |
43 | |
44 extern(System) | |
45 | |
46 interface nsIDownload_MOZILLA_1_8_BRANCH : nsIDownload { | |
47 | |
48 static const char[] IID_STR = NS_IDOWNLOAD_MOZILLA_1_8_BRANCH_IID_STR; | |
49 static const nsIID IID = NS_IDOWNLOAD_MOZILLA_1_8_BRANCH_IID; | |
50 | |
51 nsresult GetSpeed(double *aSpeed); | |
52 | |
53 } | |
54 |