diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-08-21 00:57:17 +0800 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-08-21 00:57:17 +0800 |
commit | 6a6c9006908cb43e0cacca34cc22862582aadba6 (patch) | |
tree | 4ea0148d773e938fccba961f6983f8978eaac863 /libempathy | |
parent | 6f47d10791dac97495b73200e05122b6406ea74b (diff) | |
download | gsoc2013-empathy-6a6c9006908cb43e0cacca34cc22862582aadba6.tar gsoc2013-empathy-6a6c9006908cb43e0cacca34cc22862582aadba6.tar.gz gsoc2013-empathy-6a6c9006908cb43e0cacca34cc22862582aadba6.tar.bz2 gsoc2013-empathy-6a6c9006908cb43e0cacca34cc22862582aadba6.tar.lz gsoc2013-empathy-6a6c9006908cb43e0cacca34cc22862582aadba6.tar.xz gsoc2013-empathy-6a6c9006908cb43e0cacca34cc22862582aadba6.tar.zst gsoc2013-empathy-6a6c9006908cb43e0cacca34cc22862582aadba6.zip |
Add a function to get the requested global presence from the account manager
Diffstat (limited to 'libempathy')
-rw-r--r-- | libempathy/empathy-account-manager.c | 16 | ||||
-rw-r--r-- | libempathy/empathy-account-manager.h | 5 |
2 files changed, 21 insertions, 0 deletions
diff --git a/libempathy/empathy-account-manager.c b/libempathy/empathy-account-manager.c index 9f0c71003..7624122d8 100644 --- a/libempathy/empathy-account-manager.c +++ b/libempathy/empathy-account-manager.c @@ -866,6 +866,22 @@ empathy_account_manager_request_global_presence ( } TpConnectionPresenceType +empathy_account_manager_get_requested_global_presence ( + EmpathyAccountManager *manager, + gchar **status, + gchar **message) +{ + EmpathyAccountManagerPriv *priv = GET_PRIV (manager); + + if (status != NULL) + *status = g_strdup (priv->requested_status); + if (message != NULL) + *message = g_strdup (priv->requested_status_message); + + return priv->requested_presence; +} + +TpConnectionPresenceType empathy_account_manager_get_global_presence ( EmpathyAccountManager *manager, gchar **status, diff --git a/libempathy/empathy-account-manager.h b/libempathy/empathy-account-manager.h index 1f73f635e..e0ec93761 100644 --- a/libempathy/empathy-account-manager.h +++ b/libempathy/empathy-account-manager.h @@ -86,6 +86,11 @@ void empathy_account_manager_request_global_presence ( const gchar *status, const gchar *message); +TpConnectionPresenceType empathy_account_manager_get_requested_global_presence ( + EmpathyAccountManager *manager, + gchar **status, + gchar **message); + TpConnectionPresenceType empathy_account_manager_get_global_presence ( EmpathyAccountManager *manager, gchar **status, |