X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-msg-edit-window.h;h=a0bb82e1ead4d1473ba1fe0ea53b1f01fdc24a4d;hp=4d91d4a5bc69678869af42852e7900f78db50e69;hb=0553c6bb55e67bd3451b3baeaa1c5d5334f859c5;hpb=f65cf12510835b6adb63cf583872995940d6daa4 diff --git a/src/widgets/modest-msg-edit-window.h b/src/widgets/modest-msg-edit-window.h index 4d91d4a..a0bb82e 100644 --- a/src/widgets/modest-msg-edit-window.h +++ b/src/widgets/modest-msg-edit-window.h @@ -70,9 +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 { @@ -196,7 +202,125 @@ 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 + * + * 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 + * + * 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 + * + * Set the CC field as visible (or not visible) depending on @show + */ +void modest_msg_edit_window_show_cc (ModestMsgEditWindow *window, gboolean show); + +/** + * modest_msg_edit_window_show_bcc: + * @window: a #ModestMsgEditWindow + * @show: a #gboolean + * + * Set the BCC field as visible (or not visible) depending on @show + */ +void modest_msg_edit_window_show_bcc (ModestMsgEditWindow *window, gboolean show); + +/** + * modest_msg_edit_window_toggle_fullscreen: + * @window: a #ModestMsgEditWindow + * + * toggles the current fullscreen status + */ +void modest_msg_edit_window_toggle_fullscreen (ModestMsgEditWindow *window); + +/** + * modest_msg_edit_window_set_priority_flags: + * @window: a #ModestMsgEditWindow + * @priority_flags: a #TnyHeaderFlags with priority information + * + * Updates the icon and priority flag to send. + */ +void modest_msg_edit_window_set_priority_flags (ModestMsgEditWindow *window, + TnyHeaderFlags priority_flags); + +/** + * modest_msg_edit_window_set_file_format: + * @window: a #ModestMsgEditWindow + * @file_format: %MODEST_FILE_FORMAT_PLAIN_TEXT or %MODEST_FILE_FORMAT_FORMATTED_TEXT + * + * Changes the current file format. + */ +void modest_msg_edit_window_set_file_format (ModestMsgEditWindow *window, + gint file_format); + +/** + * modest_msg_edit_window_select_font: + * @window: a #ModestMsgEditWindow + * + * Show the dialog to select the editor font and update the + * used font in the editor. + */ +void modest_msg_edit_window_select_font (ModestMsgEditWindow *window); + +/** + * modest_msg_edit_window_undo: + * @window: a #ModestMsgEditWindow + * + * Undoes the last operation. + */ +void modest_msg_edit_window_undo (ModestMsgEditWindow *window); + +/** + * modest_msg_edit_window_select_contacts: + * @window: a #ModestMsgEditWindow + * + * Shows the dialog to add contacts to the currently focused recipient list, + * or to To: recipient if no recipient list is focused. + */ +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); G_END_DECLS #endif /* __MODEST_MSG_EDIT_WINDOW_H__ */ -