[evolution-ews] Add e_ews_connection_get_mailbox().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Add e_ews_connection_get_mailbox().
- Date: Fri, 13 Jul 2012 12:34:07 +0000 (UTC)
commit 7c7f605340311053373195d3938cb79240342744
Author: Matthew Barnes <mbarnes redhat com>
Date: Thu Jul 12 17:35:05 2012 -0400
Add e_ews_connection_get_mailbox().
src/server/e-ews-connection.c | 10 +++++++++-
src/server/e-ews-connection.h | 1 +
2 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/src/server/e-ews-connection.c b/src/server/e-ews-connection.c
index c1155d4..a1e16a3 100644
--- a/src/server/e-ews-connection.c
+++ b/src/server/e-ews-connection.c
@@ -2423,11 +2423,19 @@ e_ews_connection_download_oal_file_finish (EEwsConnection *cnc,
return !g_simple_async_result_propagate_error (simple, error);
}
+const gchar *
+e_ews_connection_get_mailbox (EEwsConnection *cnc)
+{
+ g_return_val_if_fail (E_IS_EWS_CONNECTION (cnc), NULL);
+
+ return cnc->priv->email;
+}
+
void
e_ews_connection_set_mailbox (EEwsConnection *cnc,
const gchar *email)
{
- g_return_if_fail (cnc != NULL);
+ g_return_if_fail (E_IS_EWS_CONNECTION (cnc));
g_return_if_fail (email != NULL);
g_free (cnc->priv->email);
diff --git a/src/server/e-ews-connection.h b/src/server/e-ews-connection.h
index e266bc2..5bc2b03 100644
--- a/src/server/e-ews-connection.h
+++ b/src/server/e-ews-connection.h
@@ -220,6 +220,7 @@ gboolean e_ews_autodiscover_ws_url_finish
(CamelEwsSettings *settings,
GAsyncResult *result,
GError **error);
+const gchar * e_ews_connection_get_mailbox (EEwsConnection *cnc);
void e_ews_connection_set_mailbox (EEwsConnection *cnc,
const gchar *email);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]