X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fwidgets%2Fmodest-msg-edit-window.h;h=b1fb3a066fa28fdaadd2cad9d35fabc8e2ced635;hb=100393d4afa2ba078ea7da121f4121a253206b59;hp=597cfd72f895f15ccd85778c48c50e60d67ee1ef;hpb=556398d85f1803ab8d4871a107bc4b8938c444ae;p=modest diff --git a/src/widgets/modest-msg-edit-window.h b/src/widgets/modest-msg-edit-window.h index 597cfd7..b1fb3a0 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 @@ -261,6 +294,14 @@ void modest_msg_edit_window_select_font (ModestMsgEditWindow * void modest_msg_edit_window_undo (ModestMsgEditWindow *window); /** + * modest_msg_edit_window_redo: + * @window: a #ModestMsgEditWindow + * + * Revert last undo + */ +void modest_msg_edit_window_redo (ModestMsgEditWindow *window); + +/** * modest_msg_edit_window_select_contacts: * @window: a #ModestMsgEditWindow * @@ -280,7 +321,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__ */ -