* Added an attribute sent to the msg edit window that specifies that the mail has...
[modest] / src / widgets / modest-msg-edit-window.h
index 2fad497..ea39433 100644 (file)
@@ -70,10 +70,15 @@ typedef enum {
        MODEST_MSG_EDIT_FORMAT_HTML
 } ModestMsgEditFormat;
 
+/** Get these with modest_msg_edit_window_get_msg_data() 
+ * and free them with modest_msg_edit_window_free_msg_data().
+ */
 typedef struct  {
        gchar *from, *to, *cc, *bcc, *subject, *plain_body, *html_body;
        GList *attachments;
        TnyHeaderFlags priority_flags;
+       TnyMsg *draft_msg;
+       gchar *account_name;
 } MsgData;
 
 typedef struct {
@@ -198,6 +203,34 @@ void                    modest_msg_edit_window_select_background_color
 void                    modest_msg_edit_window_insert_image          (ModestMsgEditWindow *window);
 
 /**
+ * modest_msg_edit_window_attach_file:
+ * @self: a #ModestMsgEditWindow
+ *
+ * show a file selection dialog to attach a file
+ */
+void                    modest_msg_edit_window_attach_file           (ModestMsgEditWindow *window);
+
+/**
+ * modest_msg_edit_window_attach_file_noninteractive:
+ * @self: a #ModestMsgEditWindow
+ * @file_uri: The URI of a file to attach to the email message.
+ *
+ * attach a file to a MsgEditWindow non interactively, 
+ * without file dialog. This is needed by dbus callbacks.
+ */
+void                    modest_msg_edit_window_attach_file_noninteractive           (ModestMsgEditWindow *window, const gchar *file_uri);
+
+/**
+ * modest_msg_edit_window_remove_attachments:
+ * @self: a #ModestMsgEditWindow
+ * @att_list: a #GList of #TnyMimePart
+ *
+ * remove attachments in @att_list, with a confirmation dialog
+ */
+void                    modest_msg_edit_window_remove_attachments    (ModestMsgEditWindow *window, 
+                                                                     GList *att_list);
+
+/**
  * modest_msg_edit_window_show_cc:
  * @window: a #ModestMsgEditWindow
  * @show: a #gboolean
@@ -269,7 +302,42 @@ void            modest_msg_edit_window_undo               (ModestMsgEditWindow *
  */
 void            modest_msg_edit_window_select_contacts    (ModestMsgEditWindow *window);
 
+/**
+ * modest_msg_edit_window_check_names:
+ * @window: a #ModestMsgEditWindow
+ *
+ * Validates all the recipients, and shows (if required) dialogs for adding contacts
+ * or fixing problems in specific fields.
+ *
+ * Returns: %TRUE if all fields were validated, %FALSE otherwise
+ */
+gboolean        modest_msg_edit_window_check_names    (ModestMsgEditWindow *window);
+
+/**
+ * modest_msg_edit_window_toggle_find_toolbar:
+ * @window: a #ModestMsgEditWindow
+ * @show: a #gboolean
+ *
+ * Shows/Hides the find toolbar
+ */
+void            modest_msg_edit_window_toggle_find_toolbar (ModestMsgEditWindow *window,
+                                                           gboolean show);
+
+
+/**
+ * modest_msg_edit_window_is_modified:
+ * @window: a #ModestMsgEditWindow
+ *
+ * Examines whether or not the message has been modified
+ *
+ * Returns: %TRUE if any field has been modified, %FALSE otherwise
+ */
+gboolean        modest_msg_edit_window_is_modified         (ModestMsgEditWindow *window);
+
+gboolean        modest_msg_edit_window_get_sent            (ModestMsgEditWindow *window);
+void            modest_msg_edit_window_set_sent            (ModestMsgEditWindow *window, 
+                                                           gboolean sent);
+
 G_END_DECLS
 
 #endif /* __MODEST_MSG_EDIT_WINDOW_H__ */
-