1
/* ***** BEGIN LICENSE BLOCK *****
4
* The contents of this file are subject to the Mozilla Public License Version
5
* 1.1 (the "License"); you may not use this file except in compliance with
6
* the License. You may obtain a copy of the License at
7
* http://www.mozilla.org/MPL/
9
* Software distributed under the License is distributed on an "AS IS" basis,
10
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11
* for the specific language governing rights and limitations under the
14
* The Original Code is Mozilla Communicator client code, released March 31, 1998.
16
* The Initial Developer of the Original Code is
17
* Netscape Communications Corporation.
18
* Portions created by Netscape are Copyright (C) 1998-1999
19
* Netscape Communications Corporation. All Rights Reserved.
24
* - Binding to permit interfacing between Mozilla and SWT
25
* - Copyright (C) 2003, 2008 IBM Corp. All Rights Reserved.
27
* ***** END LICENSE BLOCK ***** */
28
package org.eclipse.swt.internal.mozilla;
30
public class nsIFile extends nsISupports {
32
static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 45;
34
public static final String NS_IFILE_IID_STR =
35
"c8c0a080-0868-11d3-915f-d9d889d48e3c";
37
public static final nsID NS_IFILE_IID =
38
new nsID(NS_IFILE_IID_STR);
40
public nsIFile(int /*long*/ address) {
44
public static final int NORMAL_FILE_TYPE = 0;
46
public static final int DIRECTORY_TYPE = 1;
48
public int Append(int /*long*/ node) {
49
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1, getAddress(), node);
52
public int AppendNative(int /*long*/ node) {
53
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2, getAddress(), node);
56
public int Normalize() {
57
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3, getAddress());
60
public int Create(int type, int permissions) {
61
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4, getAddress(), type, permissions);
64
public int GetLeafName(int /*long*/ aLeafName) {
65
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 5, getAddress(), aLeafName);
68
public int SetLeafName(int /*long*/ aLeafName) {
69
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 6, getAddress(), aLeafName);
72
public int GetNativeLeafName(int /*long*/ aNativeLeafName) {
73
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 7, getAddress(), aNativeLeafName);
76
public int SetNativeLeafName(int /*long*/ aNativeLeafName) {
77
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 8, getAddress(), aNativeLeafName);
80
public int CopyTo(int /*long*/ newParentDir, int /*long*/ newName) {
81
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 9, getAddress(), newParentDir, newName);
84
public int CopyToNative(int /*long*/ newParentDir, int /*long*/ newName) {
85
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 10, getAddress(), newParentDir, newName);
88
public int CopyToFollowingLinks(int /*long*/ newParentDir, int /*long*/ newName) {
89
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 11, getAddress(), newParentDir, newName);
92
public int CopyToFollowingLinksNative(int /*long*/ newParentDir, int /*long*/ newName) {
93
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 12, getAddress(), newParentDir, newName);
96
public int MoveTo(int /*long*/ newParentDir, int /*long*/ newName) {
97
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 13, getAddress(), newParentDir, newName);
100
public int MoveToNative(int /*long*/ newParentDir, int /*long*/ newName) {
101
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 14, getAddress(), newParentDir, newName);
104
public int Remove(int recursive) {
105
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 15, getAddress(), recursive);
108
public int GetPermissions(int[] aPermissions) {
109
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 16, getAddress(), aPermissions);
112
public int SetPermissions(int aPermissions) {
113
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 17, getAddress(), aPermissions);
116
public int GetPermissionsOfLink(int[] aPermissionsOfLink) {
117
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 18, getAddress(), aPermissionsOfLink);
120
public int SetPermissionsOfLink(int aPermissionsOfLink) {
121
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 19, getAddress(), aPermissionsOfLink);
124
public int GetLastModifiedTime(long[] aLastModifiedTime) {
125
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 20, getAddress(), aLastModifiedTime);
128
public int SetLastModifiedTime(long aLastModifiedTime) {
129
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 21, getAddress(), aLastModifiedTime);
132
public int GetLastModifiedTimeOfLink(long[] aLastModifiedTimeOfLink) {
133
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 22, getAddress(), aLastModifiedTimeOfLink);
136
public int SetLastModifiedTimeOfLink(long aLastModifiedTimeOfLink) {
137
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 23, getAddress(), aLastModifiedTimeOfLink);
140
public int GetFileSize(long[] aFileSize) {
141
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 24, getAddress(), aFileSize);
144
public int SetFileSize(long aFileSize) {
145
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 25, getAddress(), aFileSize);
148
public int GetFileSizeOfLink(long[] aFileSizeOfLink) {
149
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 26, getAddress(), aFileSizeOfLink);
152
public int GetTarget(int /*long*/ aTarget) {
153
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 27, getAddress(), aTarget);
156
public int GetNativeTarget(int /*long*/ aNativeTarget) {
157
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 28, getAddress(), aNativeTarget);
160
public int GetPath(int /*long*/ aPath) {
161
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 29, getAddress(), aPath);
164
public int GetNativePath(int /*long*/ aNativePath) {
165
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 30, getAddress(), aNativePath);
168
public int Exists(int[] _retval) {
169
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 31, getAddress(), _retval);
172
public int IsWritable(int[] _retval) {
173
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 32, getAddress(), _retval);
176
public int IsReadable(int[] _retval) {
177
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 33, getAddress(), _retval);
180
public int IsExecutable(int[] _retval) {
181
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 34, getAddress(), _retval);
184
public int IsHidden(int[] _retval) {
185
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 35, getAddress(), _retval);
188
public int IsDirectory(int[] _retval) {
189
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 36, getAddress(), _retval);
192
public int IsFile(int[] _retval) {
193
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 37, getAddress(), _retval);
196
public int IsSymlink(int[] _retval) {
197
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 38, getAddress(), _retval);
200
public int IsSpecial(int[] _retval) {
201
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 39, getAddress(), _retval);
204
public int CreateUnique(int type, int permissions) {
205
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 40, getAddress(), type, permissions);
208
public int Clone(int /*long*/[] _retval) {
209
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 41, getAddress(), _retval);
212
public int Equals(int /*long*/ inFile, int[] _retval) {
213
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 42, getAddress(), inFile, _retval);
216
public int Contains(int /*long*/ inFile, int recur, int[] _retval) {
217
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 43, getAddress(), inFile, recur, _retval);
220
public int GetParent(int /*long*/[] aParent) {
221
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 44, getAddress(), aParent);
224
public int GetDirectoryEntries(int /*long*/[] aDirectoryEntries) {
225
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 45, getAddress(), aDirectoryEntries);
b'\\ No newline at end of file'
1
/* ***** BEGIN LICENSE BLOCK *****
4
* The contents of this file are subject to the Mozilla Public License Version
5
* 1.1 (the "License"); you may not use this file except in compliance with
6
* the License. You may obtain a copy of the License at
7
* http://www.mozilla.org/MPL/
9
* Software distributed under the License is distributed on an "AS IS" basis,
10
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11
* for the specific language governing rights and limitations under the
14
* The Original Code is Mozilla Communicator client code, released March 31, 1998.
16
* The Initial Developer of the Original Code is
17
* Netscape Communications Corporation.
18
* Portions created by Netscape are Copyright (C) 1998-1999
19
* Netscape Communications Corporation. All Rights Reserved.
24
* - Binding to permit interfacing between Mozilla and SWT
25
* - Copyright (C) 2003, 2008 IBM Corp. All Rights Reserved.
27
* ***** END LICENSE BLOCK ***** */
28
package org.eclipse.swt.internal.mozilla;
30
public class nsIFile extends nsISupports {
32
static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 45;
34
public static final String NS_IFILE_IID_STR =
35
"c8c0a080-0868-11d3-915f-d9d889d48e3c";
37
public static final nsID NS_IFILE_IID =
38
new nsID(NS_IFILE_IID_STR);
40
public nsIFile(int /*long*/ address) {
44
public static final int NORMAL_FILE_TYPE = 0;
46
public static final int DIRECTORY_TYPE = 1;
48
public int Append(int /*long*/ node) {
49
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1, getAddress(), node);
52
public int AppendNative(int /*long*/ node) {
53
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2, getAddress(), node);
56
public int Normalize() {
57
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3, getAddress());
60
public int Create(int type, int permissions) {
61
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4, getAddress(), type, permissions);
64
public int GetLeafName(int /*long*/ aLeafName) {
65
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 5, getAddress(), aLeafName);
68
public int SetLeafName(int /*long*/ aLeafName) {
69
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 6, getAddress(), aLeafName);
72
public int GetNativeLeafName(int /*long*/ aNativeLeafName) {
73
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 7, getAddress(), aNativeLeafName);
76
public int SetNativeLeafName(int /*long*/ aNativeLeafName) {
77
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 8, getAddress(), aNativeLeafName);
80
public int CopyTo(int /*long*/ newParentDir, int /*long*/ newName) {
81
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 9, getAddress(), newParentDir, newName);
84
public int CopyToNative(int /*long*/ newParentDir, int /*long*/ newName) {
85
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 10, getAddress(), newParentDir, newName);
88
public int CopyToFollowingLinks(int /*long*/ newParentDir, int /*long*/ newName) {
89
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 11, getAddress(), newParentDir, newName);
92
public int CopyToFollowingLinksNative(int /*long*/ newParentDir, int /*long*/ newName) {
93
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 12, getAddress(), newParentDir, newName);
96
public int MoveTo(int /*long*/ newParentDir, int /*long*/ newName) {
97
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 13, getAddress(), newParentDir, newName);
100
public int MoveToNative(int /*long*/ newParentDir, int /*long*/ newName) {
101
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 14, getAddress(), newParentDir, newName);
104
public int Remove(int recursive) {
105
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 15, getAddress(), recursive);
108
public int GetPermissions(int[] aPermissions) {
109
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 16, getAddress(), aPermissions);
112
public int SetPermissions(int aPermissions) {
113
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 17, getAddress(), aPermissions);
116
public int GetPermissionsOfLink(int[] aPermissionsOfLink) {
117
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 18, getAddress(), aPermissionsOfLink);
120
public int SetPermissionsOfLink(int aPermissionsOfLink) {
121
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 19, getAddress(), aPermissionsOfLink);
124
public int GetLastModifiedTime(long[] aLastModifiedTime) {
125
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 20, getAddress(), aLastModifiedTime);
128
public int SetLastModifiedTime(long aLastModifiedTime) {
129
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 21, getAddress(), aLastModifiedTime);
132
public int GetLastModifiedTimeOfLink(long[] aLastModifiedTimeOfLink) {
133
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 22, getAddress(), aLastModifiedTimeOfLink);
136
public int SetLastModifiedTimeOfLink(long aLastModifiedTimeOfLink) {
137
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 23, getAddress(), aLastModifiedTimeOfLink);
140
public int GetFileSize(long[] aFileSize) {
141
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 24, getAddress(), aFileSize);
144
public int SetFileSize(long aFileSize) {
145
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 25, getAddress(), aFileSize);
148
public int GetFileSizeOfLink(long[] aFileSizeOfLink) {
149
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 26, getAddress(), aFileSizeOfLink);
152
public int GetTarget(int /*long*/ aTarget) {
153
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 27, getAddress(), aTarget);
156
public int GetNativeTarget(int /*long*/ aNativeTarget) {
157
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 28, getAddress(), aNativeTarget);
160
public int GetPath(int /*long*/ aPath) {
161
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 29, getAddress(), aPath);
164
public int GetNativePath(int /*long*/ aNativePath) {
165
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 30, getAddress(), aNativePath);
168
public int Exists(int[] _retval) {
169
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 31, getAddress(), _retval);
172
public int IsWritable(int[] _retval) {
173
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 32, getAddress(), _retval);
176
public int IsReadable(int[] _retval) {
177
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 33, getAddress(), _retval);
180
public int IsExecutable(int[] _retval) {
181
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 34, getAddress(), _retval);
184
public int IsHidden(int[] _retval) {
185
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 35, getAddress(), _retval);
188
public int IsDirectory(int[] _retval) {
189
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 36, getAddress(), _retval);
192
public int IsFile(int[] _retval) {
193
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 37, getAddress(), _retval);
196
public int IsSymlink(int[] _retval) {
197
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 38, getAddress(), _retval);
200
public int IsSpecial(int[] _retval) {
201
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 39, getAddress(), _retval);
204
public int CreateUnique(int type, int permissions) {
205
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 40, getAddress(), type, permissions);
208
public int Clone(int /*long*/[] _retval) {
209
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 41, getAddress(), _retval);
212
public int Equals(int /*long*/ inFile, int[] _retval) {
213
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 42, getAddress(), inFile, _retval);
216
public int Contains(int /*long*/ inFile, int recur, int[] _retval) {
217
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 43, getAddress(), inFile, recur, _retval);
220
public int GetParent(int /*long*/[] aParent) {
221
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 44, getAddress(), aParent);
224
public int GetDirectoryEntries(int /*long*/[] aDirectoryEntries) {
225
return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 45, getAddress(), aDirectoryEntries);