Copy only "X-as" headers from original emails, not all of them
[modest] / src / modest-plugin-ui-actions.h
index e5b6ac3..0398cde 100644 (file)
 
 G_BEGIN_DECLS
 
-gboolean modest_plugin_ui_actions_on_delete_account (GtkWindow *parent_window,
-                                                    const gchar *account_name,
-                                                    const gchar *account_display_name);
+/**
+ * modest_ui_actions_on_delete_account:
+ * @parent_window: the parent #GtkWindow of the dialog that will be shown
+ * @account_name: the modest name for the account to be deleted
+ * @account_display_name: the display name that will be used in the dialog
+ *
+ * This function will perform the actions required to delete an
+ * account. This function assumes that the account to be deleted is
+ * already disconnected, so the caller must verify that this is the
+ * case. Otherwise weird behaviours could happen
+ *
+ * Returns: TRUE if the account was successfully deleted, FALSE otherwise
+ **/
+gboolean modest_ui_actions_on_delete_account (GtkWindow *parent_window,
+                                             const gchar *account_name,
+                                             const gchar *account_display_name);
+
+/**
+ * modest_ui_actions_on_reload_message:
+ * @msg_id: a message id
+ *
+ * Reload the message if it's currently being shown in a view.
+ */
+void
+modest_ui_actions_on_reload_message (const gchar *msg_id);
+
+/**
+ * modest_ui_actions_reply_calendar:
+ * @win: parent #ModestWindow
+ * @header_pairs: #TnyList of #TnyPair of header pairs
+ *
+ * this method opens the mail composer with a reply of a message with calendar
+ * allowing to add @header_pairs with the result of the calendar request.
+ *
+ * @win should be a #ModestMsgViewWindow. We don't put the exact type to avoid
+ * exporting to plugins #ModestMsgViewWindow API
+ */
+void
+modest_ui_actions_reply_calendar (ModestWindow *win, TnyList *header_pairs);
+
+/**
+ * modest_ui_actions_on_send_msg:
+ * @window: parent window requesting to send the message
+ * @msg: a #TnyMsg
+ *
+ * This method will send @msg without showing the message editor.
+ *
+ * Returns: %TRUE if succesful, %FALSE otherwise
+ */
+gboolean
+modest_ui_actions_on_send_msg (ModestWindow *window,
+                              TnyMsg *msg);
+
+
 G_END_DECLS
 #endif /* __MODEST_PLUGIN_UI_ACTIONS_H__ */