diff options
author | Michael Zucci <zucchi@src.gnome.org> | 2000-05-02 05:50:46 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2000-05-02 05:50:46 +0800 |
commit | 896c775a526e35d8c201c5ba4a27d6b87b25167c (patch) | |
tree | 6d7ea63d741f4c58b88b4ee0aa451facf9568b35 /camel/camel-folder.c | |
parent | 188a9f0afa2ac898b9bc90c0301c760a7224d100 (diff) | |
download | gsoc2013-evolution-896c775a526e35d8c201c5ba4a27d6b87b25167c.tar.gz gsoc2013-evolution-896c775a526e35d8c201c5ba4a27d6b87b25167c.tar.zst gsoc2013-evolution-896c775a526e35d8c201c5ba4a27d6b87b25167c.zip |
Removed search_id.
* providers/mbox/camel-mbox-folder.h (CamelMboxFolder): Removed
search_id.
* providers/mbox/camel-mbox-search.c
(camel_mbox_folder_search_cancel): Remove.d
(camel_mbox_folder_search_complete): Removed.
(camel_mbox_folder_search_by_expression): Changed back to sync
api.
(struct _searchcontext): Removed cancelled flag.
(find_context): Removed.
* providers/mbox/camel-mbox-search.h
(camel_mbox_folder_search_by_expression): Moved back to sync api.
(camel_folder_search_complete): Removed.
(camel_folder_search_cancel): Removed.
(CamelFolderClass): New function summary_get_by_uid() to get a single
summary.
(*search*): Moved back to synchronous search api ... *sigh*
svn path=/trunk/; revision=2723
Diffstat (limited to 'camel/camel-folder.c')
-rw-r--r-- | camel/camel-folder.c | 53 |
1 files changed, 30 insertions, 23 deletions
diff --git a/camel/camel-folder.c b/camel/camel-folder.c index c0d0e5fcb3..446b511221 100644 --- a/camel/camel-folder.c +++ b/camel/camel-folder.c @@ -133,6 +133,7 @@ static void _delete_message_by_uid (CamelFolder *folder, static GPtrArray *get_message_info (CamelFolder *folder, int first, int count); static GPtrArray *get_subfolder_info (CamelFolder *folder, int first, int count); +static const CamelMessageInfo *summary_get_by_uid(CamelFolder *f, const char *uid); static void @@ -181,6 +182,7 @@ camel_folder_class_init (CamelFolderClass *camel_folder_class) camel_folder_class->get_subfolder_info = get_subfolder_info; camel_folder_class->get_message_info = get_message_info; + camel_folder_class->summary_get_by_uid = summary_get_by_uid; /* virtual method overload */ gtk_object_class->finalize = _finalize; @@ -1246,6 +1248,29 @@ camel_folder_summary_get_message_info (CamelFolder *folder, return CF_CLASS (folder)->get_message_info (folder, first, count); } +static const CamelMessageInfo * +summary_get_by_uid(CamelFolder *f, const char *uid) +{ + g_warning("folder::summary_get_by_uid() unimplemented"); + return NULL; +} + +/** + * camel_folder_summary_get_by_uid: + * @folder: + * @uid: + * + * Get a single summary entry, by uid. + * + * Return value: + **/ +const CamelMessageInfo *camel_folder_summary_get_by_uid (CamelFolder *folder, const char *uid) +{ + g_assert (folder != NULL); + g_assert(uid != NULL); + return CF_CLASS (folder)->summary_get_by_uid (folder, uid); +} + /* summary stuff */ /* TODO: is this function required anyway? */ gboolean @@ -1412,32 +1437,14 @@ camel_folder_has_search_capability (CamelFolder *folder) return folder->has_search_capability; } -int camel_folder_search_by_expression (CamelFolder *folder, - const char *expression, - CamelSearchFunc *func, - void *data, - CamelException *ex) -{ - g_assert (folder != NULL); - g_return_val_if_fail (folder->has_search_capability, -1); - - return CF_CLASS (folder)->search_by_expression (folder, expression, func, data, ex); -} - -gboolean camel_folder_search_complete(CamelFolder *folder, int searchid, gboolean wait, CamelException *ex) -{ - g_assert (folder != NULL); - g_return_val_if_fail (folder->has_search_capability, FALSE); - - return CF_CLASS (folder)->search_complete (folder, searchid, wait, ex); -} - -void camel_folder_search_cancel(CamelFolder *folder, int searchid, CamelException *ex) +GList *camel_folder_search_by_expression (CamelFolder *folder, + const char *expression, + CamelException *ex) { g_assert (folder != NULL); - g_return_if_fail (folder->has_search_capability); + g_return_val_if_fail (folder->has_search_capability, NULL); - return CF_CLASS (folder)->search_cancel (folder, searchid, ex); + return CF_CLASS (folder)->search_by_expression (folder, expression, ex); } /* **** */ |