aboutsummaryrefslogtreecommitdiffstats
path: root/em-format/e-mail-part-headers.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-05-26 03:36:42 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-06-08 12:25:11 +0800
commitc5313b3614bbcb912b4a81a1ffe75911b60ad580 (patch)
tree5fa2ce0980565db6992ae43efa84111dba34839f /em-format/e-mail-part-headers.h
parentbcfd1a92572941ebbcc503bb11461506a05416dc (diff)
downloadgsoc2013-evolution-c5313b3614bbcb912b4a81a1ffe75911b60ad580.tar.gz
gsoc2013-evolution-c5313b3614bbcb912b4a81a1ffe75911b60ad580.tar.zst
gsoc2013-evolution-c5313b3614bbcb912b4a81a1ffe75911b60ad580.zip
EMailPartHeaders: Add a "default-headers" property.
This will replace the headers API in EMailFormatter. Need a more permanent place for headers since EMailFormatter is too disposable. Also add an ESettingsMailPartHeaders class, which binds the new property to the "show-headers" setting with a suitable mapping function to filter out disabled header names.
Diffstat (limited to 'em-format/e-mail-part-headers.h')
-rw-r--r--em-format/e-mail-part-headers.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/em-format/e-mail-part-headers.h b/em-format/e-mail-part-headers.h
index fb0e0eb5d7..c302637dc5 100644
--- a/em-format/e-mail-part-headers.h
+++ b/em-format/e-mail-part-headers.h
@@ -32,10 +32,10 @@
((cls), E_TYPE_MAIL_PART_HEADERS, EMailPartHeadersClass))
#define E_IS_MAIL_PART_HEADERS(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE \
- ((cls), E_TYPE_MAIL_PART_HEADERS))
+ ((obj), E_TYPE_MAIL_PART_HEADERS))
#define E_IS_MAIL_PART_HEADERS_CLASS(cls) \
(G_TYPE_CHECK_CLASS_TYPE \
- ((obj), E_TYPE_MAIL_PART_HEADERS))
+ ((cls), E_TYPE_MAIL_PART_HEADERS))
#define E_MAIL_PART_HEADERS_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS \
((obj), E_TYPE_MAIL_PART_HEADERS, EMailPartHeadersClass))
@@ -61,6 +61,11 @@ struct _EMailPartHeadersClass {
GType e_mail_part_headers_get_type (void) G_GNUC_CONST;
EMailPart * e_mail_part_headers_new (CamelMimePart *mime_part,
const gchar *id);
+gchar ** e_mail_part_headers_dup_default_headers
+ (EMailPartHeaders *part);
+void e_mail_part_headers_set_default_headers
+ (EMailPartHeaders *part,
+ const gchar * const *default_headers);
G_END_DECLS