Fill better the name fields in created contacts (fixes NB#133593)
[modest] / src / modest-mail-operation.h
index b271c92..bd3e381 100644 (file)
@@ -230,6 +230,20 @@ typedef void (*CreateFolderUserCallback) (ModestMailOperation *mail_op,
                                          TnyFolder *new_folder, 
                                          gpointer user_data);
 
+/**
+ * SyncFolderCallback:
+ *
+ * @self: a #ModestMailOperation
+ * @folder: the #TnyFolder to sync
+ * @user_data: generic data passed to user defined function.
+ *
+ * This is the callback of the sync_folder operation.
+ */
+typedef void (*SyncFolderCallback) (ModestMailOperation *self,
+                                   TnyFolder *folder,
+                                   gpointer user_data);
+
+
 /* This struct represents the internal state of a mail operation in a
    given time */
 typedef struct {
@@ -456,7 +470,6 @@ void          modest_mail_operation_update_account (ModestMailOperation *self,
                                                    const gchar *account_name,
                                                    gboolean poke_all,
                                                    gboolean interactive,
-                                                   RetrieveAllCallback retrieve_all_cb,
                                                    UpdateAccountCallback callback,
                                                    gpointer user_data);
 
@@ -680,7 +693,10 @@ void          modest_mail_operation_queue_wakeup       (ModestMailOperation *sel
  * running while we do that sync operation.
  */
 void          modest_mail_operation_sync_folder     (ModestMailOperation *self,
-                                                    TnyFolder *folder, gboolean expunge);
+                                                    TnyFolder *folder,
+                                                    gboolean expunge,
+                                                    SyncFolderCallback callback,
+                                                    gpointer user_data);
 
 /**
  * modest_mail_operation_shutdown: