[evolution-ews] Expose connection uri and email for new API



commit 9eaa81079002deb3e8cd74f1fc74265b064d552d
Author: Pavel Ocheretny <potzarti infradead org>
Date:   Mon May 2 23:00:26 2011 +0300

    Expose connection uri and email for new API

 src/server/e-ews-connection.c |   16 ++++++++++++++++
 src/server/e-ews-connection.h |    6 ++++++
 2 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/src/server/e-ews-connection.c b/src/server/e-ews-connection.c
index f9591b5..3438a5c 100644
--- a/src/server/e-ews-connection.c
+++ b/src/server/e-ews-connection.c
@@ -788,6 +788,22 @@ ews_connection_authenticate	(SoupSession *sess, SoupMessage *msg,
 	g_signal_emit (cnc, signals[AUTHENTICATE], 0, msg, auth, retrying);
 }
 
+const gchar *
+e_ews_connection_get_uri (EEwsConnection *cnc)
+{
+	g_return_val_if_fail (E_IS_EWS_CONNECTION (cnc), NULL);
+
+	return cnc->priv->uri;
+}
+
+const gchar *
+e_ews_connection_get_email (EEwsConnection *cnc)
+{
+	g_return_val_if_fail (E_IS_EWS_CONNECTION (cnc), NULL);
+
+	return cnc->priv->email;
+}
+
 void
 e_ews_connection_authenticate (EEwsConnection *cnc,
 			       SoupAuth *auth, const gchar *user,
diff --git a/src/server/e-ews-connection.h b/src/server/e-ews-connection.h
index 9bf4718..2c4835b 100644
--- a/src/server/e-ews-connection.h
+++ b/src/server/e-ews-connection.h
@@ -93,6 +93,12 @@ void		e_ews_autodiscover_ws_url	(EEwsAutoDiscoverCallback cb,
 						 gchar *password);
 void		e_ews_connection_set_mailbox	(EEwsConnection *cnc,
 						 const gchar *email);
+
+/* Expose uri and mail for a new API */
+const gchar * e_ews_connection_get_uri (EEwsConnection *cnc);
+
+const gchar * e_ews_connection_get_email (EEwsConnection *cnc);
+
 /* Sync folder items */
 void		e_ews_connection_sync_folder_items_start
 						(EEwsConnection *cnc,



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