Mercurial > projects > dwt2
comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/internal/mozilla/nsILocalFile.d @ 0:6dd524f61e62
add dwt win and basic java stuff
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 02 Mar 2009 14:44:16 +0100 |
parents | |
children | 4642ab680468 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:6dd524f61e62 |
---|---|
1 module org.eclipse.swt.internal.mozilla.nsILocalFile; | |
2 | |
3 import org.eclipse.swt.internal.mozilla.Common; | |
4 import org.eclipse.swt.internal.mozilla.prlink; | |
5 import org.eclipse.swt.internal.mozilla.prio; | |
6 import org.eclipse.swt.internal.mozilla.prtime; | |
7 import org.eclipse.swt.internal.mozilla.nsID; | |
8 import org.eclipse.swt.internal.mozilla.nsIFile; | |
9 import org.eclipse.swt.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 interface nsILocalFile : nsIFile { | |
20 | |
21 static const char[] IID_STR = NS_ILOCALFILE_IID_STR; | |
22 static const nsIID IID = NS_ILOCALFILE_IID; | |
23 | |
24 extern(System): | |
25 nsresult InitWithPath(nsAString * filePath); | |
26 nsresult InitWithNativePath(nsACString * filePath); | |
27 nsresult InitWithFile(nsILocalFile aFile); | |
28 nsresult GetFollowLinks(PRBool *aFollowLinks); | |
29 nsresult SetFollowLinks(PRBool aFollowLinks); | |
30 nsresult OpenNSPRFileDesc(PRInt32 flags, PRInt32 mode, PRFileDesc * *_retval); | |
31 nsresult OpenANSIFileDesc(char *mode, FILE * *_retval); | |
32 nsresult Load(PRLibrary * *_retval); | |
33 nsresult GetDiskSpaceAvailable(PRInt64 *aDiskSpaceAvailable); | |
34 nsresult AppendRelativePath(nsAString * relativeFilePath); | |
35 nsresult AppendRelativeNativePath(nsACString * relativeFilePath); | |
36 nsresult GetPersistentDescriptor(nsACString * aPersistentDescriptor); | |
37 nsresult SetPersistentDescriptor(nsACString * aPersistentDescriptor); | |
38 nsresult Reveal(); | |
39 nsresult Launch(); | |
40 nsresult GetRelativeDescriptor(nsILocalFile fromFile, nsACString * _retval); | |
41 nsresult SetRelativeDescriptor(nsILocalFile fromFile, nsACString * relativeDesc); | |
42 } | |
43 |