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

More xpcom/mozilla port
author John Reimer<terminal.node@gmail.com>
date Sun, 10 Aug 2008 22:25:43 -0700
parents
children 942da4b6558a
comparison
equal deleted inserted replaced
297:2f204a4aebc6 298:eec6ddb07873
1 module dwt.internal.mozilla.nsIHelperAppLauncher;
2
3 private import dwt.internal.mozilla.Common;
4 private import dwt.internal.mozilla.nsID;
5 private import dwt.internal.mozilla.nsISupports;
6 private import dwt.internal.mozilla.nsIURI;
7 private import dwt.internal.mozilla.nsIMIMEInfo;
8 private import dwt.internal.mozilla.nsIFile;
9 private import dwt.internal.mozilla.nsIWebProgressListener;
10 private import dwt.internal.mozilla.nsStringAPI;
11 private import dwt.internal.mozilla.prtime;
12
13 const char[] NS_IHELPERAPPLAUNCHER_IID_STR = "9503d0fe-4c9d-11d4-98d0-001083010e9b";
14
15 const nsIID NS_IHELPERAPPLAUNCHER_IID=
16 {0x9503d0fe, 0x4c9d, 0x11d4,
17 [ 0x98, 0xd0, 0x00, 0x10, 0x83, 0x01, 0x0e, 0x9b ]};
18
19 extern(System)
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 nsresult GetMIMEInfo(nsIMIMEInfo *aMIMEInfo);
27 nsresult GetSource(nsIURI *aSource);
28 nsresult GetSuggestedFileName(nsAString * aSuggestedFileName);
29 nsresult SaveToDisk(nsIFile aNewFileLocation, PRBool aRememberThisPreference);
30 nsresult LaunchWithApplication(nsIFile aApplication, PRBool aRememberThisPreference);
31 nsresult Cancel();
32 nsresult SetWebProgressListener(nsIWebProgressListener aWebProgressListener);
33 nsresult CloseProgressWindow();
34 nsresult GetDownloadInfo( nsIURI* aSourceUrl, PRTime* aTimeDownloadStarted, nsIFile* result)
35
36 }