* Added operation-started and operation-finished to the mail operations
[modest] / src / modest-mail-operation.h
index eac5235..aa293ae 100644 (file)
@@ -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:
@@ -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