* modest_account_mgr_add_account:
* @self: a ModestAccountMgr instance
* @name: the name of the account to create
- * @store: the store account (ie. POP/IMAP)
- * @transport: the transport account (ie. sendmail/SMTP)
+ * @store_name: the store account (ie. POP/IMAP)
+ * @transport_name: the transport account (ie. sendmail/SMTP)
* @err: a GError ptr, or NULL to ignore.
*
* create a new account. the account with @name should not already exist
* Returns: TRUE if the creation succeeded, FALSE otherwise,
* @err gives details in case of error
*/
-gboolean modest_account_mgr_remove_account (ModestAccountMgr *self, const gchar* name,
+gboolean modest_account_mgr_remove_account (ModestAccountMgr *self,
+ const gchar* name,
GError **err);
-
/**
* modest_account_mgr_add_server_account:
* @self: a ModestAccountMgr instance
/**
* modest_account_mgr_remove_server_account:
* @self: a ModestAccountMgr instance
- * @name: the name for the server account
+ * @name: the name for the server account to remove
* @err: a GError ptr, or NULL to ignore.
*
* remove a server account from the configuration
gboolean modest_account_mgr_remove_server_account (ModestAccountMgr *self,
const gchar *name,
GError **err);
- /**
- * modest_account_mgr_remove_identity:
- * @self: a ModestAccountMgr instance
- * @name: the name for the identity
- * @err: a GError ptr, or NULL to ignore.
- *
- * remove aidentity from the configuration
- * the identity with @name should exist
- *
- * Returns: TRUE if the removal succeeded, FALSE otherwise,
- * @err gives details in case of error
- */
-gboolean modest_account_mgr_remove_identity (ModestAccountMgr *self,
- const gchar *name,
- GError **err);
-
-/**
- * modest_account_mgr_add_identity:
- * @self: a ModestAccountMgr instance
- * @name: the name (id) for the identity
- * @email: the user's email address
- * @replyto: default replyto address
- * @signature: the signature for this identity
- * @use_signature: whether to use this signature instead of the default one
- * @id_via: the transport to send emails for this identity via
- * @use_id_via: whether to use this via insteda of the default one
- *
- * add a user identity to the configuration
- *
- * Returns: TRUE if succeeded, FALSE otherwise,
- */
-
-gboolean
-modest_account_mgr_add_identity (ModestAccountMgr *self,
- const gchar *name,
- const gchar *email,
- const gchar *replyto,
- const gchar *signature,
- const gboolean use_signature,
- const gchar *id_via,
- const gboolean use_id_via);
/**
* modest_account_mgr_account_names:
* @account_name: get only server accounts for @account_name, or NULL for any
* @type: get only server accounts from protocol type @type, or MODEST_PROTO_TYPE_ANY
* @proto: get only server account with protocol @proto, or NULL for any
- * @only_enable: get only enable server account if TRUE
+ * @only_enabled: get only enabled server accounts if TRUE
*
* list all the server account names
*
/**
* modest_account_mgr_account_exists:
* @self: a ModestAccountMgr instance
+ * @name: the account name to check
* @err: a GError ptr, or NULL to ignore.
*
* check whether account @name exists
*
- * Returns: TRUE if the account exists, FALSE otherwise (or in case of error)
+ * Returns: TRUE if the account with name @name exists, FALSE otherwise (or in case of error)
* @err gives details in case of error
*/
gboolean modest_account_mgr_account_exists (ModestAccountMgr *self,
const gchar *name,
GError **err);
+
gboolean modest_account_mgr_server_account_exists (ModestAccountMgr *self,
const gchar *name,
GError **err);
-/* account specific functions */
-
+/* account specific functions */
/**
* modest_account_mgr_get_account_string:
* @key: the key of the value to retrieve
* @err: a GError ptr, or NULL to ignore.
*
- * get a config string from some account
+ * get a config string from an account
*
* Returns: a newly allocated string with the value for the key,
* or NULL in case of error. @err gives details in case of error
gchar* modest_account_mgr_get_server_account_string (ModestAccountMgr *self,
const gchar *name,
const gchar *key, GError **err);
-gchar* modest_account_mgr_get_identity_string (ModestAccountMgr *self,
- const gchar *name,
- const gchar *key, GError **err);
-
/**
* modest_account_mgr_get_account_int:
- * @self: self a ModestAccountMgr instance
+ * @self: a ModestAccountMgr instance
* @name: the name of the account
* @key: the key of the value to retrieve
* @err: a GError ptr, or NULL to ignore.
*
- * get a config int from some account
+ * get a config int from an account
*
* Returns: an integer with the value for the key, or -1 in case of
* error (but of course -1 does not necessarily imply an error)
gint modest_account_mgr_get_account_int (ModestAccountMgr *self,
const gchar *name,
const gchar *key, GError **err);
+
gint modest_account_mgr_get_server_account_int (ModestAccountMgr *self,
const gchar *name,
const gchar *key, GError **err);
/**
* modest_account_mgr_get_account_bool:
- * @self: self a ModestAccountMgr instance
+ * @self: a ModestAccountMgr instance
* @name: the name of the account
* @key: the key of the value to retrieve
* @err: a GError ptr, or NULL to ignore.
*
- * get a config boolean from some account
+ * get a config boolean from an account
*
* Returns: an boolean with the value for the key, or FALSE in case of
* error (but of course FALSE does not necessarily imply an error)
/**
* modest_account_mgr_set_account_string:
- * @self: self a ModestAccountMgr instance
+ * @self: a ModestAccountMgr instance
* @name: the name of the account
* @key: the key of the value to set
* @val: the value to set
* @err: a GError ptr, or NULL to ignore.
*
- * set a config string for some account
+ * set a config string for an account
*
* Returns: TRUE if setting the value succeeded, or FALSE in case of error.
* @err gives details in case of error
/**
* modest_account_mgr_set_account_int:
- * @self: self a ModestAccountMgr instance
+ * @self: a ModestAccountMgr instance
* @name: the name of the account
* @key: the key of the value to set
* @val: the value to set
* @err: a GError ptr, or NULL to ignore.
*
- * set a config int for some account
+ * set a config int for an account
*
* Returns: TRUE if setting the value succeeded, or FALSE in case of error.
* @err gives details in case of error
const gchar *name,
const gchar *key, gint val,
GError **err);
+
gboolean modest_account_mgr_set_server_account_int (ModestAccountMgr *self,
const gchar *name,
const gchar *key, gint val,
GError **err);
-
/**
* modest_account_mgr_set_account_bool:
- * @self: self a ModestAccountMgr instance
+ * @self: a ModestAccountMgr instance
* @name: the name of the account
* @key: the key of the value to set
* @val: the value to set
* @err: a GError ptr, or NULL to ignore.
*
- * set a config bool for some account
+ * set a config bool for an account
*
* Returns: TRUE if setting the value succeeded, or FALSE in case of error.
* @err gives details in case of error
const gchar *name,
const gchar *key, gboolean val,
GError **err);
+
gboolean modest_account_mgr_set_server_account_bool (ModestAccountMgr *self,
const gchar *name,
const gchar *key, gboolean val,