diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2000-06-11 01:56:46 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2000-06-11 01:56:46 +0800 |
commit | bbb6a6942fdfbb2684c37ee6aa55f8c6e5b5a9f2 (patch) | |
tree | edcd34154f3281bd860ce40f67d7fc736d340e75 /shell/e-storage.h | |
parent | e8e0d04d0c8a5eb18a62d98e5a62d126756fa79f (diff) | |
download | gsoc2013-evolution-bbb6a6942fdfbb2684c37ee6aa55f8c6e5b5a9f2.tar gsoc2013-evolution-bbb6a6942fdfbb2684c37ee6aa55f8c6e5b5a9f2.tar.gz gsoc2013-evolution-bbb6a6942fdfbb2684c37ee6aa55f8c6e5b5a9f2.tar.bz2 gsoc2013-evolution-bbb6a6942fdfbb2684c37ee6aa55f8c6e5b5a9f2.tar.lz gsoc2013-evolution-bbb6a6942fdfbb2684c37ee6aa55f8c6e5b5a9f2.tar.xz gsoc2013-evolution-bbb6a6942fdfbb2684c37ee6aa55f8c6e5b5a9f2.tar.zst gsoc2013-evolution-bbb6a6942fdfbb2684c37ee6aa55f8c6e5b5a9f2.zip |
Implemented folder creation dialog (File -> New -> Folder). To make
it really work though, the components should implement creation
functionality by passing an appropriate function pointer in
`e_shell_component_new()' for @create_folder_fn.
svn path=/trunk/; revision=3504
Diffstat (limited to 'shell/e-storage.h')
-rw-r--r-- | shell/e-storage.h | 49 |
1 files changed, 28 insertions, 21 deletions
diff --git a/shell/e-storage.h b/shell/e-storage.h index b144d0af5a..5422d6a9b4 100644 --- a/shell/e-storage.h +++ b/shell/e-storage.h @@ -48,10 +48,15 @@ typedef struct _EStorageClass EStorageClass; enum _EStorageResult { E_STORAGE_OK, - E_STORAGE_NOTIMPLEMENTED, - E_STORAGE_NOTFOUND, + E_STORAGE_GENERICERROR, E_STORAGE_EXISTS, - E_STORAGE_IO, + E_STORAGE_INVALIDTYPE, + E_STORAGE_IOERROR, + E_STORAGE_NOSPACE, + E_STORAGE_NOTFOUND, + E_STORAGE_NOTIMPLEMENTED, + E_STORAGE_PERMISSIONDENIED, + E_STORAGE_UNSUPPORTEDOPERATION, E_STORAGE_UNSUPPORTEDTYPE }; typedef enum _EStorageResult EStorageResult; @@ -76,15 +81,15 @@ struct _EStorageClass { /* Virtual methods. */ - GList * (* list_folders) (EStorage *storage, const char *path); - EFolder * (* get_folder) (EStorage *storage, const char *path); - const char * (* get_name) (EStorage *storage); + GList * (* list_folders) (EStorage *storage, const char *path); + EFolder * (* get_folder) (EStorage *storage, const char *path); + const char * (* get_name) (EStorage *storage); - void (* create_folder) (EStorage *storage, const char *path, - const char *type, const char *description, - EStorageResultCallback callback, void *data); - void (* remove_folder) (EStorage *storage, const char *path, - EStorageResultCallback callback, void *data); + void (* async_create_folder) (EStorage *storage, const char *path, + const char *type, const char *description, + EStorageResultCallback callback, void *data); + void (* async_remove_folder) (EStorage *storage, const char *path, + EStorageResultCallback callback, void *data); }; @@ -101,16 +106,18 @@ const char *e_storage_get_name (EStorage *storage); /* Folder operations. */ -void e_storage_create_folder (EStorage *storage, - const char *path, - const char *type, - const char *description, - EStorageResultCallback callback, - void *data); -void e_storage_remove_folder (EStorage *storage, - const char *path, - EStorageResultCallback callback, - void *data); +void e_storage_async_create_folder (EStorage *storage, + const char *path, + const char *type, + const char *description, + EStorageResultCallback callback, + void *data); +void e_storage_async_remove_folder (EStorage *storage, + const char *path, + EStorageResultCallback callback, + void *data); + +const char *e_storage_result_to_string (EStorageResult result); /* Protected. C++ anyone? */ gboolean e_storage_new_folder (EStorage *storage, const char *path, EFolder *folder); |