X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-msg-view-window.h;h=bad28f4e3ec21591c7219eba4e4f1a654b2a9051;hp=a141383144d692854e1f644802419dd0dadb7a86;hb=8f4797391e5962158a0a085646f1d24da887ee3d;hpb=1f49ac9df5635e0427ef1c2e1b2cc0c30c7c0cd2 diff --git a/src/widgets/modest-msg-view-window.h b/src/widgets/modest-msg-view-window.h index a141383..bad28f4 100644 --- a/src/widgets/modest-msg-view-window.h +++ b/src/widgets/modest-msg-view-window.h @@ -106,6 +106,35 @@ ModestWindow* modest_msg_view_window_new_for_attachment (TnyMsg *msg, 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 @@ -150,6 +179,14 @@ ModestWindow* modest_msg_view_window_new_from_header_view (ModestHeaderView *h /** + * modest_msg_view_window_new_from_uid: + */ +ModestWindow * +modest_msg_view_window_new_from_uid (const gchar *modest_account_name, + const gchar *mailbox, + const gchar *msg_uid); + +/** * modest_msg_view_window_new_for_search_result: * @msg: an #TnyMsg instance * @modest_account_name: the account name @@ -342,6 +379,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__ */