comparison dwt/internal/mozilla/nsIDownload.d @ 298:eec6ddb07873

More xpcom/mozilla port
author John Reimer<terminal.node@gmail.com>
date Sun, 10 Aug 2008 22:25:43 -0700
parents 3dfa75c74ed2
children 942da4b6558a
comparison
equal deleted inserted replaced
297:2f204a4aebc6 298:eec6ddb07873
1 module dwt.internal.mozilla.nsIDownload; 1 module dwt.internal.mozilla.nsIDownload;
2 2
3 import dwt.internal.mozilla.Common; 3 import dwt.internal.mozilla.Common;
4 import dwt.internal.mozilla.nsID; 4 import dwt.internal.mozilla.nsID;
5 import dwt.internal.mozilla.nsITransfer; 5 import dwt.internal.mozilla.nsITransfer;
6 import dwt.internal.mozilla.nsIWebProgressListener;
6 import dwt.internal.mozilla.nsIURI; 7 import dwt.internal.mozilla.nsIURI;
7 import dwt.internal.mozilla.nsILocalFile; 8 import dwt.internal.mozilla.nsILocalFile;
8 import dwt.internal.mozilla.nsIObserver; 9 import dwt.internal.mozilla.nsIObserver;
9 import dwt.internal.mozilla.nsICancelable; 10 import dwt.internal.mozilla.nsICancelable;
10 import dwt.internal.mozilla.nsIMIMEInfo; 11 import dwt.internal.mozilla.nsIMIMEInfo;
20 interface nsIDownload : nsISuppports { 21 interface nsIDownload : nsISuppports {
21 22
22 static const char[] IID_STR = NS_IDOWNLOAD_IID_STR; 23 static const char[] IID_STR = NS_IDOWNLOAD_IID_STR;
23 static const nsIID IID = NS_IDOWNLOAD_IID; 24 static const nsIID IID = NS_IDOWNLOAD_IID;
24 25
25 nsresult Init(nsIURI aSource, nsIURI aTarget, nsAString* aDisplayName, nsIMIMEInfo aMIMEInfo, PRTime startTime, int /*long*/ aPersist); 26 nsresult Init(nsIURI aSource, nsIURI aTarget, nsAString* aDisplayName, nsIMIMEInfo aMIMEInfo, PRTime startTime, PRBool aPersist);
26 nsresult GetSource(nsIURI *aSource); 27 nsresult GetSource(nsIURI *aSource);
27 nsresult GetTarget(nsIURI *aTarget); 28 nsresult GetTarget(nsIURI *aTarget);
28 nsresult GetPersist(int *aPersist); 29 nsresult GetPersist(PRBool *aPersist);
29 nsresult GetPercentComplete(PRInt32 *aPercentComplete); 30 nsresult GetPercentComplete(PRInt32 *aPercentComplete);
30 nsresult GetDisplayName(PRUnichar * *aDisplayName); 31 nsresult GetDisplayName(PRUnichar * *aDisplayName);
31 nsresult SetDisplayName(char[] aDisplayName); 32 nsresult SetDisplayName(PRUnichar* aDisplayName);
32 nsresult GetStartTime(PRInt64 *aStartTime); 33 nsresult GetStartTime(PRInt64 *aStartTime);
33 nsresult GetMIMEInfo(nsIMIMEInfo *aMIMEInfo); 34 nsresult GetMIMEInfo(nsIMIMEInfo *aMIMEInfo);
34 nsresult GetListener(int * aListener); 35 nsresult GetListener(nsIWebProgressListener* aListener);
35 nsresult SetListener(int aListener); 36 nsresult SetListener(nsIWebProgressListener aListener);
36 nsresult GetObserver(int * aObserver); 37 nsresult GetObserver(nsIObserver * aObserver);
37 nsresult SetObserver(int aObserver); 38 nsresult SetObserver(nsIObserver aObserver);
38 } 39 }