diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-07-21 23:48:58 +0800 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-07-22 00:27:59 +0800 |
commit | b81f5d599018df2378b489f080b5a2a64a8f9c9a (patch) | |
tree | 69884907bd98750efe7ff512a7d871367b51b9d2 /libempathy | |
parent | f8d5873483b65c9d3d6577b3490d0ed21e7f4a21 (diff) | |
download | gsoc2013-empathy-b81f5d599018df2378b489f080b5a2a64a8f9c9a.tar gsoc2013-empathy-b81f5d599018df2378b489f080b5a2a64a8f9c9a.tar.gz gsoc2013-empathy-b81f5d599018df2378b489f080b5a2a64a8f9c9a.tar.bz2 gsoc2013-empathy-b81f5d599018df2378b489f080b5a2a64a8f9c9a.tar.lz gsoc2013-empathy-b81f5d599018df2378b489f080b5a2a64a8f9c9a.tar.xz gsoc2013-empathy-b81f5d599018df2378b489f080b5a2a64a8f9c9a.tar.zst gsoc2013-empathy-b81f5d599018df2378b489f080b5a2a64a8f9c9a.zip |
Remove the API to change the account parameters one by one
Diffstat (limited to 'libempathy')
-rw-r--r-- | libempathy/empathy-account.c | 67 | ||||
-rw-r--r-- | libempathy/empathy-account.h | 17 |
2 files changed, 10 insertions, 74 deletions
diff --git a/libempathy/empathy-account.c b/libempathy/empathy-account.c index ef377427d..91edaed66 100644 --- a/libempathy/empathy-account.c +++ b/libempathy/empathy-account.c @@ -653,79 +653,28 @@ empathy_account_get_icon_name (EmpathyAccount *account) return priv->icon_name; } -gboolean -empathy_account_is_enabled (EmpathyAccount *account) +const GHashTable * +empathy_account_get_parameters (EmpathyAccount *account) { EmpathyAccountPriv *priv = GET_PRIV (account); - return priv->enabled; -} - -void -empathy_account_unset_param (EmpathyAccount *account, const gchar *param) -{ - //EmpathyAccountPriv *priv = GET_PRIV (account); - - //mc_account_unset_param (priv->mc_account, param); + return priv->parameters; } -const gchar * -empathy_account_get_param_string (EmpathyAccount *account, const gchar *param) -{ - EmpathyAccountPriv *priv = GET_PRIV (account); - - return tp_asv_get_string (priv->parameters, param); -} - -gint -empathy_account_get_param_int (EmpathyAccount *account, const gchar *param) +gboolean +empathy_account_is_enabled (EmpathyAccount *account) { EmpathyAccountPriv *priv = GET_PRIV (account); - return tp_asv_get_int32 (priv->parameters, param, NULL); + return priv->enabled; } gboolean -empathy_account_get_param_boolean (EmpathyAccount *account, const gchar *param) +empathy_account_is_ready (EmpathyAccount *account) { EmpathyAccountPriv *priv = GET_PRIV (account); - return tp_asv_get_boolean (priv->parameters, param, NULL); -} - -void -empathy_account_set_param_string (EmpathyAccount *account, - const gchar *param, - const gchar *value) -{ - //EmpathyAccountPriv *priv = GET_PRIV (account); - //mc_account_set_param_string (priv->mc_account, param, value); -} - -void -empathy_account_set_param_int (EmpathyAccount *account, - const gchar *param, - gint value) -{ - //EmpathyAccountPriv *priv = GET_PRIV (account); - //mc_account_set_param_int (priv->mc_account, param, value); -} - -void -empathy_account_set_param_boolean (EmpathyAccount *account, - const gchar *param, - gboolean value) -{ - //EmpathyAccountPriv *priv = GET_PRIV (account); - //mc_account_set_param_boolean (priv->mc_account, param, value); -} - -void -empathy_account_set_display_name (EmpathyAccount *account, - const gchar *display_name) -{ - //EmpathyAccountPriv *priv = GET_PRIV (account); - //mc_account_set_display_name (priv->mc_account, display_name); + return priv->ready; } diff --git a/libempathy/empathy-account.h b/libempathy/empathy-account.h index 252c959d2..efc8df713 100644 --- a/libempathy/empathy-account.h +++ b/libempathy/empathy-account.h @@ -68,21 +68,6 @@ void empathy_account_set_enabled (EmpathyAccount *account, gboolean enabled); gboolean empathy_account_is_enabled (EmpathyAccount *account); -void empathy_account_unset_param (EmpathyAccount *account, const gchar *param); -const gchar *empathy_account_get_param_string (EmpathyAccount *account, - const gchar *param); -gint empathy_account_get_param_int (EmpathyAccount *account, - const gchar *param); -gboolean empathy_account_get_param_boolean (EmpathyAccount *account, - const gchar *param); - -void empathy_account_set_param_string (EmpathyAccount *account, - const gchar *param, const gchar *value); -void empathy_account_set_param_int (EmpathyAccount *account, - const gchar *param, gint value); -void empathy_account_set_param_boolean (EmpathyAccount *account, - const gchar *param, gboolean value); - gboolean empathy_account_is_valid (EmpathyAccount *account); gboolean empathy_account_is_ready (EmpathyAccount *account); @@ -95,6 +80,8 @@ EmpathyAccount *empathy_account_new (TpDBusDaemon *bus_daemon, void empathy_account_request_presence (EmpathyAccount *account, TpConnectionPresenceType type, const gchar *status, const gchar *message); +const GHashTable *empathy_account_get_parameters (EmpathyAccount *account); + G_END_DECLS |