Mercurial > projects > dwt-linux
comparison dwt/internal/mozilla.old/nsIMIMEInfo.d @ 288:4ee8c4237614
old branches... commit by mistake
author | John Reimer<terminal.node@gmail.com> |
---|---|
date | Tue, 05 Aug 2008 18:00:50 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
287:9cbe6285f746 | 288:4ee8c4237614 |
---|---|
1 module dwt.internal.mozilla.nsIMIMEInfo; | |
2 | |
3 import dwt.internal.mozilla.Common; | |
4 import dwt.internal.mozilla.nsID; | |
5 import dwt.internal.mozilla.nsISupports; | |
6 | |
7 import dwt.internal.mozilla.nsIURI; | |
8 import dwt.internal.mozilla.nsIFile; | |
9 import dwt.internal.mozilla.nsIStringEnumerator; | |
10 import dwt.internal.mozilla.nsStringAPI; | |
11 | |
12 alias PRInt32 nsMIMEInfoHandleAction; | |
13 | |
14 const char[] NS_IMIMEINFO_IID_STR = "1448b42f-cf0d-466e-9a15-64e876ebe857"; | |
15 | |
16 const nsIID NS_IMIMEINFO_IID= | |
17 {0x1448b42f, 0xcf0d, 0x466e, | |
18 [ 0x9a, 0x15, 0x64, 0xe8, 0x76, 0xeb, 0xe8, 0x57 ]}; | |
19 | |
20 extern(System) | |
21 | |
22 interface nsIMIMEInfo : nsISupports { | |
23 | |
24 static const char[] IID_STR = NS_IMIMEINFO_IID_STR; | |
25 static const nsIID IID = NS_IMIMEINFO_IID; | |
26 | |
27 nsresult GetFileExtensions(nsIUTF8StringEnumerator *_retval); | |
28 nsresult SetFileExtensions(nsACString * aExtensions); | |
29 nsresult ExtensionExists(nsACString * aExtension, PRBool *_retval); | |
30 nsresult AppendExtension(nsACString * aExtension); | |
31 nsresult GetPrimaryExtension(nsACString * aPrimaryExtension); | |
32 nsresult SetPrimaryExtension(nsACString * aPrimaryExtension); | |
33 nsresult GetMIMEType(nsACString * aMIMEType); | |
34 nsresult SetDescription(nsAString * aDescription); | |
35 nsresult GetMacType(PRUint32 *aMacType); | |
36 nsresult SetMacType(PRUint32 aMacType); | |
37 nsresult GetMacCreator(PRUint32 *aMacCreator); | |
38 nsresult SetMacCreator(PRUint32 aMacCreator); | |
39 nsresult Equals(nsIMIMEInfo aMIMEInfo, PRBool *_retval); | |
40 nsresult GetPreferredApplicationHandler(nsIFile *aPreferredApplicationHandler); | |
41 nsresult SetPreferredApplicationHandler(nsIFile aPreferredApplicationHandler); | |
42 nsresult GetApplicationDescription(nsAString * aApplicationDescription); | |
43 nsresult SetApplicationDescription(nsAString * aApplicationDescription); | |
44 nsresult GetHasDefaultHandler(PRBool *aHasDefaultHandler); | |
45 nsresult GetDefaultDescription(nsAString * aDefaultDescription); | |
46 nsresult LaunchWithFile(nsIFile aFile); | |
47 | |
48 enum { saveToDisk = 0 }; | |
49 enum { alwaysAsk = 1 }; | |
50 enum { useHelperApp = 2 }; | |
51 enum { handleInternally = 3 }; | |
52 enum { useSystemDefault = 4 }; | |
53 | |
54 nsresult GetPreferredAction(nsMIMEInfoHandleAction *aPreferredAction); | |
55 nsresult SetPreferredAction(nsMIMEInfoHandleAction aPreferredAction); | |
56 nsresult GetAlwaysAskBeforeHandling(PRBool *aAlwaysAskBeforeHandling); | |
57 nsresult SetAlwaysAskBeforeHandling(PRBool aAlwaysAskBeforeHandling); | |
58 | |
59 } | |
60 |