* Implemented Autoupdate Global setting
[modest] / src / widgets / modest-msg-view-window.h
index 8a8877a..90b578f 100644 (file)
@@ -102,7 +102,18 @@ ModestWindow*   modest_msg_view_window_new_with_header_model (TnyMsg *msg, const
  * 
  * Returns: a new #TnyMsg instance, or NULL in case of error
  */
-TnyMsg*         modest_msg_view_window_get_message (ModestMsgViewWindow *window);
+TnyMsg*         modest_msg_view_window_get_message     (ModestMsgViewWindow *window);
+
+/**
+ * modest_msg_view_window_get_message_uid:
+ * @msg: an #ModestMsgViewWindow instance
+ * 
+ * gets the unique identifier for the message in this msg view. The
+ * returned value *must* not be freed
+ * 
+ * Returns: the id of the #TnyMsg being shown, or NULL in case of error
+ */
+const gchar*    modest_msg_view_window_get_message_uid (ModestMsgViewWindow *window);
 
 /**
  * modest_msg_view_window_select_next_message:
@@ -126,6 +137,48 @@ gboolean        modest_msg_view_window_select_next_message (ModestMsgViewWindow
  */
 gboolean        modest_msg_view_window_select_previous_message (ModestMsgViewWindow *window);
 
+/**
+ * modest_msg_view_window_toggle_fullscreen:
+ * @window: a #ModestMsgViewWindow
+ *
+ * toggles the current fullscreen status
+ */
+void            modest_msg_view_window_toggle_fullscreen (ModestMsgViewWindow *window);
+
+/**
+ * modest_msg_view_window_view_attachment:
+ * @window: a #ModestMsgViewWindow
+ * @mime_part: a #TnyMimePart
+ *
+ * Opens @mime_part, or the currently selected attachment if @mime_part is %NULL. 
+ * If it's a message, it opens it  for viewing. Otherwise it opens a temporary file 
+ * with the contents of the attachment.
+ */
+void            modest_msg_view_window_view_attachment (ModestMsgViewWindow *window,
+                                                       TnyMimePart *mime_part);
+
+/**
+ * modest_msg_view_window_save_attachments:
+ * @window: a #ModestMsgViewWindow
+ * @mime_parts: a #GList of #TnyMimePart
+ *
+ * Save the #TnyMimePart attachments in @mime_parts, or currently selected attachments
+ * if @mime_parts is %NULL, offering a dialog to the user to choose the location.
+ */
+void            modest_msg_view_window_save_attachments (ModestMsgViewWindow *window,
+                                                        GList *mime_parts);
+
+/**
+ * modest_msg_view_window_remove_attachments:
+ * @window: a #ModestMsgViewWindow
+ * @mime_parts: a #GList of #TnyMimePart
+ *
+ * Removes the attachments in @mime_parts, or currently selected attachments
+ * if @mime_parts is %NULL, from local storage.
+ */
+void            modest_msg_view_window_remove_attachments (ModestMsgViewWindow *window,
+                                                          GList *mime_parts);
+
 G_END_DECLS
 
 #endif /* __MODEST_MSG_VIEW_WINDOW_H__ */