Work to complete implementation of purge attachments operation
[modest] / src / widgets / modest-msg-view-window.h
index 5d9ee6c..65b97cd 100644 (file)
@@ -209,13 +209,13 @@ void            modest_msg_view_window_save_attachments (ModestMsgViewWindow *wi
 /**
  * modest_msg_view_window_remove_attachments:
  * @window: a #ModestMsgViewWindow
- * @mime_parts: a #GList of #TnyMimePart
+ * @get_all: a #gboolean. If %TRUE, purges all attachmnents, if %FALSE,
+ * purges only selected ones.
  *
- * Removes the attachments in @mime_parts, or currently selected attachments
- * if @mime_parts is %NULL, from local storage.
+ * Removes selected attachments.
  */
 void            modest_msg_view_window_remove_attachments (ModestMsgViewWindow *window,
-                                                          GList *mime_parts);
+                                                          gboolean get_all);
 
 
 /**
@@ -262,6 +262,17 @@ gboolean modest_msg_view_window_has_headers_model (ModestMsgViewWindow *window);
 TnyFolderType
 modest_msg_view_window_get_folder_type (ModestMsgViewWindow *window);
 
+/**
+ * modest_msg_view_window_transfer_mode_enabled:
+ * @window: a #ModestMsgViewWindow
+ *
+ * Determines if some transfer operation is in progress.
+ *
+ * Returns: TRUE if transfer mode is enabled, FASE otherwise.
+*/
+gboolean 
+modest_msg_view_window_transfer_mode_enabled (ModestMsgViewWindow *self);
+
 G_END_DECLS
 
 #endif /* __MODEST_MSG_VIEW_WINDOW_H__ */