From a91eeb647138ee035444cdc3c265fa4e95898f29 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 8 Jul 2010 11:04:23 -0400 Subject: Pass GCancellable to Camel. --- mail/mail-tools.h | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'mail/mail-tools.h') diff --git a/mail/mail-tools.h b/mail/mail-tools.h index 01c800fbd9..e746e9f5ec 100644 --- a/mail/mail-tools.h +++ b/mail/mail-tools.h @@ -27,10 +27,15 @@ #include /* Get the "inbox" for a url (uses global session) */ -CamelFolder *mail_tool_get_inbox (const gchar *url, GError **error); +CamelFolder * mail_tool_get_inbox (const gchar *url, + GCancellable *cancellable, + GError **error); /* Get the "trash" for a url (uses global session) */ -CamelFolder *mail_tool_get_trash (const gchar *url, gint connect, GError **error); +CamelFolder * mail_tool_get_trash (const gchar *url, + gint connect, + GCancellable *cancellable, + GError **error); /* Does a camel_movemail into the local movemail folder * and returns the path to the new movemail folder that was created. which shoudl be freed later */ @@ -45,8 +50,11 @@ gchar *mail_tool_generate_forward_subject (CamelMimeMessage *msg); /* Make a message into an attachment */ CamelMimePart *mail_tool_make_message_attachment (CamelMimeMessage *message); -/* Parse the ui into a real CamelFolder any way we know how. */ -CamelFolder *mail_tool_uri_to_folder (const gchar *uri, guint32 flags, GError **error); +/* Parse the URI into a real CamelFolder any way we know how. */ +CamelFolder * mail_tool_uri_to_folder (const gchar *uri, + guint32 flags, + GCancellable *cancellable, + GError **error); GHashTable *mail_lookup_url_table (CamelMimeMessage *mime_message); -- cgit v1.2.3