~ubuntu-branches/ubuntu/wily/evolution-data-server/wily

« back to all changes in this revision

Viewing changes to calendar/backends/caldav/e-cal-backend-caldav-factory.c

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2015-07-20 13:34:59 UTC
  • mfrom: (1.1.126) (1.2.48 sid)
  • Revision ID: package-import@ubuntu.com-20150720133459-g6y46hnu5ewtoz08
Tags: 3.16.4-0ubuntu2
debian/patches/0001-Bug-752373-Monthly-events-do-not-recur-correctly.patch:
Cherry-pick patch from upstream to fix events not recurring correctly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * Evolution calendar - caldav backend factory
3
3
 *
4
 
 * This library is free software you can redistribute it and/or modify it
 
4
 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
 
5
 *
 
6
 * This library is free software: you can redistribute it and/or modify it
5
7
 * under the terms of the GNU Lesser General Public License as published by
6
8
 * the Free Software Foundation.
7
9
 *
8
10
 * This library is distributed in the hope that it will be useful, but
9
11
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10
 
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 
12
 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
11
13
 * for more details.
12
14
 *
13
15
 * You should have received a copy of the GNU Lesser General Public License
14
 
 * along with this library; if not, see <http://www.gnu.org/licenses/>.
15
 
 *
16
 
 *
17
 
 * Authors:
18
 
 *              Christian Kellner <gicmo@gnome.org>
19
 
 *
20
 
 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
21
 
 *
 
16
 * along with this library. If not, see <http://www.gnu.org/licenses/>.
 
17
 *
 
18
 * Authors: Christian Kellner <gicmo@gnome.org>
22
19
 */
23
20
 
24
21
#include <config.h>
36
33
typedef ECalBackendFactory ECalBackendCalDAVTodosFactory;
37
34
typedef ECalBackendFactoryClass ECalBackendCalDAVTodosFactoryClass;
38
35
 
 
36
static EModule *e_module;
 
37
 
39
38
/* Module Entry Points */
40
39
void e_module_load (GTypeModule *type_module);
41
40
void e_module_unload (GTypeModule *type_module);
63
62
static void
64
63
e_cal_backend_caldav_events_factory_class_init (ECalBackendFactoryClass *class)
65
64
{
 
65
        EBackendFactoryClass *backend_factory_class;
 
66
 
 
67
        backend_factory_class = E_BACKEND_FACTORY_CLASS (class);
 
68
        backend_factory_class->e_module = e_module;
 
69
        backend_factory_class->share_subprocess = TRUE;
 
70
 
66
71
        class->factory_name = FACTORY_NAME;
67
72
        class->component_kind = ICAL_VEVENT_COMPONENT;
68
73
        class->backend_type = E_TYPE_CAL_BACKEND_CALDAV;
81
86
static void
82
87
e_cal_backend_caldav_journal_factory_class_init (ECalBackendFactoryClass *class)
83
88
{
 
89
        EBackendFactoryClass *backend_factory_class;
 
90
 
 
91
        backend_factory_class = E_BACKEND_FACTORY_CLASS (class);
 
92
        backend_factory_class->e_module = e_module;
 
93
        backend_factory_class->share_subprocess = TRUE;
 
94
 
84
95
        class->factory_name = FACTORY_NAME;
85
96
        class->component_kind = ICAL_VJOURNAL_COMPONENT;
86
97
        class->backend_type = E_TYPE_CAL_BACKEND_CALDAV;
99
110
static void
100
111
e_cal_backend_caldav_todos_factory_class_init (ECalBackendFactoryClass *class)
101
112
{
 
113
        EBackendFactoryClass *backend_factory_class;
 
114
 
 
115
        backend_factory_class = E_BACKEND_FACTORY_CLASS (class);
 
116
        backend_factory_class->e_module = e_module;
 
117
        backend_factory_class->share_subprocess = TRUE;
 
118
 
102
119
        class->factory_name = FACTORY_NAME;
103
120
        class->component_kind = ICAL_VTODO_COMPONENT;
104
121
        class->backend_type = E_TYPE_CAL_BACKEND_CALDAV;
117
134
G_MODULE_EXPORT void
118
135
e_module_load (GTypeModule *type_module)
119
136
{
 
137
        e_module = E_MODULE (type_module);
 
138
 
120
139
        e_cal_backend_caldav_events_factory_register_type (type_module);
121
140
        e_cal_backend_caldav_journal_factory_register_type (type_module);
122
141
        e_cal_backend_caldav_todos_factory_register_type (type_module);
125
144
G_MODULE_EXPORT void
126
145
e_module_unload (GTypeModule *type_module)
127
146
{
 
147
        e_module = NULL;
128
148
}
129
149