[empathy/mc5: 460/483] Add a function to get the requested global presence from the account manager



commit 6a6c9006908cb43e0cacca34cc22862582aadba6
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date:   Thu Aug 20 17:57:17 2009 +0100

    Add a function to get the requested global presence from the account manager

 libempathy/empathy-account-manager.c |   16 ++++++++++++++++
 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 9f0c710..7624122 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 1f73f63..e0ec937 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,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]