X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-tny-account.h;h=1c1f12cb5ea84f0795e993e847c707bb500f9c94;hp=fdc73403cf50acc2983bf2b8908bb9307de7266a;hb=3331d2194ddf0d11f8386741628286eb10ffcb4a;hpb=391d0ad1a66b7692c8f351f4bbb7fc4d7746e422 diff --git a/src/modest-tny-account.h b/src/modest-tny-account.h index fdc7340..1c1f12c 100644 --- a/src/modest-tny-account.h +++ b/src/modest-tny-account.h @@ -102,8 +102,24 @@ TnyAccount* modest_tny_account_new_for_per_account_local_outbox_folder ( */ TnyAccount* modest_tny_account_new_from_server_account_name (ModestAccountMgr *account_mgr, - TnySessionCamel *session, const gchar* server_account_name); - + TnySessionCamel *session, + const gchar* server_account_name); + +/** + * modest_tny_account_new_from_server_account_name: + * @tny_account: a valid tny account + * @account_mgr: a valid account mgr instance + * @server_account_name: the name of a server account in the configuration system. + * + * update the given tny account; note that you cannot change the protocol type + * + * Returns: a new TnyAccount or NULL in case of error. + */ +gboolean modest_tny_account_update_from_server_account_name (TnyAccount *tny_account, + ModestAccountMgr *account_mgr, + const gchar *server_account_name); + + /** * modest_tny_account_get_special_folder: * @self: a TnyAccount