diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-07-08 23:04:23 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-09-28 23:35:55 +0800 |
commit | a91eeb647138ee035444cdc3c265fa4e95898f29 (patch) | |
tree | 63b5712bc407630d6ad6e504244e6cc4ebc35a86 /em-format/em-format.h | |
parent | 2c21832faab43a176dcb37bc2c65e9e3fb55fc9f (diff) | |
download | gsoc2013-evolution-a91eeb647138ee035444cdc3c265fa4e95898f29.tar gsoc2013-evolution-a91eeb647138ee035444cdc3c265fa4e95898f29.tar.gz gsoc2013-evolution-a91eeb647138ee035444cdc3c265fa4e95898f29.tar.bz2 gsoc2013-evolution-a91eeb647138ee035444cdc3c265fa4e95898f29.tar.lz gsoc2013-evolution-a91eeb647138ee035444cdc3c265fa4e95898f29.tar.xz gsoc2013-evolution-a91eeb647138ee035444cdc3c265fa4e95898f29.tar.zst gsoc2013-evolution-a91eeb647138ee035444cdc3c265fa4e95898f29.zip |
Pass GCancellable to Camel.
Diffstat (limited to 'em-format/em-format.h')
-rw-r--r-- | em-format/em-format.h | 34 |
1 files changed, 23 insertions, 11 deletions
diff --git a/em-format/em-format.h b/em-format/em-format.h index 2bb9ea1099..64f1d5fbea 100644 --- a/em-format/em-format.h +++ b/em-format/em-format.h @@ -63,6 +63,7 @@ typedef void (*EMFormatFunc) (EMFormat *emf, CamelStream *stream, CamelMimePart *mime_part, const EMFormatHandler *info, + GCancellable *cancellable, gboolean is_fallback); typedef enum { @@ -106,7 +107,8 @@ struct _EMFormatHandler { typedef struct _EMFormatPURI EMFormatPURI; typedef void (*EMFormatPURIFunc) (EMFormat *emf, CamelStream *stream, - EMFormatPURI *puri); + EMFormatPURI *puri, + GCancellable *cancellable); /** * struct _EMFormatPURI - Pending URI object. @@ -252,7 +254,8 @@ struct _EMFormatClass { CamelFolder *folder, const gchar *uid, CamelMimeMessage *message, - EMFormat *source); + EMFormat *source, + GCancellable *cancellable); /* some internel error/inconsistency */ void (*format_error) (EMFormat *emf, @@ -264,7 +267,8 @@ struct _EMFormatClass { CamelStream *stream, CamelMimePart *mime_part, const gchar *mime_type, - const EMFormatHandler *info); + const EMFormatHandler *info, + GCancellable *cancellable); /* use for unparsable content */ void (*format_source) (EMFormat *emf, @@ -274,7 +278,8 @@ struct _EMFormatClass { void (*format_secure) (EMFormat *emf, CamelStream *stream, CamelMimePart *mime_part, - CamelCipherValidity *validity); + CamelCipherValidity *validity, + GCancellable *cancellable); /* returns true if the formatter is still busy with pending stuff */ gboolean (*busy) (EMFormat *); @@ -360,19 +365,22 @@ void em_format_format_clone (EMFormat *emf, CamelFolder *folder, const gchar *uid, CamelMimeMessage *message, - EMFormat *source); + EMFormat *source, + GCancellable *cancellable); /* formats a new message */ void em_format_format (EMFormat *emf, CamelFolder *folder, const gchar *uid, - CamelMimeMessage *message); + CamelMimeMessage *message, + GCancellable *cancellable); void em_format_queue_redraw (EMFormat *emf); void em_format_format_attachment (EMFormat *emf, CamelStream *stream, CamelMimePart *mime_part, const gchar *mime_type, - const EMFormatHandler *info); + const EMFormatHandler *info, + GCancellable *cancellable); void em_format_format_error (EMFormat *emf, CamelStream *stream, const gchar *format, @@ -380,7 +388,8 @@ void em_format_format_error (EMFormat *emf, void em_format_format_secure (EMFormat *emf, CamelStream *stream, CamelMimePart *mime_part, - CamelCipherValidity *valid); + CamelCipherValidity *valid, + GCancellable *cancellable); void em_format_format_source (EMFormat *emf, CamelStream *stream, CamelMimePart *mime_part); @@ -390,7 +399,8 @@ gboolean em_format_busy (EMFormat *emf); /* raw content only */ void em_format_format_content (EMFormat *emf, CamelStream *stream, - CamelMimePart *part); + CamelMimePart *part, + GCancellable *cancellable); /* raw content text parts - should this just be checked/done by above? */ void em_format_format_text (EMFormat *emf, @@ -400,10 +410,12 @@ void em_format_format_text (EMFormat *emf, void em_format_part_as (EMFormat *emf, CamelStream *stream, CamelMimePart *part, - const gchar *mime_type); + const gchar *mime_type, + GCancellable *cancellable); void em_format_part (EMFormat *emf, CamelStream *stream, - CamelMimePart *part); + CamelMimePart *mime_part, + GCancellable *cancellable); void em_format_merge_handler (EMFormat *new, EMFormat *old); |