X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-account-mgr.h;h=f7b21efa23a93d0d6e10ed72707faaff50d0843b;hp=e2e4a6d5029ceaa71b84e774c8111b5cc09e725b;hb=31481bc94a3a8a9741c4b3224c0cbd388dc0e362;hpb=7929406e046ed92142ff337bd9161e6a16e1d04e diff --git a/src/modest-account-mgr.h b/src/modest-account-mgr.h index e2e4a6d..f7b21ef 100644 --- a/src/modest-account-mgr.h +++ b/src/modest-account-mgr.h @@ -33,8 +33,7 @@ #include #include -#include -#include +#include #include G_BEGIN_DECLS @@ -164,9 +163,9 @@ gboolean modest_account_mgr_add_server_account (ModestAccountMgr *self, const guint portnumber, const gchar *username, const gchar *password, - ModestTransportStoreProtocol proto, - ModestConnectionProtocol security, - ModestAuthProtocol auth); + ModestProtocolType proto, + ModestProtocolType security, + ModestProtocolType auth); /** @@ -182,7 +181,7 @@ gboolean modest_account_mgr_add_server_account (ModestAccountMgr *self, */ gboolean modest_account_mgr_add_server_account_uri (ModestAccountMgr *self, const gchar *name, - ModestTransportStoreProtocol proto, + ModestProtocolType proto, const gchar* uri); /** @@ -253,6 +252,18 @@ gboolean modest_account_mgr_account_with_display_name_exists (ModestAccountMgr * const gchar *display_name); /** + * modest_account_mgr_check_already_configured_account: + * @self: a #ModestAccountMgr + * @settings: a #ModestAccountSettings *settings + * + * Checks if there's already an active store account with the same settings + * + * Returns: %TRUE if account setup exists + */ +gboolean modest_account_mgr_check_already_configured_account (ModestAccountMgr * self, + ModestAccountSettings *settings); + +/** * modest_account_mgr_unset: * @self: a ModestAccountMgr instance * @name: the name of the account