2007-04-17 Murray Cumming <murrayc@murrayc.com>
[modest] / src / modest-account-mgr-helpers.h
index e649d04..1040209 100644 (file)
@@ -136,6 +136,34 @@ gboolean modest_account_mgr_set_enabled (ModestAccountMgr *self, const gchar* na
  */
 gboolean modest_account_mgr_get_enabled (ModestAccountMgr *self, const gchar* name);
 
+/**
+ * modest_account_mgr_get_account_option:
+ * @self: a ModestAccountMgr instance
+ * @account_name: the account name to check
+ * @account_name: the option name to check
+ *
+ * Returns: The account option value. This must be freed with g_free().
+ */
+gchar* modest_account_mgr_get_server_account_option (ModestAccountMgr *self,  const gchar* account_name, const gchar* option_name);
+
+/**
+ * modest_server_account_data_get_option_value:
+ * @self: a ModestServerAccountData instance
+ * @account_name: the option name to check
+ *
+ * Returns: The account option value. This must be freed with g_free().
+ */
+gchar* modest_server_account_data_get_option_value (GSList* options_list, const gchar* option_name);
+
+/**
+ * modest_server_account_data_get_option_bool:
+ * @self: a ModestServerAccountData instance
+ * @account_name: the option name to check
+ *
+ * Returns: Whether the account option is present.
+ */
+gboolean modest_server_account_data_get_option_bool (GSList* options_list, const gchar* option_name);
+
 
 /**
  * modest_account_mgr_get_from_string