001: /* ***** BEGIN LICENSE BLOCK *****
002: * Version: MPL 1.1
003: *
004: * The contents of this file are subject to the Mozilla Public License Version
005: * 1.1 (the "License"); you may not use this file except in compliance with
006: * the License. You may obtain a copy of the License at
007: * http://www.mozilla.org/MPL/
008: *
009: * Software distributed under the License is distributed on an "AS IS" basis,
010: * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
011: * for the specific language governing rights and limitations under the
012: * License.
013: *
014: * The Original Code is Mozilla Communicator client code, released March 31, 1998.
015: *
016: * The Initial Developer of the Original Code is
017: * Netscape Communications Corporation.
018: * Portions created by Netscape are Copyright (C) 1998-1999
019: * Netscape Communications Corporation. All Rights Reserved.
020: *
021: * Contributor(s):
022: *
023: * IBM
024: * - Binding to permit interfacing between Mozilla and SWT
025: * - Copyright (C) 2003, 2005 IBM Corp. All Rights Reserved.
026: *
027: * ***** END LICENSE BLOCK ***** */
028: package org.eclipse.swt.internal.mozilla;
029:
030: public class nsILocalFile extends nsIFile {
031:
032: static final int LAST_METHOD_ID = nsIFile.LAST_METHOD_ID + 17;
033:
034: public static final String NS_ILOCALFILE_IID_STR = "aa610f20-a889-11d3-8c81-000064657374";
035:
036: public static final nsID NS_ILOCALFILE_IID = new nsID(
037: NS_ILOCALFILE_IID_STR);
038:
039: public nsILocalFile(int /*long*/address) {
040: super (address);
041: }
042:
043: public int InitWithPath(int /*long*/filePath) {
044: return XPCOM.VtblCall(nsIFile.LAST_METHOD_ID + 1, getAddress(),
045: filePath);
046: }
047:
048: public int InitWithNativePath(int /*long*/filePath) {
049: return XPCOM.VtblCall(nsIFile.LAST_METHOD_ID + 2, getAddress(),
050: filePath);
051: }
052:
053: public int InitWithFile(int /*long*/aFile) {
054: return XPCOM.VtblCall(nsIFile.LAST_METHOD_ID + 3, getAddress(),
055: aFile);
056: }
057:
058: public int GetFollowLinks(boolean[] aFollowLinks) {
059: return XPCOM.VtblCall(nsIFile.LAST_METHOD_ID + 4, getAddress(),
060: aFollowLinks);
061: }
062:
063: public int SetFollowLinks(boolean aFollowLinks) {
064: return XPCOM.VtblCall(nsIFile.LAST_METHOD_ID + 5, getAddress(),
065: aFollowLinks);
066: }
067:
068: public int OpenNSPRFileDesc(int flags, int mode,
069: int /*long*/[] _retval) {
070: return XPCOM.VtblCall(nsIFile.LAST_METHOD_ID + 6, getAddress(),
071: flags, mode, _retval);
072: }
073:
074: public int OpenANSIFileDesc(byte[] mode, int /*long*/[] _retval) {
075: return XPCOM.VtblCall(nsIFile.LAST_METHOD_ID + 7, getAddress(),
076: mode, _retval);
077: }
078:
079: public int Load(int /*long*/[] _retval) {
080: return XPCOM.VtblCall(nsIFile.LAST_METHOD_ID + 8, getAddress(),
081: _retval);
082: }
083:
084: public int GetDiskSpaceAvailable(long[] aDiskSpaceAvailable) {
085: return XPCOM.VtblCall(nsIFile.LAST_METHOD_ID + 9, getAddress(),
086: aDiskSpaceAvailable);
087: }
088:
089: public int AppendRelativePath(int /*long*/relativeFilePath) {
090: return XPCOM.VtblCall(nsIFile.LAST_METHOD_ID + 10,
091: getAddress(), relativeFilePath);
092: }
093:
094: public int AppendRelativeNativePath(int /*long*/relativeFilePath) {
095: return XPCOM.VtblCall(nsIFile.LAST_METHOD_ID + 11,
096: getAddress(), relativeFilePath);
097: }
098:
099: public int GetPersistentDescriptor(
100: int /*long*/aPersistentDescriptor) {
101: return XPCOM.VtblCall(nsIFile.LAST_METHOD_ID + 12,
102: getAddress(), aPersistentDescriptor);
103: }
104:
105: public int SetPersistentDescriptor(
106: int /*long*/aPersistentDescriptor) {
107: return XPCOM.VtblCall(nsIFile.LAST_METHOD_ID + 13,
108: getAddress(), aPersistentDescriptor);
109: }
110:
111: public int Reveal() {
112: return XPCOM
113: .VtblCall(nsIFile.LAST_METHOD_ID + 14, getAddress());
114: }
115:
116: public int Launch() {
117: return XPCOM
118: .VtblCall(nsIFile.LAST_METHOD_ID + 15, getAddress());
119: }
120:
121: public int GetRelativeDescriptor(int /*long*/fromFile,
122: int /*long*/_retval) {
123: return XPCOM.VtblCall(nsIFile.LAST_METHOD_ID + 16,
124: getAddress(), fromFile, _retval);
125: }
126:
127: public int SetRelativeDescriptor(int /*long*/fromFile,
128: int /*long*/relativeDesc) {
129: return XPCOM.VtblCall(nsIFile.LAST_METHOD_ID + 17,
130: getAddress(), fromFile, relativeDesc);
131: }
132: }
|