aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-storage.h
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2003-03-15 02:13:58 +0800
committerDan Winship <danw@src.gnome.org>2003-03-15 02:13:58 +0800
commit0f75c9693668acf8e5a1f8ca3e7aa3cd2cd0d399 (patch)
tree3ca29899a3cfc9ee08329c99151c49fe0b55fed9 /shell/e-storage.h
parent1df1d4aead3ebacf457f637c6df2a5e8539b7fbf (diff)
downloadgsoc2013-evolution-0f75c9693668acf8e5a1f8ca3e7aa3cd2cd0d399.tar
gsoc2013-evolution-0f75c9693668acf8e5a1f8ca3e7aa3cd2cd0d399.tar.gz
gsoc2013-evolution-0f75c9693668acf8e5a1f8ca3e7aa3cd2cd0d399.tar.bz2
gsoc2013-evolution-0f75c9693668acf8e5a1f8ca3e7aa3cd2cd0d399.tar.lz
gsoc2013-evolution-0f75c9693668acf8e5a1f8ca3e7aa3cd2cd0d399.tar.xz
gsoc2013-evolution-0f75c9693668acf8e5a1f8ca3e7aa3cd2cd0d399.tar.zst
gsoc2013-evolution-0f75c9693668acf8e5a1f8ca3e7aa3cd2cd0d399.zip
add a Bonobo::Listener to this like the other async interfaces, rather
* Evolution-Storage.idl (asyncOpenFolder): add a Bonobo::Listener to this like the other async interfaces, rather than having a hacky way to signal failure. * evolution-storage.c (impl_Storage_asyncOpenFolder): Update to take a listener and emit it as part of the signal (evolution_storage_class_init): update OPEN_FOLDER signal prototype. * e-shell-marshal.list (NONE:POINTER,STRING): add, for changed EvolutionStorage open_folder signal * e-storage.c (e_storage_async_open_folder): add a callback arg (impl_async_open_folder): call the callback with NOTIMPLEMENTED. (class_init): remove the CLOSE_FOLDER signal (e_storage_has_subfolders): Don't emit CLOSE_FOLDER since it doesn't exist any more, and this function is used for that side effect any more anyway. * e-corba-storage.c (async_open_folder): add the callback arg and create a proper closure. (async_open_folder_idle): Call the callback in case of error. Create a listener and pass that to the CORBA call. (async_open_cb): Listener callback. * e-storage-set.c (storage_set_view_folder_opened): Pass a callback to e_storage_async_open_folder. (async_open_cb): emit CLOSE_FOLDER if the open failed (storage_close_folder_cb): Remove this since the signal no longer exists. svn path=/trunk/; revision=20297
Diffstat (limited to 'shell/e-storage.h')
-rw-r--r--shell/e-storage.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/shell/e-storage.h b/shell/e-storage.h
index 31d2ff7c1a..e7793b8c90 100644
--- a/shell/e-storage.h
+++ b/shell/e-storage.h
@@ -112,7 +112,9 @@ struct _EStorageClass {
void *data);
void (* async_open_folder) (EStorage *storage,
- const char *path);
+ const char *path,
+ EStorageDiscoveryCallback callback,
+ void *data);
gboolean (* supports_shared_folders) (EStorage *storage);
void (* async_discover_shared_folder) (EStorage *storage,
@@ -165,8 +167,10 @@ void e_storage_async_xfer_folder (EStorage *storage,
const gboolean remove_source,
EStorageResultCallback callback,
void *data);
-void e_storage_async_open_folder (EStorage *storage,
- const char *path);
+void e_storage_async_open_folder (EStorage *storage,
+ const char *path,
+ EStorageDiscoveryCallback callback,
+ void *data);
const char *e_storage_result_to_string (EStorageResult result);