X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-account-mgr.h;h=5c36a63e558b3bc306fc947138d523b088dbc0b8;hb=8b586075e38997631baefcf3ff6dab8655efb526;hp=e6cba5b979687fca439fb59da2e40bdc3e5eddfc;hpb=203c13a878a174540019a9d558ef867b797805e1;p=modest diff --git a/src/modest-account-mgr.h b/src/modest-account-mgr.h index e6cba5b..5c36a63 100644 --- a/src/modest-account-mgr.h +++ b/src/modest-account-mgr.h @@ -79,7 +79,7 @@ GType modest_account_mgr_get_type (void) G_GNUC_CONST; * * Returns: a new ModestAccountMgr, or NULL in case of error */ -GObject* modest_account_mgr_new (ModestConf *modest_conf); +ModestAccountMgr* modest_account_mgr_new (ModestConf *modest_conf); @@ -193,39 +193,22 @@ gboolean modest_account_mgr_account_exists (ModestAccountMgr *self, /** - * modest_account_mgr_enable_account: + * modest_account_mgr_account_set_enabled * @self: a ModestAccountMgr instance - * @name: the account name to disable + * @name: the account name * @server_account: if TRUE, this is a server account + * @enabled: if TRUE, the account will be enabled, if FALSE, it will be disabled * - * enable an account that has been disabled with 'modest_account_mgr_disable_account' + * enable/disabled an account * * Returns: TRUE if it worked, FALSE otherwise */ -gboolean modest_account_mgr_enable_account (ModestAccountMgr *self, const gchar* name, - gboolean is_server_account); - +gboolean modest_account_mgr_set_account_enabled (ModestAccountMgr *self, const gchar* name, + gboolean is_server_account, gboolean enabled); /** - * modest_account_mgr_disable_account: - * @self: a ModestAccountMgr instance - * @name: the account name to disable - * @server_account: if TRUE, this is a server account - * - * disable an account. this will also stop change notification until - * modest_account_mgr_enable_account is called. However, in case of removal, the - * appropriate signal will still be emitted. - * - * Returns: TRUE if it worked, FALSE otherwise - */ -gboolean modest_account_mgr_disable_account (ModestAccountMgr *self, const gchar* name, - gboolean is_server_account); - - - -/** - * modest_account_mgr_account_is_enabled: + * modest_account_mgr_account_get_enabled: * @self: a ModestAccountMgr instance * @name: the account name to check * @server_account: if TRUE, this is a server account @@ -234,10 +217,8 @@ gboolean modest_account_mgr_disable_account (ModestAccountMgr *self, const gchar * * Returns: TRUE if it is enabled, FALSE otherwise */ -gboolean modest_account_mgr_account_is_enabled (ModestAccountMgr *self, const gchar* name, - gboolean is_server_account); - - +gboolean modest_account_mgr_account_get_enabled (ModestAccountMgr *self, const gchar* name, + gboolean is_server_account); /**