+void modest_account_mgr_set_server_account_username_has_succeeded (ModestAccountMgr *self,
+ const gchar* account_name,
+ gboolean succeeded);
+
+/**
+ * modest_account_mgr_set_server_account_password:
+ * @self: a ModestAccountMgr instance
+ * @account_name: The name of a server account.
+ * @password: The new password.
+ *
+ * Sets the password for this server account.
+ */
+void modest_account_mgr_set_server_account_password (ModestAccountMgr *self,
+ const gchar* account_name,
+ const gchar* password);
+
+/**
+ * modest_account_mgr_get_server_account_password:
+ * @self: a ModestAccountMgr instance
+ * @account_name: The name of a server account.
+ *
+ * Gets the password for this server account from the account settings.
+ */
+gchar* modest_account_mgr_get_server_account_password (ModestAccountMgr *self,
+ const gchar* account_name);
+
+/**
+ * modest_account_mgr_get_server_account_has_password:
+ * @self: a ModestAccountMgr instance
+ * @account_name: The name of a server account.
+ *
+ * Gets whether a password has been set for this server account in the account settings.
+ */
+gboolean modest_account_mgr_get_server_account_has_password (ModestAccountMgr *self,
+ const gchar* account_name);
+
+/**
+ * modest_server_account_modest_account_mgr_get_server_account_hostname:
+ * @self: a ModestAccountMgr instance
+ * @account_name: The name of a server account.
+ *
+ * Gets the hostname this server account.
+ *
+ * Returns: The hostname.
+ */
+gchar* modest_account_mgr_get_server_account_hostname (ModestAccountMgr *self,
+ const gchar* account_name);
+
+/**
+ * modest_server_account_modest_account_mgr_set_server_account_hostname:
+ * @self: a ModestAccountMgr instance
+ * @account_name: The name of a server account.
+ * @hostname: The new hostname
+ *
+ * Sets the hostname this server account.
+ */
+void modest_account_mgr_set_server_account_hostname (ModestAccountMgr *self,
+ const gchar* account_name,
+ const gchar *hostname);
+
+/**
+ * modest_account_mgr_get_server_account_secure_auth:
+ * @self: a ModestAccountMgr instance
+ * @account_name: The name of a server account.
+ *
+ * Gets the secure authentication method for this server account.
+ *
+ * Returns: The secure authentication enum value.
+ */
+ModestProtocolType modest_account_mgr_get_server_account_secure_auth (ModestAccountMgr *self,
+ const gchar* account_name);
+
+/**
+ * modest_server_account_data_get_secure_auth:
+ * @self: a ModestAccountMgr instance
+ * @account_name: The name of a server account.
+ * @secure_auth: The secure authentication enum value.
+ *
+ * Gets the secure authentication method for this server account.
+ */
+void modest_account_mgr_set_server_account_secure_auth (ModestAccountMgr *self,
+ const gchar* account_name,
+ ModestProtocolType secure_auth);
+
+/**
+ * modest_server_account_data_get_security:
+ * @self: a ModestAccountMgr instance
+ * @account_name: The name of a server account.
+ *
+ * Gets the security method for this server account.
+ *
+ * Returns: The security connection protocol.
+ */
+ModestProtocolType modest_account_mgr_get_server_account_security (ModestAccountMgr *self,
+ const gchar* account_name);
+
+/**
+ * modest_account_mgr_set_server_account_security:
+ * @self: a ModestAccountMgr instance
+ * @secure_auth: The security enum value.
+ *
+ * Gets the security method for this server account.
+ */
+void modest_account_mgr_set_server_account_security (ModestAccountMgr *self,
+ const gchar* account_name,
+ ModestProtocolType security);
+
+gboolean modest_account_mgr_save_server_settings (ModestAccountMgr *self,
+ ModestServerAccountSettings *settings);
+
+ModestServerAccountSettings *modest_account_mgr_load_server_settings (ModestAccountMgr *self,
+ const gchar *account_name,
+ gboolean is_transport_not_store);
+
+/**
+ * modest_account_mgr_get_from_string
+ * @self: a #ModestAccountMgr instance
+ * @name: the account name
+ * @mailbox: the mailbox
+ *
+ * get the From: string for some account; ie. "Foo Bar" <foo.bar@cuux.yy>"
+ *
+ * Returns: the newly allocated from-string, or NULL in case of error
+ */
+gchar * modest_account_mgr_get_from_string (ModestAccountMgr *self, const gchar* name, const gchar *mailbox);
+
+
+/**
+ * modest_account_mgr_get_unused_account_name
+ * @self: a #ModestAccountMgr instance
+ * @name: The initial account name
+ *
+ * get an unused account name, based on a starting string.
+ *
+ * Returns: the newly allocated name.
+ */
+gchar* modest_account_mgr_get_unused_account_name (ModestAccountMgr *self,
+ const gchar* starting_name,
+ gboolean server_account);
+
+/**
+ * modest_account_mgr_get_unused_account_display name
+ * @self: a #ModestAccountMgr instance
+ * @name: The initial account display name
+ *
+ * get an unused account display name, based on a starting string.
+ *
+ * Returns: the newly allocated name.
+ */
+gchar* modest_account_mgr_get_unused_account_display_name (ModestAccountMgr *self,
+ const gchar* starting_name);
+
+/**
+ * modest_account_mgr_set_server_account_security:
+ * @self: a ModestAccountMgr instance
+ * @secure_auth: The security enum value.
+ *
+ * Gets the security method for this server account.
+ */
+void modest_account_mgr_set_leave_on_server (ModestAccountMgr *self,
+ const gchar* account_name,
+ gboolean leave_on_server);
+
+gboolean modest_account_mgr_get_leave_on_server (ModestAccountMgr *self,
+ const gchar* account_name);
+
+gint modest_account_mgr_get_last_updated (ModestAccountMgr *self,
+ const gchar* account_name);
+
+void modest_account_mgr_set_last_updated (ModestAccountMgr *self,
+ const gchar* account_name,
+ gint time);
+
+gint modest_account_mgr_get_retrieve_limit (ModestAccountMgr *self,
+ const gchar* account_name);
+
+void modest_account_mgr_set_retrieve_limit (ModestAccountMgr *self,
+ const gchar* account_name,
+ gint limit_retrieve);
+
+gint modest_account_mgr_get_server_account_port (ModestAccountMgr *self,
+ const gchar* account_name);
+
+void modest_account_mgr_set_server_account_port (ModestAccountMgr *self,
+ const gchar *account_name,
+ gint port_num);
+
+gchar* modest_account_mgr_get_server_account_name (ModestAccountMgr *self,
+ const gchar *account_name,
+ TnyAccountType account_type);
+
+ModestAccountRetrieveType modest_account_mgr_get_retrieve_type (ModestAccountMgr *self,
+ const gchar *account_name);
+
+void modest_account_mgr_set_retrieve_type (ModestAccountMgr *self,
+ const gchar *account_name,
+ ModestAccountRetrieveType retrieve_type);
+
+void modest_account_mgr_set_user_fullname (ModestAccountMgr *self,
+ const gchar *account_name,
+ const gchar *fullname);