| 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 |
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 |
} |
|---|