| 1 |
module dwt.internal.mozilla.nsIDownload; |
|---|
| 2 |
|
|---|
| 3 |
import dwt.internal.mozilla.Common; |
|---|
| 4 |
import dwt.internal.mozilla.nsISupports; |
|---|
| 5 |
import dwt.internal.mozilla.nsID; |
|---|
| 6 |
import dwt.internal.mozilla.nsITransfer; |
|---|
| 7 |
import dwt.internal.mozilla.nsIWebProgressListener; |
|---|
| 8 |
import dwt.internal.mozilla.nsIURI; |
|---|
| 9 |
import dwt.internal.mozilla.nsILocalFile; |
|---|
| 10 |
import dwt.internal.mozilla.nsIObserver; |
|---|
| 11 |
import dwt.internal.mozilla.nsICancelable; |
|---|
| 12 |
import dwt.internal.mozilla.nsIMIMEInfo; |
|---|
| 13 |
import dwt.internal.mozilla.nsStringAPI; |
|---|
| 14 |
import dwt.internal.mozilla.prtime; |
|---|
| 15 |
|
|---|
| 16 |
const char[] NS_IDOWNLOAD_IID_STR = "9e1fd9f2-9727-4926-85cd-f16c375bba6d"; |
|---|
| 17 |
|
|---|
| 18 |
const nsIID NS_IDOWNLOAD_IID= |
|---|
| 19 |
{0x9e1fd9f2, 0x9727, 0x4926, |
|---|
| 20 |
[ 0x85, 0xcd, 0xf1, 0x6c, 0x37, 0x5b, 0xba, 0x6d ]}; |
|---|
| 21 |
|
|---|
| 22 |
interface nsIDownload : nsISupports { |
|---|
| 23 |
|
|---|
| 24 |
static const char[] IID_STR = NS_IDOWNLOAD_IID_STR; |
|---|
| 25 |
static const nsIID IID = NS_IDOWNLOAD_IID; |
|---|
| 26 |
|
|---|
| 27 |
extern(System): |
|---|
| 28 |
nsresult Init(nsIURI aSource, nsIURI aTarget, nsAString* aDisplayName, nsIMIMEInfo aMIMEInfo, PRTime startTime, PRBool aPersist); |
|---|
| 29 |
nsresult GetSource(nsIURI *aSource); |
|---|
| 30 |
nsresult GetTarget(nsIURI *aTarget); |
|---|
| 31 |
nsresult GetPersist(PRBool *aPersist); |
|---|
| 32 |
nsresult GetPercentComplete(PRInt32 *aPercentComplete); |
|---|
| 33 |
nsresult GetDisplayName(PRUnichar * *aDisplayName); |
|---|
| 34 |
nsresult SetDisplayName(PRUnichar* aDisplayName); |
|---|
| 35 |
nsresult GetStartTime(PRInt64 *aStartTime); |
|---|
| 36 |
nsresult GetMIMEInfo(nsIMIMEInfo *aMIMEInfo); |
|---|
| 37 |
nsresult GetListener(nsIWebProgressListener* aListener); |
|---|
| 38 |
nsresult SetListener(nsIWebProgressListener aListener); |
|---|
| 39 |
nsresult GetObserver(nsIObserver * aObserver); |
|---|
| 40 |
nsresult SetObserver(nsIObserver aObserver); |
|---|
| 41 |
} |
|---|