diff options
author | bertrand <Bertrand.Guiheneuf@aful.org> | 2000-02-18 06:16:33 +0800 |
---|---|---|
committer | Bertrand Guiheneuf <bertrand@src.gnome.org> | 2000-02-18 06:16:33 +0800 |
commit | 39400a38c775a76faa342d519454d789e55bb90d (patch) | |
tree | 62b607d5e8edfc3b8f82253a39e0f58293ea6144 /camel/camel-mime-message.h | |
parent | 0996e4f1ac82ee9fe15be3367d90e0dffd21d936 (diff) | |
download | gsoc2013-evolution-39400a38c775a76faa342d519454d789e55bb90d.tar.gz gsoc2013-evolution-39400a38c775a76faa342d519454d789e55bb90d.tar.zst gsoc2013-evolution-39400a38c775a76faa342d519454d789e55bb90d.zip |
use camel_stream_reset instead of seek. The formatter should be able to
2000-02-17 bertrand <Bertrand.Guiheneuf@aful.org>
* camel/camel-formatter.c (handle_text_plain):
(handle_text_html): use camel_stream_reset instead
of seek. The formatter should be able to work
with all streams, not only seekable streams.
In the case where some provider implementation
would not be able to provide a reset method
to their stream, implementors would have
to find a workaround.
* camel/camel-session.c (camel_session_new): use
(void) instean of () in function decl.
* camel/camel-folder.c: ifdef async operation
related code.
* camel/camel-seekable-stream.c (_seek): added a warning.
(_reset): default implementation of reset for seekable
stream.
* camel/camel-mime-message.h: set_received_date declaration fix.
cosmetic changes.
* camel/providers/mbox/camel-mbox-provider.c (camel_provider_module_init):
use (void) instead of ().
* camel/camel-stream.c (camel_stream_reset):
new method for CamelStream.
svn path=/trunk/; revision=1835
Diffstat (limited to 'camel/camel-mime-message.h')
-rw-r--r-- | camel/camel-mime-message.h | 104 |
1 files changed, 65 insertions, 39 deletions
diff --git a/camel/camel-mime-message.h b/camel/camel-mime-message.h index 69cf840a62..9187e82ca4 100644 --- a/camel/camel-mime-message.h +++ b/camel/camel-mime-message.h @@ -87,23 +87,37 @@ typedef struct { CamelMimePartClass parent_class; /* Virtual methods */ - void (*set_received_date) (CamelMimeMessage *mime_message, gchar *received_date); - const gchar * (*get_received_date) (CamelMimeMessage *mime_message); - const gchar * (*get_sent_date) (CamelMimeMessage *mime_message); - void (*set_reply_to) (CamelMimeMessage *mime_message, const gchar *reply_to); - const gchar * (*get_reply_to) (CamelMimeMessage *mime_message); - void (*set_subject) (CamelMimeMessage *mime_message, const gchar *subject); - const gchar * (*get_subject) (CamelMimeMessage *mime_message); - void (*set_from) (CamelMimeMessage *mime_message, const gchar *from); - const gchar * (*get_from) (CamelMimeMessage *mime_message); - void (*add_recipient) (CamelMimeMessage *mime_message, const gchar *recipient_type, const gchar *recipient); - void (*remove_recipient) (CamelMimeMessage *mime_message, const gchar *recipient_type, const gchar *recipient); - const GList * (*get_recipients) (CamelMimeMessage *mime_message, const gchar *recipient_type); - void (*set_flag) (CamelMimeMessage *mime_message, const gchar *flag, gboolean value); - gboolean (*get_flag) (CamelMimeMessage *mime_message, const gchar *flag); - GList * (*get_flag_list) (CamelMimeMessage *mime_message); - void (*set_message_number)(CamelMimeMessage *mime_message, guint number); - guint (*get_message_number)(CamelMimeMessage *mime_message); + void (*set_received_date) (CamelMimeMessage *mime_message, + const gchar *received_date); + const gchar * (*get_received_date) (CamelMimeMessage *mime_message); + const gchar * (*get_sent_date) (CamelMimeMessage *mime_message); + void (*set_reply_to) (CamelMimeMessage *mime_message, + const gchar *reply_to); + const gchar * (*get_reply_to) (CamelMimeMessage *mime_message); + void (*set_subject) (CamelMimeMessage *mime_message, + const gchar *subject); + const gchar * (*get_subject) (CamelMimeMessage *mime_message); + void (*set_from) (CamelMimeMessage *mime_message, + const gchar *from); + const gchar * (*get_from) (CamelMimeMessage *mime_message); + void (*add_recipient) (CamelMimeMessage *mime_message, + const gchar *recipient_type, + const gchar *recipient); + void (*remove_recipient) (CamelMimeMessage *mime_message, + const gchar *recipient_type, + const gchar *recipient); + const GList * (*get_recipients) (CamelMimeMessage *mime_message, + const gchar *recipient_type); + void (*set_flag) (CamelMimeMessage *mime_message, + const gchar *flag, + gboolean value); + gboolean (*get_flag) (CamelMimeMessage *mime_message, + const gchar *flag); + GList * (*get_flag_list) (CamelMimeMessage *mime_message); + void (*set_message_number) (CamelMimeMessage *mime_message, + guint number); + guint (*get_message_number) (CamelMimeMessage *mime_message); + } CamelMimeMessageClass; @@ -113,28 +127,40 @@ GtkType camel_mime_message_get_type (void); /* public methods */ -CamelMimeMessage *camel_mime_message_new_with_session (CamelSession *session); - - -void camel_mime_message_set_received_date (CamelMimeMessage *mime_message, const gchar *received_date); -const gchar *camel_mime_message_get_received_date (CamelMimeMessage *mime_message); -const gchar *camel_mime_message_get_sent_date (CamelMimeMessage *mime_message); -void camel_mime_message_set_reply_to (CamelMimeMessage *mime_message, const gchar *reply_to); -const gchar *camel_mime_message_get_reply_to (CamelMimeMessage *mime_message); -void camel_mime_message_set_subject (CamelMimeMessage *mime_message, const gchar *subject); -const gchar *camel_mime_message_get_subject (CamelMimeMessage *mime_message); -void camel_mime_message_set_from (CamelMimeMessage *mime_message, const gchar *from); -const gchar *camel_mime_message_get_from (CamelMimeMessage *mime_message); - -void camel_mime_message_add_recipient (CamelMimeMessage *mime_message, const gchar *recipient_type, const gchar *recipient); -void camel_mime_message_remove_recipient (CamelMimeMessage *mime_message, const gchar *recipient_type, const gchar *recipient); -const GList *camel_mime_message_get_recipients (CamelMimeMessage *mime_message, const gchar *recipient_type); - -void camel_mime_message_set_flag (CamelMimeMessage *mime_message, const gchar *flag, gboolean value); -gboolean camel_mime_message_get_flag (CamelMimeMessage *mime_message, const gchar *flag); -GList *camel_mime_message_get_flag_list (CamelMimeMessage *mime_message); - -guint camel_mime_message_get_message_number (CamelMimeMessage *mime_message); +CamelMimeMessage * camel_mime_message_new_with_session (CamelSession *session); + + +void camel_mime_message_set_received_date (CamelMimeMessage *mime_message, + const gchar *received_date); +const gchar * camel_mime_message_get_received_date (CamelMimeMessage *mime_message); +const gchar * camel_mime_message_get_sent_date (CamelMimeMessage *mime_message); +void camel_mime_message_set_reply_to (CamelMimeMessage *mime_message, + const gchar *reply_to); +const gchar * camel_mime_message_get_reply_to (CamelMimeMessage *mime_message); +void camel_mime_message_set_subject (CamelMimeMessage *mime_message, + const gchar *subject); +const gchar * camel_mime_message_get_subject (CamelMimeMessage *mime_message); +void camel_mime_message_set_from (CamelMimeMessage *mime_message, + const gchar *from); +const gchar * camel_mime_message_get_from (CamelMimeMessage *mime_message); + +void camel_mime_message_add_recipient (CamelMimeMessage *mime_message, + const gchar *recipient_type, + const gchar *recipient); +void camel_mime_message_remove_recipient (CamelMimeMessage *mime_message, + const gchar *recipient_type, + const gchar *recipient); +const GList * camel_mime_message_get_recipients (CamelMimeMessage *mime_message, + const gchar *recipient_type); + +void camel_mime_message_set_flag (CamelMimeMessage *mime_message, + const gchar *flag, + gboolean value); +gboolean camel_mime_message_get_flag (CamelMimeMessage *mime_message, + const gchar *flag); +GList * camel_mime_message_get_flag_list (CamelMimeMessage *mime_message); + +guint camel_mime_message_get_message_number (CamelMimeMessage *mime_message); #ifdef __cplusplus } |