public static Result XferUriList(Uri[] sources, Uri[] targets, XferOptions options, XferErrorMode errorMode, XferOverwriteMode overwriteMode, XferProgressCallback callback) { XferProgressCallbackWrapper wrapper = new XferProgressCallbackWrapper(callback, null); GLib.List sourcesList = new GLib.List(typeof(Uri)); foreach (Uri uri in sources) { sourcesList.Append(uri.Handle); } GLib.List targetsList = new GLib.List(typeof(Uri)); foreach (Uri uri in targets) { targetsList.Append(uri.Handle); } return(gnome_vfs_xfer_uri_list(sourcesList.Handle, targetsList.Handle, options, errorMode, overwriteMode, wrapper.NativeDelegate, IntPtr.Zero)); }
public static Result XferUri (Uri source, Uri target, XferOptions options, XferErrorMode errorMode, XferOverwriteMode overwriteMode, XferProgressCallback callback) { XferProgressCallbackWrapper wrapper = new XferProgressCallbackWrapper (callback, null); return gnome_vfs_xfer_uri (source.Handle, target.Handle, options, errorMode, overwriteMode, wrapper.NativeDelegate, IntPtr.Zero); }
public static Result XferUri(Uri source, Uri target, XferOptions options, XferErrorMode errorMode, XferOverwriteMode overwriteMode, XferProgressCallback callback) { XferProgressCallbackWrapper wrapper = new XferProgressCallbackWrapper(callback, null); return(gnome_vfs_xfer_uri(source.Handle, target.Handle, options, errorMode, overwriteMode, wrapper.NativeDelegate, IntPtr.Zero)); }
public static Result XferUriList (Uri[] sources, Uri[] targets, XferOptions options, XferErrorMode errorMode, XferOverwriteMode overwriteMode, XferProgressCallback callback) { XferProgressCallbackWrapper wrapper = new XferProgressCallbackWrapper (callback, null); GLib.List sourcesList = new GLib.List (typeof (Uri)); foreach (Uri uri in sources) sourcesList.Append (uri.Handle); GLib.List targetsList = new GLib.List (typeof (Uri)); foreach (Uri uri in targets) targetsList.Append (uri.Handle); return gnome_vfs_xfer_uri_list (sourcesList.Handle, targetsList.Handle, options, errorMode, overwriteMode, wrapper.NativeDelegate, IntPtr.Zero); }
public XferProgressCallbackWrapper (XferProgressCallback managed, object o) : base (o) { NativeDelegate = new XferProgressCallbackNative (NativeCallback); _managed = managed; }
public XferProgressCallbackWrapper(XferProgressCallback managed, object o) : base(o) { NativeDelegate = new XferProgressCallbackNative(NativeCallback); _managed = managed; }