aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-storage-set.h
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-03-22 21:41:01 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-03-22 21:41:01 +0800
commita2ae2d718be2cf4803ae0564c0cc539ecdaa4f6b (patch)
tree7674d44bf7424c4342f5e52ea0e89a738f893518 /shell/e-storage-set.h
parent03765ef0bb21fb7d98af1dd8d72a76e683a26a2f (diff)
downloadgsoc2013-evolution-a2ae2d718be2cf4803ae0564c0cc539ecdaa4f6b.tar.gz
gsoc2013-evolution-a2ae2d718be2cf4803ae0564c0cc539ecdaa4f6b.tar.zst
gsoc2013-evolution-a2ae2d718be2cf4803ae0564c0cc539ecdaa4f6b.zip
Changed the EStorageSet API to have a single `xfer()' method instead
of separate copy/move (as in the IDL). Actually implement the `xfer()' operation for the case when source and destination are in the same storage. Fix the `EStorageSet' API by having a special `EStorageSetResultCallback' callback type for it (instead of using `EStorageResultCallback', which would never work). Also, removed some unused variables in `e-storage-set-view.c'. svn path=/trunk/; revision=8895
Diffstat (limited to 'shell/e-storage-set.h')
-rw-r--r--shell/e-storage-set.h39
1 files changed, 18 insertions, 21 deletions
diff --git a/shell/e-storage-set.h b/shell/e-storage-set.h
index 66e2ce8ab0..8e5d8e379e 100644
--- a/shell/e-storage-set.h
+++ b/shell/e-storage-set.h
@@ -45,6 +45,8 @@ typedef struct _EStorageSet EStorageSet;
typedef struct _EStorageSetPrivate EStorageSetPrivate;
typedef struct _EStorageSetClass EStorageSetClass;
+typedef void (* EStorageSetResultCallback) (EStorageSet *storage_set, EStorageResult result, void *data);
+
struct _EStorageSet {
GtkObject parent;
@@ -81,27 +83,22 @@ EFolder *e_storage_set_get_folder (EStorageSet *storage
const char *path);
GtkWidget *e_storage_set_new_view (EStorageSet *storage_set);
-void e_storage_set_async_create_folder (EStorageSet *storage_set,
- const char *path,
- const char *type,
- const char *description,
- EStorageResultCallback callback,
- void *data);
-void e_storage_set_async_remove_folder (EStorageSet *storage_set,
- const char *path,
- EStorageResultCallback callback,
- void *data);
-
-void e_storage_set_async_copy_folder (EStorageSet *storage_set,
- const char *source_path,
- const char *destination_path,
- EStorageResultCallback callback,
- void *data);
-void e_storage_set_async_move_folder (EStorageSet *storage_set,
- const char *source_path,
- const char *destination_path,
- EStorageResultCallback callback,
- void *data);
+void e_storage_set_async_create_folder (EStorageSet *storage_set,
+ const char *path,
+ const char *type,
+ const char *description,
+ EStorageSetResultCallback callback,
+ void *data);
+void e_storage_set_async_remove_folder (EStorageSet *storage_set,
+ const char *path,
+ EStorageSetResultCallback callback,
+ void *data);
+void e_storage_set_async_xfer_folder (EStorageSet *storage_set,
+ const char *source_path,
+ const char *destination_path,
+ gboolean remove_source,
+ EStorageSetResultCallback callback,
+ void *data);
EFolderTypeRegistry *e_storage_set_get_folder_type_registry (EStorageSet *storage_set);