[evolution-kolab: 1/4] CamelIMAPXExtdServer: implemented the new() function
- From: Christian Hilberg <chilberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-kolab: 1/4] CamelIMAPXExtdServer: implemented the new() function
- Date: Thu, 9 Feb 2012 17:01:12 +0000 (UTC)
commit ed802df0ab71db82aa435cd6bdafe179b238a099
Author: Christian Hilberg <hilberg kernelconcepts de>
Date: Wed Feb 8 19:00:04 2012 +0100
CamelIMAPXExtdServer: implemented the new() function
* added implementation for instantiating a new
CamelIMAPXExtdServer, binding a CamelIMAPXExtdStore
to it
.../providers/imapx/camel-imapx-extd-server.c | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/src/camel/providers/imapx/camel-imapx-extd-server.c b/src/camel/providers/imapx/camel-imapx-extd-server.c
index 3a6c661..57f7fec 100644
--- a/src/camel/providers/imapx/camel-imapx-extd-server.c
+++ b/src/camel/providers/imapx/camel-imapx-extd-server.c
@@ -1775,11 +1775,20 @@ CamelIMAPXExtdServer*
camel_imapx_extd_server_new (CamelIMAPXExtdStore *store)
{
CamelIMAPXExtdServer *self = NULL;
+ CamelIMAPXServer *is = NULL;
+ CamelService *service = NULL;
+ CamelSession *session = NULL;
g_assert (CAMEL_IS_IMAPX_EXTD_STORE (store));
- /* FIXME implement me */
- g_error ("%s: FIXME implement me", __func__);
+ service = CAMEL_SERVICE (store);
+ session = camel_service_get_session (service);
+
+ self = g_object_new (CAMEL_TYPE_IMAPX_EXTD_SERVER, NULL);
+ is = CAMEL_IMAPX_SERVER (self);
+
+ is->session = g_object_ref (session);
+ is->store = store;
return self;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]