aboutsummaryrefslogtreecommitdiffstats
path: root/em-format/e-mail-part-headers.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-06-06 07:30:00 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-06-08 12:25:15 +0800
commit64388b6b828c49827dad1159dac1482cc9840650 (patch)
treee6f6bc3e6bc0238516dec52caa293accd295c51a /em-format/e-mail-part-headers.h
parentc5313b3614bbcb912b4a81a1ffe75911b60ad580 (diff)
downloadgsoc2013-evolution-64388b6b828c49827dad1159dac1482cc9840650.tar
gsoc2013-evolution-64388b6b828c49827dad1159dac1482cc9840650.tar.gz
gsoc2013-evolution-64388b6b828c49827dad1159dac1482cc9840650.tar.bz2
gsoc2013-evolution-64388b6b828c49827dad1159dac1482cc9840650.tar.lz
gsoc2013-evolution-64388b6b828c49827dad1159dac1482cc9840650.tar.xz
gsoc2013-evolution-64388b6b828c49827dad1159dac1482cc9840650.tar.zst
gsoc2013-evolution-64388b6b828c49827dad1159dac1482cc9840650.zip
Add e_mail_part_headers_ref_print_model().
Returns a GtkTreeModel of header names and values and visibility flags, built from the CamelMimeMessage. The tree model rows can be reordered and toggled prior to printing. Also add e_mail_part_headers_is_default() as a handy helper.
Diffstat (limited to 'em-format/e-mail-part-headers.h')
-rw-r--r--em-format/e-mail-part-headers.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/em-format/e-mail-part-headers.h b/em-format/e-mail-part-headers.h
index c302637dc5..c7da98f6b4 100644
--- a/em-format/e-mail-part-headers.h
+++ b/em-format/e-mail-part-headers.h
@@ -58,6 +58,13 @@ struct _EMailPartHeadersClass {
EMailPartClass parent_class;
};
+typedef enum {
+ E_MAIL_PART_HEADERS_PRINT_MODEL_COLUMN_INCLUDE,
+ E_MAIL_PART_HEADERS_PRINT_MODEL_COLUMN_HEADER_NAME,
+ E_MAIL_PART_HEADERS_PRINT_MODEL_COLUMN_HEADER_VALUE,
+ E_MAIL_PART_HEADERS_PRINT_MODEL_NUM_COLUMNS
+} EMailPartHeadersPrintModelColumns;
+
GType e_mail_part_headers_get_type (void) G_GNUC_CONST;
EMailPart * e_mail_part_headers_new (CamelMimePart *mime_part,
const gchar *id);
@@ -66,6 +73,10 @@ gchar ** e_mail_part_headers_dup_default_headers
void e_mail_part_headers_set_default_headers
(EMailPartHeaders *part,
const gchar * const *default_headers);
+gboolean e_mail_part_headers_is_default (EMailPartHeaders *part,
+ const gchar *header_name);
+GtkTreeModel * e_mail_part_headers_ref_print_model
+ (EMailPartHeaders *part);
G_END_DECLS