Mercurial > projects > dwt-linux
annotate dwt/internal/mozilla/nsILocalFile.d @ 286:44258e0b6687
More fixes for xpcom
author | John Reimer<terminal.node@gmail.com> |
---|---|
date | Tue, 05 Aug 2008 10:11:58 -0700 |
parents | 93409d9838c5 |
children | 3dfa75c74ed2 |
rev | line source |
---|---|
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.
John Reimer<terminal.node@gmail.com>
parents:
diff
changeset
|
1 module dwt.internal.mozilla.nsILocalFile; |
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.
John Reimer<terminal.node@gmail.com>
parents:
diff
changeset
|
2 |
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.
John Reimer<terminal.node@gmail.com>
parents:
diff
changeset
|
3 import dwt.internal.mozilla.Common; |
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.
John Reimer<terminal.node@gmail.com>
parents:
diff
changeset
|
4 import dwt.internal.mozilla.prlink; |
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.
John Reimer<terminal.node@gmail.com>
parents:
diff
changeset
|
5 import dwt.internal.mozilla.prio; |
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.
John Reimer<terminal.node@gmail.com>
parents:
diff
changeset
|
6 import dwt.internal.mozilla.prtime; |
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.
John Reimer<terminal.node@gmail.com>
parents:
diff
changeset
|
7 import dwt.internal.mozilla.nsID; |
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.
John Reimer<terminal.node@gmail.com>
parents:
diff
changeset
|
8 import dwt.internal.mozilla.nsIFile; |
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.
John Reimer<terminal.node@gmail.com>
parents:
diff
changeset
|
9 import dwt.internal.mozilla.nsStringAPI; |
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.
John Reimer<terminal.node@gmail.com>
parents:
diff
changeset
|
10 |
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.
John Reimer<terminal.node@gmail.com>
parents:
diff
changeset
|
11 import tango.stdc.stdio : FILE; |
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.
John Reimer<terminal.node@gmail.com>
parents:
diff
changeset
|
12 |
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.
John Reimer<terminal.node@gmail.com>
parents:
diff
changeset
|
13 const char[] NS_ILOCALFILE_IID_STR = "aa610f20-a889-11d3-8c81-000064657374"; |
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.
John Reimer<terminal.node@gmail.com>
parents:
diff
changeset
|
14 |
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.
John Reimer<terminal.node@gmail.com>
parents:
diff
changeset
|
15 const nsIID NS_ILOCALFILE_IID= |
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.
John Reimer<terminal.node@gmail.com>
parents:
diff
changeset
|
16 {0xaa610f20, 0xa889, 0x11d3, |
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.
John Reimer<terminal.node@gmail.com>
parents:
diff
changeset
|
17 [ 0x8c, 0x81, 0x00, 0x00, 0x64, 0x65, 0x73, 0x74 ]}; |
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.
John Reimer<terminal.node@gmail.com>
parents:
diff
changeset
|
18 |
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.
John Reimer<terminal.node@gmail.com>
parents:
diff
changeset
|
19 extern(System) |
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.
John Reimer<terminal.node@gmail.com>
parents:
diff
changeset
|
20 |
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.
John Reimer<terminal.node@gmail.com>
parents:
diff
changeset
|
21 interface nsILocalFile : nsIFile { |
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.
John Reimer<terminal.node@gmail.com>
parents:
diff
changeset
|
22 |
278
93409d9838c5
Commit more browser/xpcom updates, including still uncoverted source.
John Reimer<terminal.node@gmail.com>
parents:
272
diff
changeset
|
23 static const char[] IID_STR = NS_ILOCALFILE_IID_STR; |
93409d9838c5
Commit more browser/xpcom updates, including still uncoverted source.
John Reimer<terminal.node@gmail.com>
parents:
272
diff
changeset
|
24 static const nsIID IID = NS_ILOCALFILE_IID; |
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.
John Reimer<terminal.node@gmail.com>
parents:
diff
changeset
|
25 |
278
93409d9838c5
Commit more browser/xpcom updates, including still uncoverted source.
John Reimer<terminal.node@gmail.com>
parents:
272
diff
changeset
|
26 nsresult InitWithPath(nsAString * filePath); |
93409d9838c5
Commit more browser/xpcom updates, including still uncoverted source.
John Reimer<terminal.node@gmail.com>
parents:
272
diff
changeset
|
27 nsresult InitWithNativePath(nsACString * filePath); |
93409d9838c5
Commit more browser/xpcom updates, including still uncoverted source.
John Reimer<terminal.node@gmail.com>
parents:
272
diff
changeset
|
28 nsresult InitWithFile(nsILocalFile aFile); |
93409d9838c5
Commit more browser/xpcom updates, including still uncoverted source.
John Reimer<terminal.node@gmail.com>
parents:
272
diff
changeset
|
29 nsresult GetFollowLinks(PRBool *aFollowLinks); |
93409d9838c5
Commit more browser/xpcom updates, including still uncoverted source.
John Reimer<terminal.node@gmail.com>
parents:
272
diff
changeset
|
30 nsresult SetFollowLinks(PRBool aFollowLinks); |
93409d9838c5
Commit more browser/xpcom updates, including still uncoverted source.
John Reimer<terminal.node@gmail.com>
parents:
272
diff
changeset
|
31 nsresult OpenNSPRFileDesc(PRInt32 flags, PRInt32 mode, PRFileDesc * *_retval); |
93409d9838c5
Commit more browser/xpcom updates, including still uncoverted source.
John Reimer<terminal.node@gmail.com>
parents:
272
diff
changeset
|
32 nsresult OpenANSIFileDesc(char *mode, FILE * *_retval); |
93409d9838c5
Commit more browser/xpcom updates, including still uncoverted source.
John Reimer<terminal.node@gmail.com>
parents:
272
diff
changeset
|
33 nsresult Load(PRLibrary * *_retval); |
93409d9838c5
Commit more browser/xpcom updates, including still uncoverted source.
John Reimer<terminal.node@gmail.com>
parents:
272
diff
changeset
|
34 nsresult GetDiskSpaceAvailable(PRInt64 *aDiskSpaceAvailable); |
93409d9838c5
Commit more browser/xpcom updates, including still uncoverted source.
John Reimer<terminal.node@gmail.com>
parents:
272
diff
changeset
|
35 nsresult AppendRelativePath(nsAString * relativeFilePath); |
93409d9838c5
Commit more browser/xpcom updates, including still uncoverted source.
John Reimer<terminal.node@gmail.com>
parents:
272
diff
changeset
|
36 nsresult AppendRelativeNativePath(nsACString * relativeFilePath); |
93409d9838c5
Commit more browser/xpcom updates, including still uncoverted source.
John Reimer<terminal.node@gmail.com>
parents:
272
diff
changeset
|
37 nsresult GetPersistentDescriptor(nsACString * aPersistentDescriptor); |
93409d9838c5
Commit more browser/xpcom updates, including still uncoverted source.
John Reimer<terminal.node@gmail.com>
parents:
272
diff
changeset
|
38 nsresult SetPersistentDescriptor(nsACString * aPersistentDescriptor); |
93409d9838c5
Commit more browser/xpcom updates, including still uncoverted source.
John Reimer<terminal.node@gmail.com>
parents:
272
diff
changeset
|
39 nsresult Reveal(); |
93409d9838c5
Commit more browser/xpcom updates, including still uncoverted source.
John Reimer<terminal.node@gmail.com>
parents:
272
diff
changeset
|
40 nsresult Launch(); |
93409d9838c5
Commit more browser/xpcom updates, including still uncoverted source.
John Reimer<terminal.node@gmail.com>
parents:
272
diff
changeset
|
41 nsresult GetRelativeDescriptor(nsILocalFile fromFile, nsACString * _retval); |
93409d9838c5
Commit more browser/xpcom updates, including still uncoverted source.
John Reimer<terminal.node@gmail.com>
parents:
272
diff
changeset
|
42 nsresult SetRelativeDescriptor(nsILocalFile fromFile, nsACString * relativeDesc); |
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.
John Reimer<terminal.node@gmail.com>
parents:
diff
changeset
|
43 } |
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.
John Reimer<terminal.node@gmail.com>
parents:
diff
changeset
|
44 |