1 28 package org.eclipse.swt.internal.mozilla; 29 30 public class nsIFile extends nsISupports { 31 32 static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 45; 33 34 public static final String NS_IFILE_IID_STR = 35 "c8c0a080-0868-11d3-915f-d9d889d48e3c"; 36 37 public static final nsID NS_IFILE_IID = 38 new nsID(NS_IFILE_IID_STR); 39 40 public nsIFile(int address) { 41 super(address); 42 } 43 44 public static final int NORMAL_FILE_TYPE = 0; 45 46 public static final int DIRECTORY_TYPE = 1; 47 48 public int Append(int node) { 49 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1, getAddress(), node); 50 } 51 52 public int AppendNative(int node) { 53 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2, getAddress(), node); 54 } 55 56 public int Normalize() { 57 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3, getAddress()); 58 } 59 60 public int Create(int type, int permissions) { 61 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4, getAddress(), type, permissions); 62 } 63 64 public int GetLeafName(int aLeafName) { 65 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 5, getAddress(), aLeafName); 66 } 67 68 public int SetLeafName(int aLeafName) { 69 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 6, getAddress(), aLeafName); 70 } 71 72 public int GetNativeLeafName(int aNativeLeafName) { 73 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 7, getAddress(), aNativeLeafName); 74 } 75 76 public int SetNativeLeafName(int aNativeLeafName) { 77 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 8, getAddress(), aNativeLeafName); 78 } 79 80 public int CopyTo(int newParentDir, int newName) { 81 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 9, getAddress(), newParentDir, newName); 82 } 83 84 public int CopyToNative(int newParentDir, int newName) { 85 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 10, getAddress(), newParentDir, newName); 86 } 87 88 public int CopyToFollowingLinks(int newParentDir, int newName) { 89 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 11, getAddress(), newParentDir, newName); 90 } 91 92 public int CopyToFollowingLinksNative(int newParentDir, int newName) { 93 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 12, getAddress(), newParentDir, newName); 94 } 95 96 public int MoveTo(int newParentDir, int newName) { 97 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 13, getAddress(), newParentDir, newName); 98 } 99 100 public int MoveToNative(int newParentDir, int newName) { 101 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 14, getAddress(), newParentDir, newName); 102 } 103 104 public int Remove(boolean recursive) { 105 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 15, getAddress(), recursive); 106 } 107 108 public int GetPermissions(int[] aPermissions) { 109 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 16, getAddress(), aPermissions); 110 } 111 112 public int SetPermissions(int aPermissions) { 113 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 17, getAddress(), aPermissions); 114 } 115 116 public int GetPermissionsOfLink(int[] aPermissionsOfLink) { 117 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 18, getAddress(), aPermissionsOfLink); 118 } 119 120 public int SetPermissionsOfLink(int aPermissionsOfLink) { 121 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 19, getAddress(), aPermissionsOfLink); 122 } 123 124 public int GetLastModifiedTime(long[] aLastModifiedTime) { 125 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 20, getAddress(), aLastModifiedTime); 126 } 127 128 public int SetLastModifiedTime(long aLastModifiedTime) { 129 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 21, getAddress(), aLastModifiedTime); 130 } 131 132 public int GetLastModifiedTimeOfLink(long[] aLastModifiedTimeOfLink) { 133 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 22, getAddress(), aLastModifiedTimeOfLink); 134 } 135 136 public int SetLastModifiedTimeOfLink(long aLastModifiedTimeOfLink) { 137 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 23, getAddress(), aLastModifiedTimeOfLink); 138 } 139 140 public int GetFileSize(long[] aFileSize) { 141 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 24, getAddress(), aFileSize); 142 } 143 144 public int SetFileSize(long aFileSize) { 145 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 25, getAddress(), aFileSize); 146 } 147 148 public int GetFileSizeOfLink(long[] aFileSizeOfLink) { 149 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 26, getAddress(), aFileSizeOfLink); 150 } 151 152 public int GetTarget(int aTarget) { 153 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 27, getAddress(), aTarget); 154 } 155 156 public int GetNativeTarget(int aNativeTarget) { 157 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 28, getAddress(), aNativeTarget); 158 } 159 160 public int GetPath(int aPath) { 161 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 29, getAddress(), aPath); 162 } 163 164 public int GetNativePath(int aNativePath) { 165 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 30, getAddress(), aNativePath); 166 } 167 168 public int Exists(boolean[] _retval) { 169 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 31, getAddress(), _retval); 170 } 171 172 public int IsWritable(boolean[] _retval) { 173 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 32, getAddress(), _retval); 174 } 175 176 public int IsReadable(boolean[] _retval) { 177 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 33, getAddress(), _retval); 178 } 179 180 public int IsExecutable(boolean[] _retval) { 181 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 34, getAddress(), _retval); 182 } 183 184 public int IsHidden(boolean[] _retval) { 185 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 35, getAddress(), _retval); 186 } 187 188 public int IsDirectory(boolean[] _retval) { 189 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 36, getAddress(), _retval); 190 } 191 192 public int IsFile(boolean[] _retval) { 193 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 37, getAddress(), _retval); 194 } 195 196 public int IsSymlink(boolean[] _retval) { 197 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 38, getAddress(), _retval); 198 } 199 200 public int IsSpecial(boolean[] _retval) { 201 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 39, getAddress(), _retval); 202 } 203 204 public int CreateUnique(int type, int permissions) { 205 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 40, getAddress(), type, permissions); 206 } 207 208 public int Clone(int [] _retval) { 209 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 41, getAddress(), _retval); 210 } 211 212 public int Equals(int inFile, boolean[] _retval) { 213 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 42, getAddress(), inFile, _retval); 214 } 215 216 public int Contains(int inFile, boolean recur, boolean[] _retval) { 217 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 43, getAddress(), inFile, recur, _retval); 218 } 219 220 public int GetParent(int [] aParent) { 221 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 44, getAddress(), aParent); 222 } 223 224 public int GetDirectoryEntries(int [] aDirectoryEntries) { 225 return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 45, getAddress(), aDirectoryEntries); 226 } 227 } | Popular Tags |