#include <tny-folder.h>
#ifdef MODEST_TOOLKIT_HILDON2
#include <modest-hildon2-window.h>
+#else
+#include <modest-shell-window.h>
#endif
#include <widgets/modest-window.h>
#include <widgets/modest-header-view.h>
-#include <gtk/gtktreemodel.h>
-#include <gtk/gtkenums.h>
+#include <gtk/gtk.h>
G_BEGIN_DECLS
#ifdef MODEST_TOOLKIT_HILDON2
ModestHildon2Window parent;
#else
- ModestWindow parent;
+ ModestShellWindow parent;
#endif
} ModestMsgViewWindow;
#ifdef MODEST_TOOLKIT_HILDON2
ModestHildon2WindowClass parent_class;
#else
- ModestWindowClass parent_class;
+ ModestShellWindowClass parent_class;
#endif
void (*msg_changed) (ModestMsgViewWindow *self,
* Returns: a new #ModestMsgViewWindow, or NULL in case of error
*/
ModestWindow* modest_msg_view_window_new_for_attachment (TnyMsg *msg,
+ TnyMsg *top_msg,
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,
+ TnyMsg *top_msg,
+ 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
/**
+ * 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
TnyMsg* modest_msg_view_window_get_message (ModestMsgViewWindow *window);
/**
+ * modest_msg_view_window_get_top_message:
+ * @window: an #ModestMsgViewWindow instance
+ *
+ * get a new reference to the parent message of the tree of views. The caller
+ * must free this new reference
+ *
+ * Returns: a new #TnyMsg instance, or NULL in case of error
+ */
+TnyMsg* modest_msg_view_window_get_top_message (ModestMsgViewWindow *window);
+
+/**
* modest_msg_view_window_get_message_uid:
* @msg: an #ModestMsgViewWindow instance
*