aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-04-18 01:13:55 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-04-18 01:13:55 +0800
commitea0fdf21ece0f81b6bbe3c08e1c21da76280acd4 (patch)
treea832dbe0abedd11d440112ef44ade568bb76685a /plugins
parent40cb250a71e0264f75cd1d02e3f77af5fb550c09 (diff)
downloadgsoc2013-evolution-ea0fdf21ece0f81b6bbe3c08e1c21da76280acd4.tar
gsoc2013-evolution-ea0fdf21ece0f81b6bbe3c08e1c21da76280acd4.tar.gz
gsoc2013-evolution-ea0fdf21ece0f81b6bbe3c08e1c21da76280acd4.tar.bz2
gsoc2013-evolution-ea0fdf21ece0f81b6bbe3c08e1c21da76280acd4.tar.lz
gsoc2013-evolution-ea0fdf21ece0f81b6bbe3c08e1c21da76280acd4.tar.xz
gsoc2013-evolution-ea0fdf21ece0f81b6bbe3c08e1c21da76280acd4.tar.zst
gsoc2013-evolution-ea0fdf21ece0f81b6bbe3c08e1c21da76280acd4.zip
Adapt to sealed up CamelService.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/groupwise-features/install-shared.c6
-rw-r--r--plugins/groupwise-features/share-folder-common.c11
-rw-r--r--plugins/itip-formatter/itip-formatter.c2
3 files changed, 13 insertions, 6 deletions
diff --git a/plugins/groupwise-features/install-shared.c b/plugins/groupwise-features/install-shared.c
index 0a7cd1ace5..969ea0c30d 100644
--- a/plugins/groupwise-features/install-shared.c
+++ b/plugins/groupwise-features/install-shared.c
@@ -103,6 +103,8 @@ install_folder_response (EMFolderSelector *emfs, gint response, gpointer *data)
container_id = get_container_id (cnc, parent_name);
if (e_gw_connection_accept_shared_folder (cnc, folder_name, container_id, (gchar *)item_id, NULL) == E_GW_CONNECTION_STATUS_OK) {
+ CamelService *service;
+ CamelURL *url;
/* FIXME Not passing a GCancellable or GError here. */
folder = camel_store_get_folder_sync (
@@ -117,7 +119,9 @@ install_folder_response (EMFolderSelector *emfs, gint response, gpointer *data)
CAMEL_MESSAGE_DELETED);
camel_folder_summary_touch (folder->summary);
/* camel_object_trigger_event (CAMEL_OBJECT (folder), "folder_changed", changes); */
- uri = camel_url_to_string (((CamelService *) store)->url, CAMEL_URL_HIDE_ALL);
+ service = CAMEL_SERVICE (store);
+ url = camel_service_get_camel_url (service);
+ uri = camel_url_to_string (url, CAMEL_URL_HIDE_ALL);
account = e_get_account_by_source_url (uri);
uri = account->source->url;
em_folder_tree_model_remove_store (model, store);
diff --git a/plugins/groupwise-features/share-folder-common.c b/plugins/groupwise-features/share-folder-common.c
index 790edb4d8a..521bd3a54c 100644
--- a/plugins/groupwise-features/share-folder-common.c
+++ b/plugins/groupwise-features/share-folder-common.c
@@ -69,8 +69,11 @@ refresh_folder_tree (EMFolderTreeModel *model, CamelStore *store)
gchar *uri;
EAccount *account;
CamelProvider *provider;
+ CamelURL *url;
+
+ url = camel_service_get_camel_url (CAMEL_SERVICE (store));
+ uri = camel_url_to_string (url, CAMEL_URL_HIDE_ALL);
- uri = camel_url_to_string (((CamelService *) store)->url, CAMEL_URL_HIDE_ALL);
account = e_get_account_by_source_url (uri);
if (!account) {
return;
@@ -436,7 +439,7 @@ get_cnc (CamelStore *store)
return NULL;
service = CAMEL_SERVICE (store);
- url = service->url;
+ url = camel_service_get_camel_url (service);
server_name = g_strdup (url->host);
user = g_strdup (url->user);
property_value = camel_url_get_param (url, "soap_port");
@@ -453,10 +456,10 @@ get_cnc (CamelStore *store)
else
uri = g_strconcat ("http://", server_name, ":", port, "/soap", NULL);
- cnc = e_gw_connection_new (uri, user, service->url->passwd);
+ cnc = e_gw_connection_new (uri, user, url->passwd);
if (!E_IS_GW_CONNECTION(cnc) && use_ssl && g_str_equal (use_ssl, "when-possible")) {
gchar *http_uri = g_strconcat ("http://", uri + 8, NULL);
- cnc = e_gw_connection_new (http_uri, user, service->url->passwd);
+ cnc = e_gw_connection_new (http_uri, user, url->passwd);
g_free (http_uri);
}
g_free (use_ssl);
diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c
index a401865c0e..fcd54279e2 100644
--- a/plugins/itip-formatter/itip-formatter.c
+++ b/plugins/itip-formatter/itip-formatter.c
@@ -834,7 +834,7 @@ find_server (struct _itip_puri *pitip, ECalComponent *comp)
parent_store = camel_folder_get_parent_store (pitip->folder);
- url = CAMEL_SERVICE (parent_store)->url;
+ url = camel_service_get_camel_url (CAMEL_SERVICE (parent_store));
uri = camel_url_to_string (url, CAMEL_URL_HIDE_ALL);
itip_view_set_buttons_sensitive (ITIP_VIEW (pitip->view), FALSE);