2007-06-06 Marcus Bauer <marcusb@openismus.com>
[modest] / src / widgets / modest-msg-edit-window.h
index 047442a..e69ec76 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 {
@@ -206,6 +211,15 @@ 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
+ *
+ * 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, gchar *filename);
+
+/**
  * modest_msg_edit_window_remove_attachments:
  * @self: a #ModestMsgEditWindow
  * @att_list: a #GList of #TnyMimePart
@@ -301,4 +315,3 @@ gboolean        modest_msg_edit_window_check_names    (ModestMsgEditWindow *wind
 G_END_DECLS
 
 #endif /* __MODEST_MSG_EDIT_WINDOW_H__ */
-