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