X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-mail-operation.h;h=aa293aec514a80b8923d275b8b4a5ba82476a727;hb=fb0039f9e3f59cd18402a0be8733a4ccfb37aeaa;hp=6b6ebcd59952719e6fb0d25b0a8ac873093d8aba;hpb=d56bab09ae68f6708d2dcec6150433c5e905f0c3;p=modest diff --git a/src/modest-mail-operation.h b/src/modest-mail-operation.h index 6b6ebcd..aa293ae 100644 --- a/src/modest-mail-operation.h +++ b/src/modest-mail-operation.h @@ -116,7 +116,7 @@ typedef void (*GetMimePartSizeCallback) (ModestMailOperation *mail_op, gpointer user_data); /** - * XferMsgAsynUserCallback: + * XferAsyncUserCallback: * * @obj: a #GObject generic object which has created current mail operation. * @user_data: generic data passed to user defined function. @@ -125,7 +125,7 @@ typedef void (*GetMimePartSizeCallback) (ModestMailOperation *mail_op, * used as tinymail operation callback. The private function fills private * fields of mail operation and calls user defined callback if it exists. */ -typedef void (*XferMsgsAsynUserCallback) (const GObject *obj, gpointer user_data); +typedef void (*XferAsyncUserCallback) (ModestMailOperation *mail_op, gpointer user_data); /** @@ -181,6 +181,8 @@ struct _ModestMailOperationClass { /* Signals */ void (*progress_changed) (ModestMailOperation *self, ModestMailOperationState *state, gpointer user_data); + void (*operation_started) (ModestMailOperation *self, gpointer user_data); + void (*operation_finished) (ModestMailOperation *self, gpointer user_data); }; /* member functions */ @@ -289,6 +291,7 @@ void modest_mail_operation_send_mail (ModestMailOperation *self, * @html_body: the html version of the body of the new mail. If NULL, the mail will * be sent with the plain body only. * @attachments_list: a #GList of attachments, each attachment must be a #TnyMimePart + * @images_list: a #GList of image attachments, each attachment must be a #TnyMimePart * * Sends a new mail message using the provided * #TnyTransportAccount. This operation is synchronous, so the @@ -306,6 +309,7 @@ void modest_mail_operation_send_new_mail (ModestMailOperation *self, const gchar *plain_body, const gchar *html_body, const GList *attachments_list, + const GList *images_list, TnyHeaderFlags priority_flags); @@ -324,6 +328,7 @@ void modest_mail_operation_send_new_mail (ModestMailOperation *self, * @html_body: the html version of the body of the new mail. If NULL, the mail will * be sent with the plain body only. * @attachments_list: a #GList of attachments, each attachment must be a #TnyMimePart + * @images_list: a #GList of image attachments, each attachment must be a #TnyMimePart * * Save a mail message to drafts using the provided * #TnyTransportAccount. This operation is synchronous, so the @@ -343,6 +348,7 @@ void modest_mail_operation_save_to_drafts (ModestMailOperation *self, const gchar *plain_body, const gchar *html_body, const GList *attachments_list, + const GList *images_list, TnyHeaderFlags priority_flags); /** * modest_mail_operation_update_account: @@ -430,7 +436,7 @@ void modest_mail_operation_rename_folder (ModestMailOperation *self, * @folder: a #TnyFolder * @parent: the new parent of the folder as #TnyFolderStore * @delete_original: wheter or not delete the original folder - * @user_callback: a #XferMsgsAsynUserCallback function to call after tinymail callback execution. + * @user_callback: a #XferAsyncUserCallback function to call after tinymail callback execution. * @user_data: generic user data which will be passed to @user_callback function. * * Sets the given @folder as child of a provided #TnyFolderStore. This @@ -447,7 +453,7 @@ void modest_mail_operation_xfer_folder (ModestMailOperation *self, TnyFolder *folder, TnyFolderStore *parent, gboolean delete_original, - XferMsgsAsynUserCallback user_callback, + XferAsyncUserCallback user_callback, gpointer user_data); @@ -459,7 +465,7 @@ void modest_mail_operation_xfer_folder (ModestMailOperation *self, * @header_list: a #TnyList of #TnyHeader to transfer * @folder: the #TnyFolder where the messages will be transferred * @delete_original: whether or not delete the source messages - * @user_callback: a #XferMsgsAsynUserCallback function to call after tinymail callback execution. + * @user_callback: a #XferAsyncUserCallback function to call after tinymail callback execution. * @user_data: generic user data which will be passed to @user_callback function. * * Asynchronously transfers messages from their current folder to @@ -487,7 +493,7 @@ void modest_mail_operation_xfer_msgs (ModestMailOperation *self, TnyList *header_list, TnyFolder *folder, gboolean delete_original, - XferMsgsAsynUserCallback user_callback, + XferAsyncUserCallback user_callback, gpointer user_data); /** @@ -639,10 +645,7 @@ void modest_mail_operation_refresh_folder (ModestMailOperation *self, RefreshAsyncUserCallback user_callback, gpointer user_data); -guint modest_mail_operation_get_id (ModestMailOperation *self); - -guint modest_mail_operation_set_id (ModestMailOperation *self, - guint id); +TnyAccount *modest_mail_operation_get_account (ModestMailOperation *self); G_END_DECLS