#include <glib-object.h>
#include <gio/gio.h>
-#include <libempathy/empathy-account.h>
+#include <telepathy-glib/account.h>
#include <telepathy-glib/connection-manager.h>
G_BEGIN_DECLS
EmpathyAccountSettings * empathy_account_settings_new (
const gchar *connection_manager,
const gchar *protocol,
+ const gchar *service,
const char *display_name);
EmpathyAccountSettings * empathy_account_settings_new_for_account (
- EmpathyAccount *account);
+ TpAccount *account);
gboolean empathy_account_settings_is_ready (EmpathyAccountSettings *settings);
const gchar *empathy_account_settings_get_protocol (
EmpathyAccountSettings *settings);
-EmpathyAccount *empathy_account_settings_get_account (
+const gchar *empathy_account_settings_get_service (
+ EmpathyAccountSettings *settings);
+
+void empathy_account_settings_set_service (EmpathyAccountSettings *settings,
+ const gchar *service);
+
+TpAccount *empathy_account_settings_get_account (
EmpathyAccountSettings *settings);
gboolean empathy_account_settings_has_account (
- EmpathyAccountSettings *settings, EmpathyAccount *account);
+ EmpathyAccountSettings *settings, TpAccount *account);
TpConnectionManagerParam *empathy_account_settings_get_tp_params (
EmpathyAccountSettings *settings);
+gboolean empathy_account_settings_have_tp_param (
+ EmpathyAccountSettings *settings,
+ const gchar *param);
+
void empathy_account_settings_unset (EmpathyAccountSettings *settings,
const gchar *param);
const gchar *empathy_account_settings_get_string (
EmpathyAccountSettings *settings,
const gchar *param);
+const gchar * const * empathy_account_settings_get_strv (
+ EmpathyAccountSettings *settings,
+ const gchar *param);
gint32 empathy_account_settings_get_int32 (EmpathyAccountSettings *settings,
const gchar *param);
void empathy_account_settings_set_string (EmpathyAccountSettings *settings,
const gchar *param, const gchar *value);
+void empathy_account_settings_set_strv (EmpathyAccountSettings *settings,
+ const gchar *param, gchar **value);
void empathy_account_settings_set_int32 (EmpathyAccountSettings *settings,
const gchar *param, gint32 value);
gboolean empathy_account_settings_apply_finish (
EmpathyAccountSettings *settings,
GAsyncResult *result,
+ gboolean *reconnect_required,
GError **error);
+void empathy_account_settings_set_regex (EmpathyAccountSettings *settings,
+ const gchar *param,
+ const gchar *regex);
+
+gboolean empathy_account_settings_parameter_is_valid (
+ EmpathyAccountSettings *settings,
+ const gchar *param);
+
gboolean empathy_account_settings_is_valid (EmpathyAccountSettings *settings);
+const TpConnectionManagerProtocol * empathy_account_settings_get_tp_protocol (
+ EmpathyAccountSettings *settings);
+
+gboolean empathy_account_settings_supports_sasl (EmpathyAccountSettings *self);
+
+gboolean empathy_account_settings_param_is_supported (
+ EmpathyAccountSettings *self,
+ const gchar *param);
+
+void empathy_account_settings_set_uri_scheme_tel (EmpathyAccountSettings *self,
+ gboolean associate);
+
+gboolean empathy_account_settings_has_uri_scheme_tel (
+ EmpathyAccountSettings *self);
+
G_END_DECLS
#endif /* #ifndef __EMPATHY_ACCOUNT_SETTINGS_H__*/