2012-03-17 10:50:10 +00:00
|
|
|
type
|
|
|
|
|
|
|
|
nsILocalFile = interface(nsIFile)
|
|
|
|
['{aa610f20-a889-11d3-8c81-000064657374}']
|
|
|
|
procedure initWithPath(filePath: AString); safecall;
|
|
|
|
procedure initWithNativePath(filePath: ACString); safecall;
|
|
|
|
procedure initWithFile(aFile: nsILocalFile); safecall;
|
|
|
|
function GetfollowLinks(): longbool; safecall;
|
|
|
|
procedure SetfollowLinks(afollowLinks: longbool); safecall;
|
|
|
|
property followLinks : longbool read GetfollowLinks write SetfollowLinks;
|
|
|
|
function openNSPRFileDesc(flags: idllong; mode: idllong) : PRFileDescStar; safecall;
|
|
|
|
function openANSIFileDesc(mode: PAnsiChar) : PFILE; safecall;
|
|
|
|
function load() : PRLibraryStar; safecall;
|
|
|
|
function GetdiskSpaceAvailable(): PRInt64; safecall;
|
|
|
|
property diskSpaceAvailable : PRInt64 read GetdiskSpaceAvailable;
|
|
|
|
procedure appendRelativePath(relativeFilePath: AString); safecall;
|
|
|
|
procedure appendRelativeNativePath(relativeFilePath: ACString); safecall;
|
2012-03-19 14:43:54 +00:00
|
|
|
procedure GetpersistentDescriptor( result_: ACString); safecall;
|
2012-03-17 10:50:10 +00:00
|
|
|
procedure SetpersistentDescriptor(apersistentDescriptor: ACString); safecall;
|
|
|
|
procedure reveal(); safecall;
|
|
|
|
procedure launch(); safecall;
|
2012-03-19 14:43:54 +00:00
|
|
|
procedure getRelativeDescriptor(fromFile: nsILocalFile; result_: ACString); safecall;
|
2012-03-17 10:50:10 +00:00
|
|
|
procedure setRelativeDescriptor(fromFile: nsILocalFile; relativeDesc: ACString); safecall;
|
|
|
|
|
|
|
|
end;
|
|
|
|
|
|
|
|
const
|
|
|
|
nsILocalFile_OS_READAHEAD=$40000000;
|
|
|
|
nsILocalFile_DELETE_ON_CLOSE=$80000000;
|
|
|
|
|