X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-ui-actions.h;h=89679f595a48c151da3737077af939de9de482b5;hp=1d6d7d7c49966088ef6ed7301ef40052fbaa3c88;hb=6ae65afc6c85e5221c0ab94b5d4d07828e7da1ff;hpb=8007ef7aa2b58f038b99691f402d32fa6c01f8f5 diff --git a/src/modest-ui-actions.h b/src/modest-ui-actions.h index 1d6d7d7..89679f5 100644 --- a/src/modest-ui-actions.h +++ b/src/modest-ui-actions.h @@ -94,7 +94,7 @@ void modest_ui_actions_on_settings (GtkAction *action, ModestWindow *wi * * Shows the help dialog **/ -void modest_ui_actions_on_help (GtkAction *action, ModestWindow *win); +void modest_ui_actions_on_help (GtkAction *action, GtkWindow *win); /** * modest_ui_actions_toggle_folders_view: @@ -444,18 +444,6 @@ gboolean modest_ui_actions_msg_retrieval_check (ModestMailOperati void modest_ui_actions_get_msgs_full_error_handler (ModestMailOperation *mail_op, gpointer user_data); -/** A convenience method, because deleting a message is - * otherwise complicated, and it's best to change it in one place - * when we change it. - **/ -void modest_do_message_delete (TnyHeader *header, ModestWindow *win); - -/** A convenience method, because deleting a message is - * otherwise complicated, and it's best to change it in one place - * when we change it. - **/ -void modest_do_messages_delete (TnyList *headers, ModestWindow *win); - /* Show the account creation wizard dialog. * returns: TRUE if an account was created. FALSE if the user cancelled. */ @@ -488,21 +476,25 @@ void modest_ui_actions_on_send_queue_status_changed (ModestTnySendQueue *send_qu gpointer user_data); /** - * Create a new TnyMsg to be used in a compose window - * @param account_name Name of the account that will be used to send this message + * Opens a new message editor for composing + * @param win Modest main window (can be NULL) * @param to_str "To:" header, or NULL * @param cc_str "Cc:" header, or NULL * @param bcc_str "Bcc:" header, or NULL * @param subject_str Subject of the message, or NULL * @param body_str Body of the message (without signature), or NULL - * @return A new TnyMsg (or NULL if an error happened) + * @param attachments List of file URIs to attach */ -TnyMsg *modest_ui_actions_create_msg(const gchar *account_name, - const gchar *to_str, - const gchar *cc_str, - const gchar *bcc_str, - const gchar *subject_str, - const gchar *body_str); +void modest_ui_actions_compose_msg (ModestWindow *win, + const gchar *to_str, + const gchar *cc_str, + const gchar *bcc_str, + const gchar *subject_str, + const gchar *body_str, + GSList *attachments); + +void modest_ui_actions_on_account_connection_error (GtkWindow *parent_window, + TnyAccount *account); G_END_DECLS #endif /* __MODEST_UI_ACTIONS_H__ */