X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-mail-operation.h;h=9052003ae61eac1763ee5e3b96b318023fabdec0;hp=8b78c2df354e89a065c2b02c646b3f22b3a4c9a7;hb=e1c8c19034a3cb13d6c467442a1dafa0b12a4c60;hpb=47ec97dc5b74de88b9a5f29c6d167244db03242a diff --git a/src/modest-mail-operation.h b/src/modest-mail-operation.h index 8b78c2d..9052003 100644 --- a/src/modest-mail-operation.h +++ b/src/modest-mail-operation.h @@ -171,7 +171,6 @@ typedef void (*UpdateAccountCallback) (ModestMailOperation *self, TnyList *new_headers, gpointer user_data); - /** * SaveToDraftsCallback: * @@ -187,6 +186,10 @@ typedef void (*SaveToDraftstCallback) (ModestMailOperation *self, gpointer user_data); +typedef gboolean (*RetrieveAllCallback) (GObject *source, + guint num_msgs, + guint limit); + /* This struct represents the internal state of a mail operation in a given time */ typedef struct { @@ -382,6 +385,7 @@ void modest_mail_operation_save_to_drafts (ModestMailOperation *self, * modest_mail_operation_update_account: * @self: a #ModestMailOperation * @account_name: the id of a Modest account + * @poke_all: if TRUE it will also do a poke_status over all folders of the account * * Asynchronously refreshes the root folders of the given store * account. The caller should add the #ModestMailOperation to a @@ -402,10 +406,11 @@ void modest_mail_operation_save_to_drafts (ModestMailOperation *self, * Note that the account_name *MUST* be a modest account name, not a * tinymail store account name * - * Returns: TRUE if the mail operation could be started, or FALSE otherwise **/ -gboolean modest_mail_operation_update_account (ModestMailOperation *self, +void modest_mail_operation_update_account (ModestMailOperation *self, const gchar *account_name, + gboolean poke_all, + RetrieveAllCallback retrieve_all_cb, UpdateAccountCallback callback, gpointer user_data);