Mercurial > projects > dwt-linux
comparison dwt/internal/mozilla.old/nsILocalFile.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.nsILocalFile; | |
2 | |
3 import dwt.internal.mozilla.Common; | |
4 import dwt.internal.mozilla.prlink; | |
5 import dwt.internal.mozilla.prio; | |
6 import dwt.internal.mozilla.prtime; | |
7 import dwt.internal.mozilla.nsID; | |
8 import dwt.internal.mozilla.nsIFile; | |
9 import dwt.internal.mozilla.nsStringAPI; | |
10 | |
11 import tango.stdc.stdio : FILE; | |
12 | |
13 const char[] NS_ILOCALFILE_IID_STR = "aa610f20-a889-11d3-8c81-000064657374"; | |
14 | |
15 const nsIID NS_ILOCALFILE_IID= | |
16 {0xaa610f20, 0xa889, 0x11d3, | |
17 [ 0x8c, 0x81, 0x00, 0x00, 0x64, 0x65, 0x73, 0x74 ]}; | |
18 | |
19 extern(System) | |
20 | |
21 interface nsILocalFile : nsIFile { | |
22 | |
23 static const char[] IID_STR = NS_ILOCALFILE_IID_STR; | |
24 static const nsIID IID = NS_ILOCALFILE_IID; | |
25 | |
26 nsresult InitWithPath(nsAString * filePath); | |
27 nsresult InitWithNativePath(nsACString * filePath); | |
28 nsresult InitWithFile(nsILocalFile aFile); | |
29 nsresult GetFollowLinks(PRBool *aFollowLinks); | |
30 nsresult SetFollowLinks(PRBool aFollowLinks); | |
31 nsresult OpenNSPRFileDesc(PRInt32 flags, PRInt32 mode, PRFileDesc * *_retval); | |
32 nsresult OpenANSIFileDesc(char *mode, FILE * *_retval); | |
33 nsresult Load(PRLibrary * *_retval); | |
34 nsresult GetDiskSpaceAvailable(PRInt64 *aDiskSpaceAvailable); | |
35 nsresult AppendRelativePath(nsAString * relativeFilePath); | |
36 nsresult AppendRelativeNativePath(nsACString * relativeFilePath); | |
37 nsresult GetPersistentDescriptor(nsACString * aPersistentDescriptor); | |
38 nsresult SetPersistentDescriptor(nsACString * aPersistentDescriptor); | |
39 nsresult Reveal(); | |
40 nsresult Launch(); | |
41 nsresult GetRelativeDescriptor(nsILocalFile fromFile, nsACString * _retval); | |
42 nsresult SetRelativeDescriptor(nsILocalFile fromFile, nsACString * relativeDesc); | |
43 } | |
44 |