blob: 077d2978c7859c78ae82946ae3996a2bcd23ae80 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
*
* This library 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.
*
* This library 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 library. If not, see <http://www.gnu.org/licenses/>.
*
* Authors: Chris Toshok (toshok@ximian.com)
*/
#include "evolution-data-server-config.h"
#include "e-cal-backend-http.h"
#define FACTORY_NAME "webcal"
typedef ECalBackendFactory ECalBackendHttpEventsFactory;
typedef ECalBackendFactoryClass ECalBackendHttpEventsFactoryClass;
typedef ECalBackendFactory ECalBackendHttpJournalFactory;
typedef ECalBackendFactoryClass ECalBackendHttpJournalFactoryClass;
typedef ECalBackendFactory ECalBackendHttpTodosFactory;
typedef ECalBackendFactoryClass ECalBackendHttpTodosFactoryClass;
static EModule *e_module;
/* Module Entry Points */
void e_module_load (GTypeModule *type_module);
void e_module_unload (GTypeModule *type_module);
/* Forward Declarations */
GType e_cal_backend_http_events_factory_get_type (void);
GType e_cal_backend_http_journal_factory_get_type (void);
GType e_cal_backend_http_todos_factory_get_type (void);
G_DEFINE_DYNAMIC_TYPE (
ECalBackendHttpEventsFactory,
e_cal_backend_http_events_factory,
E_TYPE_CAL_BACKEND_FACTORY)
G_DEFINE_DYNAMIC_TYPE (
ECalBackendHttpJournalFactory,
e_cal_backend_http_journal_factory,
E_TYPE_CAL_BACKEND_FACTORY)
G_DEFINE_DYNAMIC_TYPE (
ECalBackendHttpTodosFactory,
e_cal_backend_http_todos_factory,
E_TYPE_CAL_BACKEND_FACTORY)
static void
e_cal_backend_http_events_factory_class_init (ECalBackendFactoryClass *class)
{
EBackendFactoryClass *backend_factory_class;
backend_factory_class = E_BACKEND_FACTORY_CLASS (class);
backend_factory_class->e_module = e_module;
backend_factory_class->share_subprocess = TRUE;
class->factory_name = FACTORY_NAME;
class->component_kind = I_CAL_VEVENT_COMPONENT;
class->backend_type = E_TYPE_CAL_BACKEND_HTTP;
}
static void
e_cal_backend_http_events_factory_class_finalize (ECalBackendFactoryClass *class)
{
}
static void
e_cal_backend_http_events_factory_init (ECalBackendFactory *factory)
{
}
static void
e_cal_backend_http_journal_factory_class_init (ECalBackendFactoryClass *class)
{
EBackendFactoryClass *backend_factory_class;
backend_factory_class = E_BACKEND_FACTORY_CLASS (class);
backend_factory_class->e_module = e_module;
backend_factory_class->share_subprocess = TRUE;
class->factory_name = FACTORY_NAME;
class->component_kind = I_CAL_VJOURNAL_COMPONENT;
class->backend_type = E_TYPE_CAL_BACKEND_HTTP;
}
static void
e_cal_backend_http_journal_factory_class_finalize (ECalBackendFactoryClass *class)
{
}
static void
e_cal_backend_http_journal_factory_init (ECalBackendFactory *factory)
{
}
static void
e_cal_backend_http_todos_factory_class_init (ECalBackendFactoryClass *class)
{
EBackendFactoryClass *backend_factory_class;
backend_factory_class = E_BACKEND_FACTORY_CLASS (class);
backend_factory_class->e_module = e_module;
backend_factory_class->share_subprocess = TRUE;
class->factory_name = FACTORY_NAME;
class->component_kind = I_CAL_VTODO_COMPONENT;
class->backend_type = E_TYPE_CAL_BACKEND_HTTP;
}
static void
e_cal_backend_http_todos_factory_class_finalize (ECalBackendFactoryClass *class)
{
}
static void
e_cal_backend_http_todos_factory_init (ECalBackendFactory *factory)
{
}
G_MODULE_EXPORT void
e_module_load (GTypeModule *type_module)
{
e_module = E_MODULE (type_module);
e_cal_backend_http_events_factory_register_type (type_module);
e_cal_backend_http_journal_factory_register_type (type_module);
e_cal_backend_http_todos_factory_register_type (type_module);
}
G_MODULE_EXPORT void
e_module_unload (GTypeModule *type_module)
{
e_module = NULL;
}
|