[evolution-kolab/ek-wip-gui: 4/16] EPlugin: added empty implementation files



commit 47e5251bfeeab941d65b390f66f9509bc6372ae2
Author: Christian Hilberg <hilberg kernelconcepts de>
Date:   Fri Feb 10 12:47:39 2012 +0100

    EPlugin: added empty implementation files
    
    * added files for IMAP folder annotation/metadata
    * added files for IMAP folder permissions (ACL)
    * added files for (extended) free/busy

 src/eplugin/Makefile.am                  |   24 +++--
 src/eplugin/e-kolab-account-setup.c      |  137 ++++++++----------------------
 src/eplugin/e-kolab-account-setup.h      |    1 +
 src/eplugin/e-kolab-folder-metadata.c    |   49 +++++++++++
 src/eplugin/e-kolab-folder-metadata.h    |   44 ++++++++++
 src/eplugin/e-kolab-folder-permissions.c |   49 +++++++++++
 src/eplugin/e-kolab-folder-permissions.h |   44 ++++++++++
 src/eplugin/e-kolab-freebusy.c           |   49 +++++++++++
 src/eplugin/e-kolab-freebusy.h           |   44 ++++++++++
 9 files changed, 331 insertions(+), 110 deletions(-)
---
diff --git a/src/eplugin/Makefile.am b/src/eplugin/Makefile.am
index 30f7e5a..befaf56 100644
--- a/src/eplugin/Makefile.am
+++ b/src/eplugin/Makefile.am
@@ -1,16 +1,19 @@
 ## Process this file with automake to produce Makefile.in
 
-AM_CPPFLAGS =			\
-	$(KOLAB_INCLUDE)	\
-	$(EVOLUTION_CFLAGS)	\
-	$(EDS_CFLAGS)		\
-	$(GLIB_CFLAGS)		\
-	$(GTK_CFLAGS)		\
-	$(CFLAGS)		\
+AM_CPPFLAGS =				\
+	$(KOLAB_INCLUDE)		\
+	$(EVOLUTION_CFLAGS)		\
+	$(EDS_CFLAGS)			\
+	$(GLIB_CFLAGS)			\
+	$(GTK_CFLAGS)			\
+	$(CFLAGS)			\
 	$(ADD_CFLAGS)
 
-noinst_HEADERS =		\
-	e-kolab-account-setup.h	\
+noinst_HEADERS =			\
+	e-kolab-account-setup.h		\
+	e-kolab-folder-metadata.h	\
+	e-kolab-folder-permissions.h	\
+	e-kolab-freebusy.h		\
 	e-kolab-plugin.h
 
 @EVO_PLUGIN_RULE@
@@ -21,6 +24,9 @@ plugin_LTLIBRARIES = liborg-gnome-kolab.la
 
 liborg_gnome_kolab_la_SOURCES =		\
 	e-kolab-account-setup.c		\
+	e-kolab-folder-metadata.c	\
+	e-kolab-folder-permissions.c	\
+	e-kolab-freebusy.c		\
 	e-kolab-plugin.c
 
 liborg_gnome_kolab_la_LDFLAGS = -module -avoid-version
diff --git a/src/eplugin/e-kolab-account-setup.c b/src/eplugin/e-kolab-account-setup.c
index d5bd805..f8f8ea7 100644
--- a/src/eplugin/e-kolab-account-setup.c
+++ b/src/eplugin/e-kolab-account-setup.c
@@ -69,7 +69,7 @@ typedef struct {
 } kolab_ui_data;
 
 /*----------------------------------------------------------------------------*/
-/* internal statics */
+/* internal statics (non-UI) */
 
 static void
 ensure_kolab_sourcetype_source_group (ECalSourceType type)
@@ -88,38 +88,8 @@ ensure_kolab_sourcetype_source_group (ECalSourceType type)
 	g_object_unref (slist);
 }
 
-/**
- * ensure_kolab_contacts_source_group:
- *
- * Ensures the existence of the kolab contacts source entry in Evolutions
- * source definitions.
- */
-static void
-ensure_kolab_calendar_source_groups (void)
-{
-	ensure_kolab_sourcetype_source_group (E_CAL_SOURCE_TYPE_EVENT);
-	ensure_kolab_sourcetype_source_group (E_CAL_SOURCE_TYPE_TODO);
-	ensure_kolab_sourcetype_source_group (E_CAL_SOURCE_TYPE_JOURNAL);
-}
-
-static void
-ensure_kolab_contacts_source_group (void)
-{
-	/* Find the original code in google-contacts-source.c. */
-	ESourceList  *source_list = NULL;
-	const gchar *key = NULL;
-
-	key = "/apps/evolution/addressbook/sources";
-	source_list = e_source_list_new_for_gconf_default (key);
-
-	if (source_list == NULL)
-		return;
-
-	e_source_list_ensure_group (source_list,
-	                            KOLAB_CAMEL_PROVIDER_NAME,
-	                            KOLAB_CAMEL_URI_PREFIX, FALSE);
-	g_object_unref (source_list);
-}
+/*----------------------------------------------------------------------------*/
+/* internal statics (UI) */
 
 static void
 destroy_ui_data (gpointer data)
@@ -311,6 +281,7 @@ set_contact_source_from_ui_cb (kolab_ui_data *uidata)
 {
 	set_source_from_ui (uidata, "plain/password");
 }
+
 static void
 set_calendar_source_from_ui_cb (kolab_ui_data *uidata)
 {
@@ -318,41 +289,46 @@ set_calendar_source_from_ui_cb (kolab_ui_data *uidata)
 }
 
 /*----------------------------------------------------------------------------*/
-/* public API */
+/* API functions (non-UI) */
 
-gint
-e_plugin_lib_enable (EPlugin *epl,
-                     gint enable)
+/**
+ * ensure_kolab_contacts_source_group:
+ *
+ * Ensures the existence of the kolab contacts source entry in Evolutions
+ * source definitions.
+ */
+void
+e_kolab_account_setup_ensure_calendar_source_groups (void)
 {
-	/* api demo */
-	g_assert (E_IS_PLUGIN (epl));
-	if (enable) {
-		/* init stuff, call some libekolab/ init function here */
-		/*
-		  bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
-		  bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
-		*/
-		ensure_kolab_calendar_source_groups ();
-		ensure_kolab_contacts_source_group ();
-		g_debug ("%s(): Kolab plugin enabled", __func__);
-	} else {
-		g_debug ("%s(): Kolab plugin disabled", __func__);
-	}
-	return 0;
+	ensure_kolab_sourcetype_source_group (E_CAL_SOURCE_TYPE_EVENT);
+	ensure_kolab_sourcetype_source_group (E_CAL_SOURCE_TYPE_TODO);
+	ensure_kolab_sourcetype_source_group (E_CAL_SOURCE_TYPE_JOURNAL);
 }
 
-gboolean
-org_gnome_kolab_check_options(EPlugin *epl,
-                              EConfigHookPageCheckData *data)
+void
+e_kolab_account_setup_ensure_contacts_source_group (void)
 {
-	/* TODO: Implement correct handling of options checking. */
-	g_assert (E_IS_PLUGIN (epl));
-	(void) data;
-	return TRUE;
+	/* Find the original code in google-contacts-source.c. */
+	ESourceList  *source_list = NULL;
+	const gchar *key = NULL;
+
+	key = "/apps/evolution/addressbook/sources";
+	source_list = e_source_list_new_for_gconf_default (key);
+
+	if (source_list == NULL)
+		return;
+
+	e_source_list_ensure_group (source_list,
+	                            KOLAB_CAMEL_PROVIDER_NAME,
+	                            KOLAB_URI_PREFIX, FALSE);
+	g_object_unref (source_list);
 }
 
+/*----------------------------------------------------------------------------*/
+/* API functions (UI) */
+
 GtkWidget*
-e_kolab_account_setup_create_backend (EPlugin *epl,
+e_kolab_account_setup_backend_create (EPlugin *epl,
                                       EConfigHookItemFactoryData *data,
                                       KolabWidgetType widget_type)
 {
@@ -558,45 +534,4 @@ e_kolab_account_setup_create_backend (EPlugin *epl,
 	return NULL;
 }
 
-GtkWidget*
-e_kolab_account_setup_create_calendar (EPlugin *epl,
-                                       EConfigHookItemFactoryData *data)
-{
-	g_assert (E_IS_PLUGIN (epl));
-
-	e_kolab_account_setup_create_backend (epl,
-	                                      data,
-	                                      KOLAB_CALENDAR_WIDGET);
-	return NULL;
-}
-
-GtkWidget*
-e_kolab_account_setup_create_addressbook (EPlugin *epl,
-                                          EConfigHookItemFactoryData *data)
-{
-	g_assert (E_IS_PLUGIN (epl));
-
-	e_kolab_account_setup_create_backend (epl,
-	                                      data,
-	                                      KOLAB_CONTACT_WIDGET);
-	return NULL;
-}
-
-GtkWidget*
-org_gnome_kolab_account_setup (EPlugin *epl,
-                               EConfigHookItemFactoryData *data)
-{
-	g_assert (E_IS_PLUGIN (epl));
-
-	g_debug ("%s() called.\n", __func__);
-	g_debug (" + epl: %p", (void*)epl);
-	g_debug (" + data: %p", (void*)data);
-
-	/* is NULL on New Account creation, add more stuff here */
-	return NULL;
-
-	/* more here to be stolen from exchange-mapi-account-setup.c */
-	/* ... */
-}
-
 /*----------------------------------------------------------------------------*/
diff --git a/src/eplugin/e-kolab-account-setup.h b/src/eplugin/e-kolab-account-setup.h
index 5853e2d..68cca8e 100644
--- a/src/eplugin/e-kolab-account-setup.h
+++ b/src/eplugin/e-kolab-account-setup.h
@@ -5,6 +5,7 @@
  *  Wed Jun 16 15:37:05 2010
  *  Copyright  2010  Christian Hilberg
  *  <hilberg kernelconcepts de>
+ *  and Silvan Marco Fin <silvan kernelconcepts de> in 2011
  ****************************************************************************/
 
 /*
diff --git a/src/eplugin/e-kolab-folder-metadata.c b/src/eplugin/e-kolab-folder-metadata.c
new file mode 100644
index 0000000..cdddd28
--- /dev/null
+++ b/src/eplugin/e-kolab-folder-metadata.c
@@ -0,0 +1,49 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
+/***************************************************************************
+ *            e-kolab-folder-metadata.c
+ *
+ *  Fri Feb 10 11:25:05 2012
+ *  Copyright  2012  Christian Hilberg
+ *  <hilberg kernelconcepts de>
+ *
+ ****************************************************************************/
+
+/*
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301,  USA
+ */
+
+/*----------------------------------------------------------------------------*/
+
+#include <config.h>
+
+#include "e-kolab-folder-metadata.h"
+
+/*----------------------------------------------------------------------------*/
+/* internal statics (non-UI) */
+
+
+/*----------------------------------------------------------------------------*/
+/* internal statics (UI) */
+
+
+/*----------------------------------------------------------------------------*/
+/* API functions (non-UI) */
+
+
+/*----------------------------------------------------------------------------*/
+/* API functions (UI) */
+
+
+/*----------------------------------------------------------------------------*/
diff --git a/src/eplugin/e-kolab-folder-metadata.h b/src/eplugin/e-kolab-folder-metadata.h
new file mode 100644
index 0000000..958fd80
--- /dev/null
+++ b/src/eplugin/e-kolab-folder-metadata.h
@@ -0,0 +1,44 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
+/***************************************************************************
+ *            e-kolab-folder-metadata.h
+ *
+ *  Fri Feb 10 11:16:05 2012
+ *  Copyright  2012  Christian Hilberg
+ *  <hilberg kernelconcepts de>
+ *
+ ****************************************************************************/
+
+/*
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301,  USA
+ */
+
+/*----------------------------------------------------------------------------*/
+
+#ifndef _E_KOLAB_FOLDER_METADATA_H_
+#define _E_KOLAB_FOLDER_METADATA_H_
+
+/*----------------------------------------------------------------------------*/
+
+#include <glib.h>
+#include <gtk/gtk.h>
+
+/*----------------------------------------------------------------------------*/
+
+
+/*----------------------------------------------------------------------------*/
+
+#endif /* _E_KOLAB_FOLDER_METADATA_H_ */
+
+/*----------------------------------------------------------------------------*/
diff --git a/src/eplugin/e-kolab-folder-permissions.c b/src/eplugin/e-kolab-folder-permissions.c
new file mode 100644
index 0000000..3aff248
--- /dev/null
+++ b/src/eplugin/e-kolab-folder-permissions.c
@@ -0,0 +1,49 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
+/***************************************************************************
+ *            e-kolab-folder-permissions.c
+ *
+ *  Fri Feb 10 11:27:05 2012
+ *  Copyright  2012  Christian Hilberg
+ *  <hilberg kernelconcepts de>
+ *
+ ****************************************************************************/
+
+/*
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301,  USA
+ */
+
+/*----------------------------------------------------------------------------*/
+
+#include <config.h>
+
+#include "e-kolab-folder-permissions.h"
+
+/*----------------------------------------------------------------------------*/
+/* internal statics (non-UI) */
+
+
+/*----------------------------------------------------------------------------*/
+/* internal statics (UI) */
+
+
+/*----------------------------------------------------------------------------*/
+/* API functions (non-UI) */
+
+
+/*----------------------------------------------------------------------------*/
+/* API functions (UI) */
+
+
+/*----------------------------------------------------------------------------*/
diff --git a/src/eplugin/e-kolab-folder-permissions.h b/src/eplugin/e-kolab-folder-permissions.h
new file mode 100644
index 0000000..12fd07a
--- /dev/null
+++ b/src/eplugin/e-kolab-folder-permissions.h
@@ -0,0 +1,44 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
+/***************************************************************************
+ *            e-kolab-folder-permissions.h
+ *
+ *  Fri Feb 10 11:23:05 2012
+ *  Copyright  2012  Christian Hilberg
+ *  <hilberg kernelconcepts de>
+ *
+ ****************************************************************************/
+
+/*
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301,  USA
+ */
+
+/*----------------------------------------------------------------------------*/
+
+#ifndef _E_KOLAB_FOLDER_PERMISSIONS_H_
+#define _E_KOLAB_FOLDER_PERMISSIONS_H_
+
+/*----------------------------------------------------------------------------*/
+
+#include <glib.h>
+#include <gtk/gtk.h>
+
+/*----------------------------------------------------------------------------*/
+
+
+/*----------------------------------------------------------------------------*/
+
+#endif /* _E_KOLAB_FOLDER_PERMISSIONS_H_ */
+
+/*----------------------------------------------------------------------------*/
diff --git a/src/eplugin/e-kolab-freebusy.c b/src/eplugin/e-kolab-freebusy.c
new file mode 100644
index 0000000..c24c6e2
--- /dev/null
+++ b/src/eplugin/e-kolab-freebusy.c
@@ -0,0 +1,49 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
+/***************************************************************************
+ *            e-kolab-freebusy.c
+ *
+ *  Fri Feb 10 11:36:05 2012
+ *  Copyright  2012  Christian Hilberg
+ *  <hilberg kernelconcepts de>
+ *
+ ****************************************************************************/
+
+/*
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301,  USA
+ */
+
+/*----------------------------------------------------------------------------*/
+
+#include <config.h>
+
+#include "e-kolab-freebusy.h"
+
+/*----------------------------------------------------------------------------*/
+/* internal statics (non-UI) */
+
+
+/*----------------------------------------------------------------------------*/
+/* internal statics (UI) */
+
+
+/*----------------------------------------------------------------------------*/
+/* API functions (non-UI) */
+
+
+/*----------------------------------------------------------------------------*/
+/* API functions (UI) */
+
+
+/*----------------------------------------------------------------------------*/
diff --git a/src/eplugin/e-kolab-freebusy.h b/src/eplugin/e-kolab-freebusy.h
new file mode 100644
index 0000000..d849bd9
--- /dev/null
+++ b/src/eplugin/e-kolab-freebusy.h
@@ -0,0 +1,44 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
+/***************************************************************************
+ *            e-kolab-freebusy.h
+ *
+ *  Fri Feb 10 11:35:05 2012
+ *  Copyright  2012  Christian Hilberg
+ *  <hilberg kernelconcepts de>
+ *
+ ****************************************************************************/
+
+/*
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301,  USA
+ */
+
+/*----------------------------------------------------------------------------*/
+
+#ifndef _E_KOLAB_FREEBUSY_H_
+#define _E_KOLAB_FREEBUSY_H_
+
+/*----------------------------------------------------------------------------*/
+
+#include <glib.h>
+#include <gtk/gtk.h>
+
+/*----------------------------------------------------------------------------*/
+
+
+/*----------------------------------------------------------------------------*/
+
+#endif /* _E_KOLAB_FREEBUSY_H_ */
+
+/*----------------------------------------------------------------------------*/



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