* 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
+ * @name: name (id) of the account
* @hostname: the hostname
* @username: the username
* @password: the password
- * @proto: the prototype
- * @err: a GError ptr, or NULL to ignore.
+ * @proto: the protocol (imap, smtp, ...) used for this account
*
- * add a server account to the configuration
+ * add a server account to the configuration.
* the server account with @name should not already exist
- *
- * Returns: TRUE if succeeded, FALSE otherwise,
- * @err gives details in case of error
+ *
+ * Returns: TRUE if succeeded, FALSE otherwise,
*/
gboolean modest_account_mgr_add_server_account (ModestAccountMgr *self,
const gchar *name,
/**
* 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
const gchar *name,
GError **err);
-
/**
* modest_account_mgr_account_names:
* @self: a ModestAccountMgr instance
* @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_account_string (ModestAccountMgr *self,
const gchar *name,
const gchar *key, GError **err);
+
+gchar* modest_account_mgr_get_server_account_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)
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)
const gchar *name,
const gchar *key, GError **err);
+gboolean modest_account_mgr_get_server_account_bool (ModestAccountMgr *self,
+ const gchar *name,
+ const gchar *key, GError **err);
/**
* 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
const gchar *name,
const gchar *key, const gchar* val,
GError **err);
+
+gboolean modest_account_mgr_set_server_account_string (ModestAccountMgr *self,
+ const gchar *name,
+ const gchar *key, const gchar* val,
+ GError **err);
+
+
/**
* 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 *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,
+ GError **err);
+
+
G_END_DECLS
#endif /* __MODEST_ACCOUNT_MGR_H__ */
-