Mercurial > projects > dwt-linux
comparison dwt/internal/mozilla/nsIExternalHelperAppService.d @ 272:dd63eb078d7a
xpcom interfaces necessary for browser code -- source adapted from dxpcom project; these modules still need to be tested and then integrated into dwt browser.
author | John Reimer<terminal.node@gmail.com> |
---|---|
date | Fri, 18 Jul 2008 05:32:53 -0700 |
parents | |
children | 942da4b6558a |
comparison
equal
deleted
inserted
replaced
271:d472fae79005 | 272:dd63eb078d7a |
---|---|
1 module dwt.internal.mozilla.nsIExternalHelperAppService; | |
2 | |
3 import dwt.internal.mozilla.Common; | |
4 import dwt.internal.mozilla.nsID; | |
5 import dwt.internal.mozilla.nsISupports; | |
6 import dwt.internal.mozilla.nsICancelable; | |
7 import dwt.internal.mozilla.nsIURI; | |
8 import dwt.internal.mozilla.nsIRequest; | |
9 import dwt.internal.mozilla.nsIStreamListener; | |
10 import dwt.internal.mozilla.nsIFile; | |
11 import dwt.internal.mozilla.nsIMIMEInfo; | |
12 import dwt.internal.mozilla.nsIWebProgressListener2; | |
13 import dwt.internal.mozilla.nsIInterfaceRequestor; | |
14 import dwt.internal.mozilla.nsStringAPI; | |
15 | |
16 import dwt.internal.mozilla.prtime; | |
17 | |
18 /****************************************************************************** | |
19 | |
20 ******************************************************************************/ | |
21 | |
22 const char[] NS_IEXTERNALHELPERAPPSERVICE_IID_STR = "0ea90cf3-2dd9-470f-8f76-f141743c5678"; | |
23 | |
24 const nsIID NS_IEXTERNALHELPERAPPSERVICE_IID= | |
25 {0x0ea90cf3, 0x2dd9, 0x470f, | |
26 [ 0x8f, 0x76, 0xf1, 0x41, 0x74, 0x3c, 0x56, 0x78 ]}; | |
27 | |
28 extern(System) | |
29 | |
30 interface nsIExternalHelperAppService : nsISupports { | |
31 | |
32 static const char[] IID_STR = NS_IEXTERNALHELPERAPPSERVICE_IID_STR; | |
33 static const nsIID IID = NS_IEXTERNALHELPERAPPSERVICE_IID; | |
34 | |
35 nsresult DoContent(nsACString * aMimeContentType, nsIRequest aRequest, nsIInterfaceRequestor aWindowContext, nsIStreamListener *_retval); | |
36 nsresult ApplyDecodingForExtension(nsACString * aExtension, nsACString * aEncodingType, PRBool *_retval); | |
37 | |
38 } | |
39 | |
40 /****************************************************************************** | |
41 | |
42 ******************************************************************************/ | |
43 | |
44 const char[] NS_PIEXTERNALAPPLAUNCHER_IID_STR = "d0b5d7d3-9565-403d-9fb5-e5089c4567c6"; | |
45 | |
46 const nsIID NS_PIEXTERNALAPPLAUNCHER_IID= | |
47 {0xd0b5d7d3, 0x9565, 0x403d, | |
48 [ 0x9f, 0xb5, 0xe5, 0x08, 0x9c, 0x45, 0x67, 0xc6 ]}; | |
49 | |
50 extern(System) | |
51 | |
52 interface nsPIExternalAppLauncher : nsISupports { | |
53 | |
54 static const char[] IID_STR = NS_PIEXTERNALAPPLAUNCHER_IID_STR; | |
55 static const nsIID IID = NS_PIEXTERNALAPPLAUNCHER_IID; | |
56 | |
57 nsresult DeleteTemporaryFileOnExit(nsIFile aTemporaryFile); | |
58 | |
59 } | |
60 | |
61 /****************************************************************************** | |
62 | |
63 ******************************************************************************/ | |
64 | |
65 const char[] NS_IHELPERAPPLAUNCHER_IID_STR = "99a0882d-2ff9-4659-9952-9ac531ba5592"; | |
66 | |
67 const nsIID NS_IHELPERAPPLAUNCHER_IID= | |
68 {0x99a0882d, 0x2ff9, 0x4659, | |
69 [ 0x99, 0x52, 0x9a, 0xc5, 0x31, 0xba, 0x55, 0x92 ]}; | |
70 | |
71 extern(System) | |
72 | |
73 interface nsIHelperAppLauncher : nsICancelable { | |
74 | |
75 static const char[] IID_STR = NS_IHELPERAPPLAUNCHER_IID_STR; | |
76 static const nsIID IID = NS_IHELPERAPPLAUNCHER_IID; | |
77 | |
78 nsresult GetMIMEInfo(nsIMIMEInfo *aMIMEInfo); | |
79 nsresult GetSource(nsIURI *aSource); | |
80 nsresult GetSuggestedFileName(nsAString * aSuggestedFileName); | |
81 nsresult SaveToDisk(nsIFile aNewFileLocation, PRBool aRememberThisPreference); | |
82 nsresult LaunchWithApplication(nsIFile aApplication, PRBool aRememberThisPreference); | |
83 nsresult SetWebProgressListener(nsIWebProgressListener2 aWebProgressListener); | |
84 nsresult CloseProgressWindow(); | |
85 nsresult GetTargetFile(nsIFile *aTargetFile); | |
86 nsresult GetTimeDownloadStarted(PRTime *aTimeDownloadStarted); | |
87 | |
88 } | |
89 |