X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-msg-view-window.h;h=9e414211aa2ef75e391390cdd888d66fd81c533d;hb=926d315a666069b3c52091d825252400824fb973;hp=ba812b30779274f2f294a78412188d117a049fa8;hpb=57cedf59b21a6e53f87a7ad79b9d5c25b62f5db1;p=modest diff --git a/src/widgets/modest-msg-view-window.h b/src/widgets/modest-msg-view-window.h index ba812b3..9e41421 100644 --- a/src/widgets/modest-msg-view-window.h +++ b/src/widgets/modest-msg-view-window.h @@ -34,11 +34,12 @@ #include #ifdef MODEST_TOOLKIT_HILDON2 #include +#else +#include #endif #include #include -#include -#include +#include G_BEGIN_DECLS @@ -55,7 +56,7 @@ typedef struct { #ifdef MODEST_TOOLKIT_HILDON2 ModestHildon2Window parent; #else - ModestWindow parent; + ModestShellWindow parent; #endif } ModestMsgViewWindow; @@ -63,7 +64,7 @@ typedef struct { #ifdef MODEST_TOOLKIT_HILDON2 ModestHildon2WindowClass parent_class; #else - ModestWindowClass parent_class; + ModestShellWindowClass parent_class; #endif void (*msg_changed) (ModestMsgViewWindow *self, @@ -106,6 +107,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 +180,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