summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-file-changes-queue.h
diff options
context:
space:
mode:
authorPavel Cisler <pavel@eazel.com>2000-04-18 03:13:56 +0000
committerPavel Cisler <pce@src.gnome.org>2000-04-18 03:13:56 +0000
commita49e9119f814b03eb1c10f8900ff01518c5d178f (patch)
treeb42c962b53044b04cd4607cc9e313af954765a16 /libnautilus-private/nautilus-file-changes-queue.h
parent4393e9621451887324cc7d2c101deb7f06439c8b (diff)
downloadnautilus-a49e9119f814b03eb1c10f8900ff01518c5d178f.tar.gz
This checkin requires new gnome-vfs.
2000-04-17 Pavel Cisler <pavel@eazel.com> This checkin requires new gnome-vfs. Plumbing for making copied/moved/deleted files show up update in their respective new locations. * libnautilus-extensions/nautilus-file-changes-queue.h * libnautilus-extensions/nautilus-file-changes-queue.c * libnautilus-extensions/Makefile.am Shared queue used by the copy engine to send update notification requests to NautilusDirectory during file copy/move/delete operations. * libnautilus-extensions/nautilus-directory-private.h: * libnautilus-extensions/nautilus-directory.c: (nautilus_directory_notify_files_added), (nautilus_directory_notify_files_removed), (nautilus_directory_notify_files_moved): Stub calls that will be hooked up to the NautilusDirectory notification calls to dispatch the notification updates. * src/file-manager/dfos-xfer.c: (sync_xfer_callback): New callback that gets called in the async copy engine context and produces change entries stuffing them into the file changes queue. * src/file-manager/dfos-xfer.c: (handle_xfer_ok): Added calls to the new nautilus_file_changes_consume_changes from the progress update callback. This callback is called in the user interface context and consumes the change entries from the file changes queue, sending them in chunks to be dispatched by to the individual Nautilus directory objects. * src/file-manager/dfos-xfer.c: (handle_xfer_ok): Updated to use new progress enum values. * src/file-manager/dfos-xfer.c: (update_xfer_callback): Renamed from sync_xfer_callback. * src/file-manager/dfos-xfer.c: (gnome_vfs_async_xfer): Pass in new sync_xfer_callback parameters.
Diffstat (limited to 'libnautilus-private/nautilus-file-changes-queue.h')
-rw-r--r--libnautilus-private/nautilus-file-changes-queue.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/libnautilus-private/nautilus-file-changes-queue.h b/libnautilus-private/nautilus-file-changes-queue.h
new file mode 100644
index 000000000..3cedb1c09
--- /dev/null
+++ b/libnautilus-private/nautilus-file-changes-queue.h
@@ -0,0 +1,43 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*-
+
+ nautilus-directory.h: Nautilus directory model.
+
+ Copyright (C) 1999, 2000 Eazel, Inc.
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public
+ License along with this program; if not, write to the
+ Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA.
+
+*/
+
+#ifndef NAUTILUS_FILE_CHANGES_QUEUE_H
+#define NAUTILUS_FILE_CHANGES_QUEUE_H
+
+typedef struct NautilusFileChangesQueue NautilusFileChangesQueue;
+typedef struct NautilusFileChangesQueueDetails NautilusFileChangesQueueDetails;
+
+void nautilus_file_changes_queue_free (NautilusFileChangesQueue *queue);
+
+void nautilus_file_changes_queue_file_added (const char *uri);
+void nautilus_file_changes_queue_file_removed (const char *uri);
+void nautilus_file_changes_queue_file_moved (const char *from_uri,
+ const char *to_uri);
+
+void nautilus_file_changes_consume_changes (gboolean consume_all);
+
+struct NautilusFileChangesQueue {
+ NautilusFileChangesQueueDetails *details;
+};
+
+#endif