Added support for external addressbook Nokia service in hildon (com.nokia.asdbus).
[modest] / src / widgets / modest-msg-view-window.h
index a3d9cdd..0a47d32 100644 (file)
@@ -101,6 +101,7 @@ 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, 
+                                                                  TnyMsg *top_msg,
                                                                   const gchar *modest_account_name,
                                                                   const gchar *mailbox,
                                                                   const gchar *msg_uid);
@@ -120,11 +121,22 @@ ModestWindow*   modest_msg_view_window_new_for_attachment         (TnyMsg *msg,
  */
 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 
@@ -169,6 +181,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 
@@ -210,6 +230,17 @@ modest_msg_view_window_get_header (ModestMsgViewWindow *self);
 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
  *