X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-msg-view-window.h;h=5d6e6e2b92d7726fe44a3e6a1e4b15d3b9af6b14;hb=54db6cdb12bd0ed91c663541de51838704c4bc1b;hp=b0c8a439d40550b50959ed32b0dd87b421ffc807;hpb=3534e326a11dd5616bd58391fce9071222b6b9fb;p=modest diff --git a/src/widgets/modest-msg-view-window.h b/src/widgets/modest-msg-view-window.h index b0c8a43..5d6e6e2 100644 --- a/src/widgets/modest-msg-view-window.h +++ b/src/widgets/modest-msg-view-window.h @@ -91,6 +91,7 @@ GType modest_msg_view_window_get_type (void) G_GNUC_CONST; * modest_msg_view_window_new_for_attachment: * @msg: an #TnyMsg instance * @modest_account_name: the account name + * @mailbox: the mailbox (if any) * * instantiates a new #ModestMsgViewWindow widget to view a message that is an * attachment in another message. @@ -100,13 +101,44 @@ GType modest_msg_view_window_get_type (void) G_GNUC_CONST; * Returns: a new #ModestMsgViewWindow, or NULL in case of error */ ModestWindow* modest_msg_view_window_new_for_attachment (TnyMsg *msg, - const gchar *modest_account_name, - const gchar *msg_uid); + const gchar *modest_account_name, + const gchar *mailbox, + const gchar *msg_uid); + +/** + * modest_msg_view_window_new_with_other_body: + * @msg: an #TnyMsg instance + * @modest_account_name: the account name + * @mailbox: the mailbox (if any) + * + * instantiates a new #ModestMsgViewWindow widget to view a message that is a different body + * in another message. + * The account name is used to + * set the proper account when choosing reply/forward from the msg view window + * + * Returns: a new #ModestMsgViewWindow, or NULL in case of error + */ +ModestWindow* modest_msg_view_window_new_with_other_body (TnyMsg *msg, + TnyMimePart *other_body, + const gchar *modest_account_name, + const gchar *mailbox, + const gchar *msg_uid); + +/** + * modest_msg_view_window_is_other_body: + * @self: a #ModestMsgViewWindow + * + * tells if the view window is showing other body + * + * Returns: %TRUE if showing "not first body" + */ +gboolean modest_msg_view_window_is_other_body (ModestMsgViewWindow *self); /** * modest_msg_view_window_new_with_header_model: * @msg: an #TnyMsg instance * @modest_account_name: the account name + * @mailbox: the mailbox (if any) * @model: a #GtkTreeModel, with the format used by #ModestHeaderView * @row_reference: a #GtkTreeRowReference, pointing to the position of @msg in @model. * @@ -119,6 +151,7 @@ ModestWindow* modest_msg_view_window_new_for_attachment (TnyMsg *msg, */ ModestWindow* modest_msg_view_window_new_with_header_model (TnyMsg *msg, const gchar *modest_account_name, + const gchar *mailbox, const gchar *msg_uid, GtkTreeModel *model, GtkTreeRowReference *row_reference); @@ -127,6 +160,7 @@ ModestWindow* modest_msg_view_window_new_with_header_model (TnyMsg *msg, * modest_msg_view_window_new_from_header_view: * @header_view: an #ModestHeaderView instance * @modest_account_name: the account name + * @mailbox: the mailbox (if any) * @msg_uid: the initial uid reserved by this window * @row_reference: a #GtkTreeRowReference, pointing to the selected position @model. * @@ -139,6 +173,7 @@ ModestWindow* modest_msg_view_window_new_with_header_model (TnyMsg *msg, */ ModestWindow* modest_msg_view_window_new_from_header_view (ModestHeaderView *header_view, const gchar *modest_account_name, + const gchar *mailbox, const gchar *msg_uid, GtkTreeRowReference *row_reference); @@ -158,6 +193,7 @@ ModestWindow* modest_msg_view_window_new_from_header_view (ModestHeaderView *h ModestWindow * modest_msg_view_window_new_for_search_result (TnyMsg *msg, const gchar *modest_account_name, + const gchar *mailbox, const gchar *msg_uid); /** @@ -335,6 +371,34 @@ modest_msg_view_window_transfer_mode_enabled (ModestMsgViewWindow *self); void modest_msg_view_window_add_to_contacts (ModestMsgViewWindow *self); +/** + * modest_msg_view_window_get_msg_view: + * @self: a #ModestMsgViewWindow + * + * Tells that external images should be fetched in this window. + */ +void +modest_msg_view_window_fetch_images (ModestMsgViewWindow *self); + +/** + * modest_msg_view_window_has_blocked_external_images: + * @self: a #ModestMsgViewWindow + * + * checks if the msg currently shown has blocked external images. + * + * Returns: %TRUE if external images are blocked, %FALSE otherwise + */ +gboolean modest_msg_view_window_has_blocked_external_images (ModestMsgViewWindow *self); + +/** + * modest_msg_view_window_reload: + * @self: a #ModestMsgViewWindow + * + * Reloads currently loaded message. This is intended to show the message in case it + * has some update on the previously visible result. + */ +void modest_msg_view_window_reload (ModestMsgViewWindow *self); + G_END_DECLS #endif /* __MODEST_MSG_VIEW_WINDOW_H__ */