X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-msg-edit-window.h;h=ea39433683f177811915416294f681f6b7e3a6a3;hp=597cfd72f895f15ccd85778c48c50e60d67ee1ef;hb=a8712a6b492bdc754ef169452802773ec89376cd;hpb=556398d85f1803ab8d4871a107bc4b8938c444ae diff --git a/src/widgets/modest-msg-edit-window.h b/src/widgets/modest-msg-edit-window.h index 597cfd7..ea39433 100644 --- a/src/widgets/modest-msg-edit-window.h +++ b/src/widgets/modest-msg-edit-window.h @@ -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 @@ -280,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__ */ -