| 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 |
interface nsIMIMEInfo : nsISupports { |
|---|
| 21 |
|
|---|
| 22 |
static const char[] IID_STR = NS_IMIMEINFO_IID_STR; |
|---|
| 23 |
static const nsIID IID = NS_IMIMEINFO_IID; |
|---|
| 24 |
|
|---|
| 25 |
extern(System): |
|---|
| 26 |
nsresult GetFileExtensions(nsIUTF8StringEnumerator *_retval); |
|---|
| 27 |
nsresult SetFileExtensions(nsACString * aExtensions); |
|---|
| 28 |
nsresult ExtensionExists(nsACString * aExtension, PRBool *_retval); |
|---|
| 29 |
nsresult AppendExtension(nsACString * aExtension); |
|---|
| 30 |
nsresult GetPrimaryExtension(nsACString * aPrimaryExtension); |
|---|
| 31 |
nsresult SetPrimaryExtension(nsACString * aPrimaryExtension); |
|---|
| 32 |
nsresult GetMIMEType(nsACString * aMIMEType); |
|---|
| 33 |
nsresult SetDescription(nsAString * aDescription); |
|---|
| 34 |
nsresult GetMacType(PRUint32 *aMacType); |
|---|
| 35 |
nsresult SetMacType(PRUint32 aMacType); |
|---|
| 36 |
nsresult GetMacCreator(PRUint32 *aMacCreator); |
|---|
| 37 |
nsresult SetMacCreator(PRUint32 aMacCreator); |
|---|
| 38 |
nsresult Equals(nsIMIMEInfo aMIMEInfo, PRBool *_retval); |
|---|
| 39 |
nsresult GetPreferredApplicationHandler(nsIFile *aPreferredApplicationHandler); |
|---|
| 40 |
nsresult SetPreferredApplicationHandler(nsIFile aPreferredApplicationHandler); |
|---|
| 41 |
nsresult GetApplicationDescription(nsAString * aApplicationDescription); |
|---|
| 42 |
nsresult SetApplicationDescription(nsAString * aApplicationDescription); |
|---|
| 43 |
nsresult GetHasDefaultHandler(PRBool *aHasDefaultHandler); |
|---|
| 44 |
nsresult GetDefaultDescription(nsAString * aDefaultDescription); |
|---|
| 45 |
nsresult LaunchWithFile(nsIFile aFile); |
|---|
| 46 |
|
|---|
| 47 |
enum { saveToDisk = 0 }; |
|---|
| 48 |
enum { alwaysAsk = 1 }; |
|---|
| 49 |
enum { useHelperApp = 2 }; |
|---|
| 50 |
enum { handleInternally = 3 }; |
|---|
| 51 |
enum { useSystemDefault = 4 }; |
|---|
| 52 |
|
|---|
| 53 |
nsresult GetPreferredAction(nsMIMEInfoHandleAction *aPreferredAction); |
|---|
| 54 |
nsresult SetPreferredAction(nsMIMEInfoHandleAction aPreferredAction); |
|---|
| 55 |
nsresult GetAlwaysAskBeforeHandling(PRBool *aAlwaysAskBeforeHandling); |
|---|
| 56 |
nsresult SetAlwaysAskBeforeHandling(PRBool aAlwaysAskBeforeHandling); |
|---|
| 57 |
|
|---|
| 58 |
} |
|---|