Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
		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);
		}
Exemplo n.º 3
0
        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));
        }
Exemplo n.º 4
0
		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);
		}