X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-msg-view.h;h=80c0902a4286eda13eee49d8a2d0ba3b03d80962;hb=d132c26b55814e25fc75f26e0d4a72d3bedcdd6e;hp=8432a4e7a3a3aed7b728877ca0326eda823ebb97;hpb=1e269a39bd6e1c33e72e98b72f59f810d8f64e8a;p=modest diff --git a/src/widgets/modest-msg-view.h b/src/widgets/modest-msg-view.h index 8432a4e..80c0902 100644 --- a/src/widgets/modest-msg-view.h +++ b/src/widgets/modest-msg-view.h @@ -35,6 +35,7 @@ #include #include #include +#include G_BEGIN_DECLS @@ -56,6 +57,23 @@ struct _ModestMsgView { struct _ModestMsgViewClass { GtkContainerClass parent_class; + /* TnyMimePartView interface */ + TnyMimePart* (*get_part_func) (TnyMimePartView *self); + void (*set_part_func) (TnyMimePartView *self, TnyMimePart *part); + /* TnyMsgView interface */ + TnyMsg* (*get_msg_func) (TnyMsgView *self); + void (*set_msg_func) (TnyMsgView *self, TnyMsg *msg); + void (*set_unavailable_func) (TnyMsgView *self); + void (*clear_func) (TnyMsgView *self); + TnyMimePartView* (*create_mime_part_view_for_func) (TnyMsgView *self, TnyMimePart *part); + TnyMsgView* (*create_new_inline_viewer_func) (TnyMsgView *self); + /* ModestZoomable interface */ + gdouble (*get_zoom_func) (ModestZoomable *self); + void (*set_zoom_func) (ModestZoomable *self, gdouble value); + gboolean (*zoom_minus_func) (ModestZoomable *self); + gboolean (*zoom_plus_func) (ModestZoomable *self); + + /* signals */ void (*set_scroll_adjustments) (ModestMsgView *msg_view, GtkAdjustment *hadj, GtkAdjustment *vadj); @@ -97,27 +115,17 @@ GType modest_msg_view_get_type (void) G_GNUC_CONST; GtkWidget* modest_msg_view_new (TnyMsg *tny_msg); -/** - * modest_msg_view_set_message - * @self: a ModestMsgView instance - * @tny_msg: a TnyMsg instance, or NULL - * - * display the @tny_msg e-mail message. If @tny_msg is NULL, - * then a blank page will be displayed - * */ -void modest_msg_view_set_message (ModestMsgView *self, TnyMsg *tny_msg); - - /** - * modest_msg_view_set_message + * modest_msg_view_get_message_is_empty * @self: a ModestMsgView instance * - * get the @tny_msg e-mail message. + * Returns whether the message contains any visbible (searchable) text. + * For instance, this will return FALSE if the message contains only markup. * - * Returns: the message or NULL + * Returns: TRUE if the message contains visible text. */ -TnyMsg* modest_msg_view_get_message (ModestMsgView *self); +gboolean modest_msg_view_get_message_is_empty (ModestMsgView *self); GtkAdjustment *modest_msg_view_get_vadjustment (ModestMsgView *self); GtkAdjustment *modest_msg_view_get_hadjustment (ModestMsgView *self); @@ -128,10 +136,12 @@ GtkShadowType modest_msg_view_get_shadow_type (ModestMsgView *self); gboolean modest_msg_view_search (ModestMsgView *self, const gchar *search); gboolean modest_msg_view_search_next (ModestMsgView *self); -void modest_msg_view_set_zoom (ModestMsgView *self, gdouble zoom); -gdouble modest_msg_view_get_zoom (ModestMsgView *self); TnyHeaderFlags modest_msg_view_get_priority (ModestMsgView *self); void modest_msg_view_set_priority (ModestMsgView *self, TnyHeaderFlags flags); +GList *modest_msg_view_get_selected_attachments (ModestMsgView *self); +GList *modest_msg_view_get_attachments (ModestMsgView *self); +void modest_msg_view_grab_focus (ModestMsgView *self); +void modest_msg_view_remove_attachment (ModestMsgView *view, TnyMimePart *attachment); G_END_DECLS