// THIS FILE AUTOMATICALLY GENERATED BY xpidl2cs.pl // EDITING IS PROBABLY UNWISE // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // // Copyright (c) 2007, 2008 Novell, Inc. // // Authors: // Andreia Gaita (avidigal@novell.com) // using System; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; using System.Text; namespace Mono.Mozilla { [Guid ("c8c0a080-0868-11d3-915f-d9d889d48e3c")] [InterfaceType (ComInterfaceType.InterfaceIsIUnknown)] [ComImport ()] internal interface nsIFile { #region nsIFile [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int append ( /*AString*/ HandleRef node); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int appendNative ( /*ACString*/ HandleRef node); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int normalize (); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int create ( uint type, uint permissions); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int getLeafName ( /*AString*/ HandleRef ret); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int setLeafName ( /*AString*/ HandleRef value); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int getNativeLeafName ( /*ACString*/ HandleRef ret); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int setNativeLeafName ( /*ACString*/ HandleRef value); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int copyTo ( [MarshalAs (UnmanagedType.Interface)] nsIFile newParentDir, /*AString*/ HandleRef newName); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int CopyToNative ( [MarshalAs (UnmanagedType.Interface)] nsIFile newParentDir, /*ACString*/ HandleRef newName); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int copyToFollowingLinks ( [MarshalAs (UnmanagedType.Interface)] nsIFile newParentDir, /*AString*/ HandleRef newName); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int copyToFollowingLinksNative ( [MarshalAs (UnmanagedType.Interface)] nsIFile newParentDir, /*ACString*/ HandleRef newName); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int moveTo ( [MarshalAs (UnmanagedType.Interface)] nsIFile newParentDir, /*AString*/ HandleRef newName); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int moveToNative ( [MarshalAs (UnmanagedType.Interface)] nsIFile newParentDir, /*ACString*/ HandleRef newName); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int remove ( bool recursive); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int getPermissions ( out uint ret); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int setPermissions ( uint value); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int getPermissionsOfLink ( out uint ret); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int setPermissionsOfLink ( uint value); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int getLastModifiedTime ( out long ret); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int setLastModifiedTime ( long value); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int getLastModifiedTimeOfLink ( out long ret); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int setLastModifiedTimeOfLink ( long value); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int getFileSize ( out long ret); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int setFileSize ( long value); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int getFileSizeOfLink ( out long ret); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int getTarget ( /*AString*/ HandleRef ret); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int getNativeTarget ( /*ACString*/ HandleRef ret); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int getPath ( /*AString*/ HandleRef ret); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int getNativePath ( /*ACString*/ HandleRef ret); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int exists ( out bool ret); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int isWritable ( out bool ret); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int isReadable ( out bool ret); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int isExecutable ( out bool ret); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int isHidden ( out bool ret); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int isDirectory ( out bool ret); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int isFile ( out bool ret); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int isSymlink ( out bool ret); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int isSpecial ( out bool ret); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int createUnique ( uint type, uint permissions); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int clone ([MarshalAs (UnmanagedType.Interface)] out nsIFile ret); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int equals ( [MarshalAs (UnmanagedType.Interface)] nsIFile inFile, out bool ret); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int contains ( [MarshalAs (UnmanagedType.Interface)] nsIFile inFile, bool recur, out bool ret); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int getParent ([MarshalAs (UnmanagedType.Interface)] out nsIFile ret); [PreserveSigAttribute] [MethodImpl (MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] int getDirectoryEntries ([MarshalAs (UnmanagedType.Interface)] out nsISimpleEnumerator ret); #endregion } internal class nsFile { public static nsIFile GetProxy (Mono.WebBrowser.IWebBrowser control, nsIFile obj) { object o = Base.GetProxyForObject (control, typeof(nsIFile).GUID, obj); return o as nsIFile; } } }