* Added an attribute sent to the msg edit window that specifies that the mail has...
[modest] / src / widgets / modest-msg-edit-window.h
index a1e1a90..ea39433 100644 (file)
@@ -77,6 +77,8 @@ 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 {
@@ -209,6 +211,16 @@ void                    modest_msg_edit_window_insert_image          (ModestMsgE
 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
@@ -301,7 +313,31 @@ void            modest_msg_edit_window_select_contacts    (ModestMsgEditWindow *
  */
 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__ */
-