annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
298
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
1 module dwt.internal.mozilla.nsIHelperAppLauncher;
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
2
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
3 private import dwt.internal.mozilla.Common;
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
4 private import dwt.internal.mozilla.nsID;
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
5 private import dwt.internal.mozilla.nsISupports;
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
6 private import dwt.internal.mozilla.nsIURI;
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
7 private import dwt.internal.mozilla.nsIMIMEInfo;
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
8 private import dwt.internal.mozilla.nsIFile;
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
9 private import dwt.internal.mozilla.nsIWebProgressListener;
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
10 private import dwt.internal.mozilla.nsStringAPI;
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
11 private import dwt.internal.mozilla.prtime;
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
12
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
13 const char[] NS_IHELPERAPPLAUNCHER_IID_STR = "9503d0fe-4c9d-11d4-98d0-001083010e9b";
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
14
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
15 const nsIID NS_IHELPERAPPLAUNCHER_IID=
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
16 {0x9503d0fe, 0x4c9d, 0x11d4,
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
17 [ 0x98, 0xd0, 0x00, 0x10, 0x83, 0x01, 0x0e, 0x9b ]};
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
18
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
19 extern(System)
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
20
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
21 interface nsIHelperAppLauncher : nsISupports {
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
22
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
23 static const char[] IID_STR = NS_IHELPERAPPLAUNCHER_IID_STR;
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
24 static const nsIID IID = NS_IHELPERAPPLAUNCHER_IID;
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
25
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
26 nsresult GetMIMEInfo(nsIMIMEInfo *aMIMEInfo);
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
27 nsresult GetSource(nsIURI *aSource);
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
28 nsresult GetSuggestedFileName(nsAString * aSuggestedFileName);
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
29 nsresult SaveToDisk(nsIFile aNewFileLocation, PRBool aRememberThisPreference);
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
30 nsresult LaunchWithApplication(nsIFile aApplication, PRBool aRememberThisPreference);
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
31 nsresult Cancel();
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
32 nsresult SetWebProgressListener(nsIWebProgressListener aWebProgressListener);
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
33 nsresult CloseProgressWindow();
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
34 nsresult GetDownloadInfo( nsIURI* aSourceUrl, PRTime* aTimeDownloadStarted, nsIFile* result)
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
35
eec6ddb07873 More xpcom/mozilla port
John Reimer<terminal.node@gmail.com>
parents:
diff changeset
36 }