aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-storage.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-03-22 20:47:16 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-03-22 20:47:16 +0800
commit03765ef0bb21fb7d98af1dd8d72a76e683a26a2f (patch)
treed78acece44e41498a8cb63c42bb5b483e87d67eb /shell/e-storage.c
parent2282cef752462976015bffebcce0640457431309 (diff)
downloadgsoc2013-evolution-03765ef0bb21fb7d98af1dd8d72a76e683a26a2f.tar.gz
gsoc2013-evolution-03765ef0bb21fb7d98af1dd8d72a76e683a26a2f.tar.zst
gsoc2013-evolution-03765ef0bb21fb7d98af1dd8d72a76e683a26a2f.zip
Added an xfer method to `EStorage' and `GNOME::Evolution::Storage'.
svn path=/trunk/; revision=8894
Diffstat (limited to 'shell/e-storage.c')
-rw-r--r--shell/e-storage.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/shell/e-storage.c b/shell/e-storage.c
index e38c5e3fbf..f3c48fa97a 100644
--- a/shell/e-storage.c
+++ b/shell/e-storage.c
@@ -198,6 +198,17 @@ impl_async_remove_folder (EStorage *storage,
(* callback) (storage, E_STORAGE_NOTIMPLEMENTED, data);
}
+static void
+impl_async_xfer_folder (EStorage *storage,
+ const char *source_path,
+ const char *destination_path,
+ gboolean remove_source,
+ EStorageResultCallback callback,
+ void *data)
+{
+ (* callback) (storage, E_STORAGE_NOTIMPLEMENTED, data);
+}
+
/* Initialization. */
@@ -216,6 +227,7 @@ class_init (EStorageClass *class)
class->get_name = impl_get_name;
class->async_create_folder = impl_async_create_folder;
class->async_remove_folder = impl_async_remove_folder;
+ class->async_xfer_folder = impl_async_xfer_folder;
signals[NEW_FOLDER] =
gtk_signal_new ("new_folder",
@@ -420,6 +432,24 @@ e_storage_async_remove_folder (EStorage *storage,
(* ES_CLASS (storage)->async_remove_folder) (storage, path, callback, data);
}
+void
+e_storage_async_xfer_folder (EStorage *storage,
+ const char *source_path,
+ const char *destination_path,
+ const gboolean remove_source,
+ EStorageResultCallback callback,
+ void *data)
+{
+ g_return_if_fail (storage != NULL);
+ g_return_if_fail (E_IS_STORAGE (storage));
+ g_return_if_fail (source_path != NULL);
+ g_return_if_fail (g_path_is_absolute (source_path));
+ g_return_if_fail (destination_path != NULL);
+ g_return_if_fail (g_path_is_absolute (destination_path));
+
+ (* ES_CLASS (storage)->async_xfer_folder) (storage, source_path, destination_path, remove_source, callback, data);
+}
+
const char *
e_storage_result_to_string (EStorageResult result)