[evolution-kolab] Stub in ESourceConfigBackends for address books and calendars.



commit 05d6360abfe2b2fb22686dc6db5fffdc6388d047
Author: Matthew Barnes <mbarnes redhat com>
Date:   Fri Jul 6 10:50:04 2012 -0400

    Stub in ESourceConfigBackends for address books and calendars.
    
    Just placeholders until I get the missing E-D-S infrastructure done.

 src/configuration/Makefile.am                  |    4 ++
 src/configuration/e-book-config-kolab.c        |   57 +++++++++++++++++++++
 src/configuration/e-book-config-kolab.h        |   63 ++++++++++++++++++++++++
 src/configuration/e-cal-config-kolab.c         |   57 +++++++++++++++++++++
 src/configuration/e-cal-config-kolab.h         |   63 ++++++++++++++++++++++++
 src/configuration/module-kolab-configuration.c |    4 ++
 6 files changed, 248 insertions(+), 0 deletions(-)
---
diff --git a/src/configuration/Makefile.am b/src/configuration/Makefile.am
index e1c4bc8..64599c5 100644
--- a/src/configuration/Makefile.am
+++ b/src/configuration/Makefile.am
@@ -13,6 +13,10 @@ module_kolab_configuration_la_CPPFLAGS = \
 
 module_kolab_configuration_la_SOURCES = \
 	module-kolab-configuration.c \
+	e-cal-config-kolab.c \
+	e-cal-config-kolab.h \
+	e-book-config-kolab.c \
+	e-book-config-kolab.h \
 	e-mail-config-kolab-backend.c \
 	e-mail-config-kolab-backend.h \
 	$(NULL)
diff --git a/src/configuration/e-book-config-kolab.c b/src/configuration/e-book-config-kolab.c
new file mode 100644
index 0000000..fa3b7c4
--- /dev/null
+++ b/src/configuration/e-book-config-kolab.c
@@ -0,0 +1,57 @@
+/*
+ * 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 "e-book-config-kolab.h"
+
+#include <misc/e-book-source-config.h>
+
+G_DEFINE_DYNAMIC_TYPE (
+	EBookConfigKolab,
+	e_book_config_kolab,
+	E_TYPE_SOURCE_CONFIG_BACKEND)
+
+static void
+e_book_config_kolab_class_init (EBookConfigKolabClass *class)
+{
+	EExtensionClass *extension_class;
+	ESourceConfigBackendClass *backend_class;
+
+	extension_class = E_EXTENSION_CLASS (class);
+	extension_class->extensible_type = E_TYPE_BOOK_SOURCE_CONFIG;
+
+	backend_class = E_SOURCE_CONFIG_BACKEND_CLASS (class);
+	backend_class->backend_name = "kolab";
+}
+
+static void
+e_book_config_kolab_class_finalize (EBookConfigKolabClass *class)
+{
+}
+
+static void
+e_book_config_kolab_init (EBookConfigKolab *backend)
+{
+}
+
+void
+e_book_config_kolab_type_register (GTypeModule *type_module)
+{
+	/* XXX G_DEFINE_DYNAMIC_TYPE declares a static type registration
+	 *     function, so we have to wrap it with a public function in
+	 *     order to register types from a separate compilation unit. */
+	e_book_config_kolab_register_type (type_module);
+}
+
diff --git a/src/configuration/e-book-config-kolab.h b/src/configuration/e-book-config-kolab.h
new file mode 100644
index 0000000..56ce94b
--- /dev/null
+++ b/src/configuration/e-book-config-kolab.h
@@ -0,0 +1,63 @@
+/*
+ * 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_BOOK_CONFIG_KOLAB_H
+#define E_BOOK_CONFIG_KOLAB_H
+
+#include <misc/e-source-config-backend.h>
+
+/* Standard GObject macros */
+#define E_TYPE_BOOK_CONFIG_KOLAB \
+	(e_book_config_kolab_get_type ())
+#define E_BOOK_CONFIG_KOLAB(obj) \
+	(G_TYPE_CHECK_INSTANCE_CAST \
+	((obj), E_TYPE_BOOK_CONFIG_KOLAB, EBookConfigKolab))
+#define E_BOOK_CONFIG_KOLAB_CLASS(cls) \
+	(G_TYPE_CHECK_CLASS_CAST \
+	((cls), E_TYPE_BOOK_CONFIG_KOLAB, EBookConfigKolabClass))
+#define E_IS_BOOK_CONFIG_KOLAB(obj) \
+	(G_TYPE_CHECK_INSTANCE_TYPE \
+	((obj), E_TYPE_BOOK_CONFIG_KOLAB))
+#define E_IS_BOOK_CONFIG_KOLAB_CLASS(clas) \
+	(G_TYPE_CHECK_CLASS_TYPE \
+	((cls), E_TYPE_BOOK_CONFIG_KOLAB))
+#define E_BOOK_CONFIG_KOLAB_GET_CLASS(obj) \
+	(G_TYPE_INSTANCE_GET_CLASS \
+	((obj), E_TYPE_BOOK_CONFIG_KOLAB, EBookConfigKolabClass))
+
+G_BEGIN_DECLS
+
+typedef struct _EBookConfigKolab EBookConfigKolab;
+typedef struct _EBookConfigKolabClass EBookConfigKolabClass;
+typedef struct _EBookConfigKolabPrivate EBookConfigKolabPrivate;
+
+struct _EBookConfigKolab {
+	ESourceConfigBackend parent;
+	EBookConfigKolabPrivate *priv;
+};
+
+struct _EBookConfigKolabClass {
+	ESourceConfigBackendClass parent_class;
+};
+
+GType		e_book_config_kolab_get_type	(void) G_GNUC_CONST;
+void		e_book_config_kolab_type_register
+						(GTypeModule *type_module);
+
+G_END_DECLS
+
+#endif /* E_BOOK_CONFIG_KOLAB_H */
+
diff --git a/src/configuration/e-cal-config-kolab.c b/src/configuration/e-cal-config-kolab.c
new file mode 100644
index 0000000..db89c51
--- /dev/null
+++ b/src/configuration/e-cal-config-kolab.c
@@ -0,0 +1,57 @@
+/*
+ * 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 "e-cal-config-kolab.h"
+
+#include <misc/e-cal-source-config.h>
+
+G_DEFINE_DYNAMIC_TYPE (
+	ECalConfigKolab,
+	e_cal_config_kolab,
+	E_TYPE_SOURCE_CONFIG_BACKEND)
+
+static void
+e_cal_config_kolab_class_init (ECalConfigKolabClass *class)
+{
+	EExtensionClass *extension_class;
+	ESourceConfigBackendClass *backend_class;
+
+	extension_class = E_EXTENSION_CLASS (class);
+	extension_class->extensible_type = E_TYPE_CAL_SOURCE_CONFIG;
+
+	backend_class = E_SOURCE_CONFIG_BACKEND_CLASS (class);
+	backend_class->backend_name = "ews";
+}
+
+static void
+e_cal_config_kolab_class_finalize (ECalConfigKolabClass *class)
+{
+}
+
+static void
+e_cal_config_kolab_init (ECalConfigKolab *backend)
+{
+}
+
+void
+e_cal_config_kolab_type_register (GTypeModule *type_module)
+{
+	/* XXX G_DEFINE_DYNAMIC_TYPE declares a static type registration
+	 *     function, so we have to wrap it with a public function in
+	 *     order to register types from a separate compilation unit. */
+	e_cal_config_kolab_register_type (type_module);
+}
+
diff --git a/src/configuration/e-cal-config-kolab.h b/src/configuration/e-cal-config-kolab.h
new file mode 100644
index 0000000..f15f50e
--- /dev/null
+++ b/src/configuration/e-cal-config-kolab.h
@@ -0,0 +1,63 @@
+/*
+ * 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_CAL_CONFIG_KOLAB_H
+#define E_CAL_CONFIG_KOLAB_H
+
+#include <misc/e-source-config-backend.h>
+
+/* Standard GObject macros */
+#define E_TYPE_CAL_CONFIG_KOLAB \
+	(e_cal_config_kolab_get_type ())
+#define E_CAL_CONFIG_KOLAB(obj) \
+	(G_TYPE_CHECK_INSTANCE_CAST \
+	((obj), E_TYPE_CAL_CONFIG_KOLAB, ECalConfigKolab))
+#define E_CAL_CONFIG_KOLAB_CLASS(cls) \
+	(G_TYPE_CHECK_CLASS_CAST \
+	((cls), E_TYPE_CAL_CONFIG_KOLAB, ECalConfigKolabClass))
+#define E_IS_CAL_CONFIG_KOLAB(obj) \
+	(G_TYPE_CHECK_INSTANCE_TYPE \
+	((obj), E_TYPE_CAL_CONFIG_KOLAB))
+#define E_IS_CAL_CONFIG_KOLAB_CLASS(cls) \
+	(G_TYPE_CHECK_CLASS_TYPE \
+	((cls), E_TYPE_CAL_CONFIG_KOLAB))
+#define E_CAL_CONFIG_KOLAB_GET_CLASS(obj) \
+	(G_TYPE_INSTANCE_GET_CLASS \
+	((obj), E_TYPE_CAL_CONFIG_KOLAB, ECalConfigKolabClass))
+
+G_BEGIN_DECLS
+
+typedef struct _ECalConfigKolab ECalConfigKolab;
+typedef struct _ECalConfigKolabClass ECalConfigKolabClass;
+typedef struct _ECalConfigKolabPrivate ECalConfigKolabPrivate;
+
+struct _ECalConfigKolab {
+	ESourceConfigBackend parent;
+	ECalConfigKolabPrivate *priv;
+};
+
+struct _ECalConfigKolabClass {
+	ESourceConfigBackendClass parent_class;
+};
+
+GType		e_cal_config_kolab_get_type	(void) G_GNUC_CONST;
+void		e_cal_config_kolab_type_register
+						(GTypeModule *type_module);
+
+G_END_DECLS
+
+#endif /* E_CAL_CONFIG_KOLAB_H */
+
diff --git a/src/configuration/module-kolab-configuration.c b/src/configuration/module-kolab-configuration.c
index 62362b2..75d3966 100644
--- a/src/configuration/module-kolab-configuration.c
+++ b/src/configuration/module-kolab-configuration.c
@@ -14,6 +14,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301,  USA
  */
 
+#include "e-cal-config-kolab.h"
+#include "e-book-config-kolab.h"
 #include "e-mail-config-kolab-backend.h"
 
 /* Module Entry Points */
@@ -23,6 +25,8 @@ void e_module_unload (GTypeModule *type_module);
 G_MODULE_EXPORT void
 e_module_load (GTypeModule *type_module)
 {
+	e_cal_config_kolab_type_register (type_module);
+	e_book_config_kolab_type_register (type_module);
 	e_mail_config_kolab_backend_type_register (type_module);
 }
 



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