1 module org.eclipse.swt.internal.mozilla.nsIHelperAppLauncher;
2 
3 import java.lang.all;
4 
5 private import org.eclipse.swt.internal.mozilla.Common;
6 private import org.eclipse.swt.internal.mozilla.nsID;
7 private import org.eclipse.swt.internal.mozilla.nsISupports;
8 private import org.eclipse.swt.internal.mozilla.nsIURI;
9 private import org.eclipse.swt.internal.mozilla.nsIMIMEInfo;
10 private import org.eclipse.swt.internal.mozilla.nsIFile;
11 private import org.eclipse.swt.internal.mozilla.nsIWebProgressListener;
12 private import org.eclipse.swt.internal.mozilla.nsStringAPI;
13 private import org.eclipse.swt.internal.mozilla.prtime;
14 
15 const char[] NS_IHELPERAPPLAUNCHER_IID_STR = "9503d0fe-4c9d-11d4-98d0-001083010e9b";
16 
17 const nsIID NS_IHELPERAPPLAUNCHER_IID= 
18   {0x9503d0fe, 0x4c9d, 0x11d4, 
19     [ 0x98, 0xd0, 0x00, 0x10, 0x83, 0x01, 0x0e, 0x9b ]};
20 
21 interface nsIHelperAppLauncher : nsISupports {
22 
23   static const char[] IID_STR = NS_IHELPERAPPLAUNCHER_IID_STR;
24   static const nsIID IID = NS_IHELPERAPPLAUNCHER_IID;
25 
26 extern(System):
27   nsresult GetMIMEInfo(nsIMIMEInfo  *aMIMEInfo);
28   nsresult GetSource(nsIURI  *aSource);
29   nsresult GetSuggestedFileName(nsAString * aSuggestedFileName);
30   nsresult SaveToDisk(nsIFile aNewFileLocation, PRBool aRememberThisPreference);
31   nsresult LaunchWithApplication(nsIFile aApplication, PRBool aRememberThisPreference);
32   nsresult Cancel();
33   nsresult SetWebProgressListener(nsIWebProgressListener aWebProgressListener);
34   nsresult CloseProgressWindow();
35   nsresult GetDownloadInfo( nsIURI* aSourceUrl, PRTime* aTimeDownloadStarted, nsIFile* result);
36 
37 }