Codebase list empathy / b73b93e
Move account plugins to their own dir https://bugzilla.gnome.org/show_bug.cgi?id=683415 Guillaume Desmottes 11 years ago
68 changed file(s) with 2637 addition(s) and 2640 deletion(s). Raw diff Collapse all Expand all
634634 ubuntu-online-accounts/Makefile
635635 ubuntu-online-accounts/mc-plugin/Makefile
636636 ubuntu-online-accounts/cc-plugins/Makefile
637 ubuntu-online-accounts/cc-plugins/account-plugins/Makefile
637638 ubuntu-online-accounts/cc-plugins/providers/Makefile
638639 ubuntu-online-accounts/cc-plugins/services/Makefile
639640 ubuntu-online-accounts/cc-plugins/app-plugin/Makefile
0 # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 # Do NOT edit manually
2 SUBDIRS = providers services app-plugin
3
4 plugindir = $(ACCOUNTS_PROVIDER_PLUGIN_DIR)
5
6 INCLUDES = \
7 -I$(top_builddir) \
8 -I$(top_srcdir) \
9 -DLOCALEDIR=\""$(datadir)/locale"\" \
10 $(UOA_CFLAGS) \
11 $(WARN_CFLAGS) \
12 $(ERROR_CFLAGS) \
13 $(DISABLE_DEPRECATED) \
14 $(EMPATHY_CFLAGS)
15
16 plugin_LTLIBRARIES = \
17 libaim.la\
18 libgadugadu.la\
19 libgroupwise.la\
20 libicq.la\
21 libirc.la\
22 libjabber.la\
23 libmxit.la\
24 libmyspace.la\
25 libsip.la\
26 liblocal-xmpp.la\
27 libsametime.la\
28 libyahoojp.la\
29 libyahoo.la\
30 libzephyr.la \
31 $(NULL)
32
33 libaim_la_SOURCES = \
34 empathy-accounts-plugin.c \
35 empathy-accounts-plugin.h \
36 empathy-accounts-plugin-aim.c \
37 empathy-accounts-plugin-aim.h \
38 empathy-accounts-plugin-widget.c \
39 empathy-accounts-plugin-widget.h
40 libaim_la_LDFLAGS = -module -avoid-version
41 libaim_la_LIBADD = \
42 $(UOA_LIBS) \
43 $(top_builddir)/libempathy/libempathy.la \
44 $(top_builddir)/libempathy-gtk/libempathy-gtk.la
45
46
47 libgadugadu_la_SOURCES = \
48 empathy-accounts-plugin.c \
49 empathy-accounts-plugin.h \
50 empathy-accounts-plugin-gadugadu.c \
51 empathy-accounts-plugin-gadugadu.h \
52 empathy-accounts-plugin-widget.c \
53 empathy-accounts-plugin-widget.h
54 libgadugadu_la_LDFLAGS = -module -avoid-version
55 libgadugadu_la_LIBADD = \
56 $(UOA_LIBS) \
57 $(top_builddir)/libempathy/libempathy.la \
58 $(top_builddir)/libempathy-gtk/libempathy-gtk.la
59
60
61 libgroupwise_la_SOURCES = \
62 empathy-accounts-plugin.c \
63 empathy-accounts-plugin.h \
64 empathy-accounts-plugin-groupwise.c \
65 empathy-accounts-plugin-groupwise.h \
66 empathy-accounts-plugin-widget.c \
67 empathy-accounts-plugin-widget.h
68 libgroupwise_la_LDFLAGS = -module -avoid-version
69 libgroupwise_la_LIBADD = \
70 $(UOA_LIBS) \
71 $(top_builddir)/libempathy/libempathy.la \
72 $(top_builddir)/libempathy-gtk/libempathy-gtk.la
73
74
75 libicq_la_SOURCES = \
76 empathy-accounts-plugin.c \
77 empathy-accounts-plugin.h \
78 empathy-accounts-plugin-icq.c \
79 empathy-accounts-plugin-icq.h \
80 empathy-accounts-plugin-widget.c \
81 empathy-accounts-plugin-widget.h
82 libicq_la_LDFLAGS = -module -avoid-version
83 libicq_la_LIBADD = \
84 $(UOA_LIBS) \
85 $(top_builddir)/libempathy/libempathy.la \
86 $(top_builddir)/libempathy-gtk/libempathy-gtk.la
87
88
89 libirc_la_SOURCES = \
90 empathy-accounts-plugin.c \
91 empathy-accounts-plugin.h \
92 empathy-accounts-plugin-irc.c \
93 empathy-accounts-plugin-irc.h \
94 empathy-accounts-plugin-widget.c \
95 empathy-accounts-plugin-widget.h
96 libirc_la_LDFLAGS = -module -avoid-version
97 libirc_la_LIBADD = \
98 $(UOA_LIBS) \
99 $(top_builddir)/libempathy/libempathy.la \
100 $(top_builddir)/libempathy-gtk/libempathy-gtk.la
101
102
103 libjabber_la_SOURCES = \
104 empathy-accounts-plugin.c \
105 empathy-accounts-plugin.h \
106 empathy-accounts-plugin-jabber.c \
107 empathy-accounts-plugin-jabber.h \
108 empathy-accounts-plugin-widget.c \
109 empathy-accounts-plugin-widget.h
110 libjabber_la_LDFLAGS = -module -avoid-version
111 libjabber_la_LIBADD = \
112 $(UOA_LIBS) \
113 $(top_builddir)/libempathy/libempathy.la \
114 $(top_builddir)/libempathy-gtk/libempathy-gtk.la
115
116
117 libmxit_la_SOURCES = \
118 empathy-accounts-plugin.c \
119 empathy-accounts-plugin.h \
120 empathy-accounts-plugin-mxit.c \
121 empathy-accounts-plugin-mxit.h \
122 empathy-accounts-plugin-widget.c \
123 empathy-accounts-plugin-widget.h
124 libmxit_la_LDFLAGS = -module -avoid-version
125 libmxit_la_LIBADD = \
126 $(UOA_LIBS) \
127 $(top_builddir)/libempathy/libempathy.la \
128 $(top_builddir)/libempathy-gtk/libempathy-gtk.la
129
130
131 libmyspace_la_SOURCES = \
132 empathy-accounts-plugin.c \
133 empathy-accounts-plugin.h \
134 empathy-accounts-plugin-myspace.c \
135 empathy-accounts-plugin-myspace.h \
136 empathy-accounts-plugin-widget.c \
137 empathy-accounts-plugin-widget.h
138 libmyspace_la_LDFLAGS = -module -avoid-version
139 libmyspace_la_LIBADD = \
140 $(UOA_LIBS) \
141 $(top_builddir)/libempathy/libempathy.la \
142 $(top_builddir)/libempathy-gtk/libempathy-gtk.la
143
144
145 libsip_la_SOURCES = \
146 empathy-accounts-plugin.c \
147 empathy-accounts-plugin.h \
148 empathy-accounts-plugin-sip.c \
149 empathy-accounts-plugin-sip.h \
150 empathy-accounts-plugin-widget.c \
151 empathy-accounts-plugin-widget.h
152 libsip_la_LDFLAGS = -module -avoid-version
153 libsip_la_LIBADD = \
154 $(UOA_LIBS) \
155 $(top_builddir)/libempathy/libempathy.la \
156 $(top_builddir)/libempathy-gtk/libempathy-gtk.la
157
158
159 liblocal_xmpp_la_SOURCES = \
160 empathy-accounts-plugin.c \
161 empathy-accounts-plugin.h \
162 empathy-accounts-plugin-local-xmpp.c \
163 empathy-accounts-plugin-local-xmpp.h \
164 empathy-accounts-plugin-widget.c \
165 empathy-accounts-plugin-widget.h
166 liblocal_xmpp_la_LDFLAGS = -module -avoid-version
167 liblocal_xmpp_la_LIBADD = \
168 $(UOA_LIBS) \
169 $(top_builddir)/libempathy/libempathy.la \
170 $(top_builddir)/libempathy-gtk/libempathy-gtk.la
171
172
173 libsametime_la_SOURCES = \
174 empathy-accounts-plugin.c \
175 empathy-accounts-plugin.h \
176 empathy-accounts-plugin-sametime.c \
177 empathy-accounts-plugin-sametime.h \
178 empathy-accounts-plugin-widget.c \
179 empathy-accounts-plugin-widget.h
180 libsametime_la_LDFLAGS = -module -avoid-version
181 libsametime_la_LIBADD = \
182 $(UOA_LIBS) \
183 $(top_builddir)/libempathy/libempathy.la \
184 $(top_builddir)/libempathy-gtk/libempathy-gtk.la
185
186
187 libyahoojp_la_SOURCES = \
188 empathy-accounts-plugin.c \
189 empathy-accounts-plugin.h \
190 empathy-accounts-plugin-yahoojp.c \
191 empathy-accounts-plugin-yahoojp.h \
192 empathy-accounts-plugin-widget.c \
193 empathy-accounts-plugin-widget.h
194 libyahoojp_la_LDFLAGS = -module -avoid-version
195 libyahoojp_la_LIBADD = \
196 $(UOA_LIBS) \
197 $(top_builddir)/libempathy/libempathy.la \
198 $(top_builddir)/libempathy-gtk/libempathy-gtk.la
199
200
201 libyahoo_la_SOURCES = \
202 empathy-accounts-plugin.c \
203 empathy-accounts-plugin.h \
204 empathy-accounts-plugin-yahoo.c \
205 empathy-accounts-plugin-yahoo.h \
206 empathy-accounts-plugin-widget.c \
207 empathy-accounts-plugin-widget.h
208 libyahoo_la_LDFLAGS = -module -avoid-version
209 libyahoo_la_LIBADD = \
210 $(UOA_LIBS) \
211 $(top_builddir)/libempathy/libempathy.la \
212 $(top_builddir)/libempathy-gtk/libempathy-gtk.la
213
214
215 libzephyr_la_SOURCES = \
216 empathy-accounts-plugin.c \
217 empathy-accounts-plugin.h \
218 empathy-accounts-plugin-zephyr.c \
219 empathy-accounts-plugin-zephyr.h \
220 empathy-accounts-plugin-widget.c \
221 empathy-accounts-plugin-widget.h
222 libzephyr_la_LDFLAGS = -module -avoid-version
223 libzephyr_la_LIBADD = \
224 $(UOA_LIBS) \
225 $(top_builddir)/libempathy/libempathy.la \
226 $(top_builddir)/libempathy-gtk/libempathy-gtk.la
0 SUBDIRS = account-plugins providers services app-plugin
0 # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 # Do NOT edit manually
2 plugindir = $(ACCOUNTS_PROVIDER_PLUGIN_DIR)
3
4 INCLUDES = \
5 -I$(top_builddir) \
6 -I$(top_srcdir) \
7 -DLOCALEDIR=\""$(datadir)/locale"\" \
8 $(UOA_CFLAGS) \
9 $(WARN_CFLAGS) \
10 $(ERROR_CFLAGS) \
11 $(DISABLE_DEPRECATED) \
12 $(EMPATHY_CFLAGS)
13
14 plugin_LTLIBRARIES = \
15 libaim.la\
16 libgadugadu.la\
17 libgroupwise.la\
18 libicq.la\
19 libirc.la\
20 libjabber.la\
21 libmxit.la\
22 libmyspace.la\
23 libsip.la\
24 liblocal-xmpp.la\
25 libsametime.la\
26 libyahoojp.la\
27 libyahoo.la\
28 libzephyr.la \
29 $(NULL)
30
31 libaim_la_SOURCES = \
32 empathy-accounts-plugin.c \
33 empathy-accounts-plugin.h \
34 empathy-accounts-plugin-aim.c \
35 empathy-accounts-plugin-aim.h \
36 empathy-accounts-plugin-widget.c \
37 empathy-accounts-plugin-widget.h
38 libaim_la_LDFLAGS = -module -avoid-version
39 libaim_la_LIBADD = \
40 $(UOA_LIBS) \
41 $(top_builddir)/libempathy/libempathy.la \
42 $(top_builddir)/libempathy-gtk/libempathy-gtk.la
43
44
45 libgadugadu_la_SOURCES = \
46 empathy-accounts-plugin.c \
47 empathy-accounts-plugin.h \
48 empathy-accounts-plugin-gadugadu.c \
49 empathy-accounts-plugin-gadugadu.h \
50 empathy-accounts-plugin-widget.c \
51 empathy-accounts-plugin-widget.h
52 libgadugadu_la_LDFLAGS = -module -avoid-version
53 libgadugadu_la_LIBADD = \
54 $(UOA_LIBS) \
55 $(top_builddir)/libempathy/libempathy.la \
56 $(top_builddir)/libempathy-gtk/libempathy-gtk.la
57
58
59 libgroupwise_la_SOURCES = \
60 empathy-accounts-plugin.c \
61 empathy-accounts-plugin.h \
62 empathy-accounts-plugin-groupwise.c \
63 empathy-accounts-plugin-groupwise.h \
64 empathy-accounts-plugin-widget.c \
65 empathy-accounts-plugin-widget.h
66 libgroupwise_la_LDFLAGS = -module -avoid-version
67 libgroupwise_la_LIBADD = \
68 $(UOA_LIBS) \
69 $(top_builddir)/libempathy/libempathy.la \
70 $(top_builddir)/libempathy-gtk/libempathy-gtk.la
71
72
73 libicq_la_SOURCES = \
74 empathy-accounts-plugin.c \
75 empathy-accounts-plugin.h \
76 empathy-accounts-plugin-icq.c \
77 empathy-accounts-plugin-icq.h \
78 empathy-accounts-plugin-widget.c \
79 empathy-accounts-plugin-widget.h
80 libicq_la_LDFLAGS = -module -avoid-version
81 libicq_la_LIBADD = \
82 $(UOA_LIBS) \
83 $(top_builddir)/libempathy/libempathy.la \
84 $(top_builddir)/libempathy-gtk/libempathy-gtk.la
85
86
87 libirc_la_SOURCES = \
88 empathy-accounts-plugin.c \
89 empathy-accounts-plugin.h \
90 empathy-accounts-plugin-irc.c \
91 empathy-accounts-plugin-irc.h \
92 empathy-accounts-plugin-widget.c \
93 empathy-accounts-plugin-widget.h
94 libirc_la_LDFLAGS = -module -avoid-version
95 libirc_la_LIBADD = \
96 $(UOA_LIBS) \
97 $(top_builddir)/libempathy/libempathy.la \
98 $(top_builddir)/libempathy-gtk/libempathy-gtk.la
99
100
101 libjabber_la_SOURCES = \
102 empathy-accounts-plugin.c \
103 empathy-accounts-plugin.h \
104 empathy-accounts-plugin-jabber.c \
105 empathy-accounts-plugin-jabber.h \
106 empathy-accounts-plugin-widget.c \
107 empathy-accounts-plugin-widget.h
108 libjabber_la_LDFLAGS = -module -avoid-version
109 libjabber_la_LIBADD = \
110 $(UOA_LIBS) \
111 $(top_builddir)/libempathy/libempathy.la \
112 $(top_builddir)/libempathy-gtk/libempathy-gtk.la
113
114
115 libmxit_la_SOURCES = \
116 empathy-accounts-plugin.c \
117 empathy-accounts-plugin.h \
118 empathy-accounts-plugin-mxit.c \
119 empathy-accounts-plugin-mxit.h \
120 empathy-accounts-plugin-widget.c \
121 empathy-accounts-plugin-widget.h
122 libmxit_la_LDFLAGS = -module -avoid-version
123 libmxit_la_LIBADD = \
124 $(UOA_LIBS) \
125 $(top_builddir)/libempathy/libempathy.la \
126 $(top_builddir)/libempathy-gtk/libempathy-gtk.la
127
128
129 libmyspace_la_SOURCES = \
130 empathy-accounts-plugin.c \
131 empathy-accounts-plugin.h \
132 empathy-accounts-plugin-myspace.c \
133 empathy-accounts-plugin-myspace.h \
134 empathy-accounts-plugin-widget.c \
135 empathy-accounts-plugin-widget.h
136 libmyspace_la_LDFLAGS = -module -avoid-version
137 libmyspace_la_LIBADD = \
138 $(UOA_LIBS) \
139 $(top_builddir)/libempathy/libempathy.la \
140 $(top_builddir)/libempathy-gtk/libempathy-gtk.la
141
142
143 libsip_la_SOURCES = \
144 empathy-accounts-plugin.c \
145 empathy-accounts-plugin.h \
146 empathy-accounts-plugin-sip.c \
147 empathy-accounts-plugin-sip.h \
148 empathy-accounts-plugin-widget.c \
149 empathy-accounts-plugin-widget.h
150 libsip_la_LDFLAGS = -module -avoid-version
151 libsip_la_LIBADD = \
152 $(UOA_LIBS) \
153 $(top_builddir)/libempathy/libempathy.la \
154 $(top_builddir)/libempathy-gtk/libempathy-gtk.la
155
156
157 liblocal_xmpp_la_SOURCES = \
158 empathy-accounts-plugin.c \
159 empathy-accounts-plugin.h \
160 empathy-accounts-plugin-local-xmpp.c \
161 empathy-accounts-plugin-local-xmpp.h \
162 empathy-accounts-plugin-widget.c \
163 empathy-accounts-plugin-widget.h
164 liblocal_xmpp_la_LDFLAGS = -module -avoid-version
165 liblocal_xmpp_la_LIBADD = \
166 $(UOA_LIBS) \
167 $(top_builddir)/libempathy/libempathy.la \
168 $(top_builddir)/libempathy-gtk/libempathy-gtk.la
169
170
171 libsametime_la_SOURCES = \
172 empathy-accounts-plugin.c \
173 empathy-accounts-plugin.h \
174 empathy-accounts-plugin-sametime.c \
175 empathy-accounts-plugin-sametime.h \
176 empathy-accounts-plugin-widget.c \
177 empathy-accounts-plugin-widget.h
178 libsametime_la_LDFLAGS = -module -avoid-version
179 libsametime_la_LIBADD = \
180 $(UOA_LIBS) \
181 $(top_builddir)/libempathy/libempathy.la \
182 $(top_builddir)/libempathy-gtk/libempathy-gtk.la
183
184
185 libyahoojp_la_SOURCES = \
186 empathy-accounts-plugin.c \
187 empathy-accounts-plugin.h \
188 empathy-accounts-plugin-yahoojp.c \
189 empathy-accounts-plugin-yahoojp.h \
190 empathy-accounts-plugin-widget.c \
191 empathy-accounts-plugin-widget.h
192 libyahoojp_la_LDFLAGS = -module -avoid-version
193 libyahoojp_la_LIBADD = \
194 $(UOA_LIBS) \
195 $(top_builddir)/libempathy/libempathy.la \
196 $(top_builddir)/libempathy-gtk/libempathy-gtk.la
197
198
199 libyahoo_la_SOURCES = \
200 empathy-accounts-plugin.c \
201 empathy-accounts-plugin.h \
202 empathy-accounts-plugin-yahoo.c \
203 empathy-accounts-plugin-yahoo.h \
204 empathy-accounts-plugin-widget.c \
205 empathy-accounts-plugin-widget.h
206 libyahoo_la_LDFLAGS = -module -avoid-version
207 libyahoo_la_LIBADD = \
208 $(UOA_LIBS) \
209 $(top_builddir)/libempathy/libempathy.la \
210 $(top_builddir)/libempathy-gtk/libempathy-gtk.la
211
212
213 libzephyr_la_SOURCES = \
214 empathy-accounts-plugin.c \
215 empathy-accounts-plugin.h \
216 empathy-accounts-plugin-zephyr.c \
217 empathy-accounts-plugin-zephyr.h \
218 empathy-accounts-plugin-widget.c \
219 empathy-accounts-plugin-widget.h
220 libzephyr_la_LDFLAGS = -module -avoid-version
221 libzephyr_la_LIBADD = \
222 $(UOA_LIBS) \
223 $(top_builddir)/libempathy/libempathy.la \
224 $(top_builddir)/libempathy-gtk/libempathy-gtk.la
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-aim.c
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #include "config.h"
24
25 #include "empathy-accounts-plugin-aim.h"
26
27 G_DEFINE_TYPE (EmpathyAccountsPluginAim, empathy_accounts_plugin_aim,\
28 EMPATHY_TYPE_ACCOUNTS_PLUGIN)
29
30 static void
31 empathy_accounts_plugin_aim_class_init (
32 EmpathyAccountsPluginAimClass *klass)
33 {
34 }
35
36 static void
37 empathy_accounts_plugin_aim_init (EmpathyAccountsPluginAim *self)
38 {
39 }
40
41 GType
42 ap_module_get_object_type (void)
43 {
44 return EMPATHY_TYPE_ACCOUNTS_PLUGIN_AIM;
45 }
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-aim.h
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23
24 #ifndef __EMPATHY_ACCOUNTS_PLUGIN_AIM_H__
25 #define __EMPATHY_ACCOUNTS_PLUGIN_AIM_H__
26
27 #include "empathy-accounts-plugin.h"
28
29 G_BEGIN_DECLS
30
31 typedef struct _EmpathyAccountsPluginAim EmpathyAccountsPluginAim;
32 typedef struct _EmpathyAccountsPluginAimClass EmpathyAccountsPluginAimClass;
33
34 struct _EmpathyAccountsPluginAimClass
35 {
36 /*<private>*/
37 EmpathyAccountsPluginClass parent_class;
38 };
39
40 struct _EmpathyAccountsPluginAim
41 {
42 /*<private>*/
43 EmpathyAccountsPlugin parent;
44 };
45
46 GType empathy_accounts_plugin_aim_get_type (void);
47
48 /* TYPE MACROS */
49 #define EMPATHY_TYPE_ACCOUNTS_PLUGIN_AIM \
50 (empathy_accounts_plugin_aim_get_type ())
51 #define EMPATHY_ACCOUNTS_PLUGIN_AIM(obj) \
52 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
53 EMPATHY_TYPE_ACCOUNTS_PLUGIN_AIM, \
54 EmpathyAccountsPluginAim))
55 #define EMPATHY_ACCOUNTS_PLUGIN_AIM_CLASS(klass) \
56 (G_TYPE_CHECK_CLASS_CAST((klass), \
57 EMPATHY_TYPE_ACCOUNTS_PLUGIN_AIM, \
58 EmpathyAccountsPluginAimClass))
59 #define EMPATHY_IS_ACCOUNTS_PLUGIN_AIM(obj) \
60 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
61 EMPATHY_TYPE_ACCOUNTS_PLUGIN_AIM))
62 #define EMPATHY_IS_ACCOUNTS_PLUGIN_AIM_CLASS(klass) \
63 (G_TYPE_CHECK_CLASS_TYPE((klass), \
64 EMPATHY_TYPE_ACCOUNTS_PLUGIN_AIM))
65 #define EMPATHY_ACCOUNTS_PLUGIN_AIM_GET_CLASS(obj) \
66 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
67 EMPATHY_TYPE_ACCOUNTS_PLUGIN_AIM, \
68 EmpathyAccountsPluginAimClass))
69
70 GType ap_module_get_object_type (void);
71
72 G_END_DECLS
73
74 #endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_AIM_H__*/
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-gadugadu.c
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #include "config.h"
24
25 #include "empathy-accounts-plugin-gadugadu.h"
26
27 G_DEFINE_TYPE (EmpathyAccountsPluginGadugadu, empathy_accounts_plugin_gadugadu,\
28 EMPATHY_TYPE_ACCOUNTS_PLUGIN)
29
30 static void
31 empathy_accounts_plugin_gadugadu_class_init (
32 EmpathyAccountsPluginGadugaduClass *klass)
33 {
34 }
35
36 static void
37 empathy_accounts_plugin_gadugadu_init (EmpathyAccountsPluginGadugadu *self)
38 {
39 }
40
41 GType
42 ap_module_get_object_type (void)
43 {
44 return EMPATHY_TYPE_ACCOUNTS_PLUGIN_GADUGADU;
45 }
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-gadugadu.h
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23
24 #ifndef __EMPATHY_ACCOUNTS_PLUGIN_GADUGADU_H__
25 #define __EMPATHY_ACCOUNTS_PLUGIN_GADUGADU_H__
26
27 #include "empathy-accounts-plugin.h"
28
29 G_BEGIN_DECLS
30
31 typedef struct _EmpathyAccountsPluginGadugadu EmpathyAccountsPluginGadugadu;
32 typedef struct _EmpathyAccountsPluginGadugaduClass EmpathyAccountsPluginGadugaduClass;
33
34 struct _EmpathyAccountsPluginGadugaduClass
35 {
36 /*<private>*/
37 EmpathyAccountsPluginClass parent_class;
38 };
39
40 struct _EmpathyAccountsPluginGadugadu
41 {
42 /*<private>*/
43 EmpathyAccountsPlugin parent;
44 };
45
46 GType empathy_accounts_plugin_gadugadu_get_type (void);
47
48 /* TYPE MACROS */
49 #define EMPATHY_TYPE_ACCOUNTS_PLUGIN_GADUGADU \
50 (empathy_accounts_plugin_gadugadu_get_type ())
51 #define EMPATHY_ACCOUNTS_PLUGIN_GADUGADU(obj) \
52 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
53 EMPATHY_TYPE_ACCOUNTS_PLUGIN_GADUGADU, \
54 EmpathyAccountsPluginGadugadu))
55 #define EMPATHY_ACCOUNTS_PLUGIN_GADUGADU_CLASS(klass) \
56 (G_TYPE_CHECK_CLASS_CAST((klass), \
57 EMPATHY_TYPE_ACCOUNTS_PLUGIN_GADUGADU, \
58 EmpathyAccountsPluginGadugaduClass))
59 #define EMPATHY_IS_ACCOUNTS_PLUGIN_GADUGADU(obj) \
60 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
61 EMPATHY_TYPE_ACCOUNTS_PLUGIN_GADUGADU))
62 #define EMPATHY_IS_ACCOUNTS_PLUGIN_GADUGADU_CLASS(klass) \
63 (G_TYPE_CHECK_CLASS_TYPE((klass), \
64 EMPATHY_TYPE_ACCOUNTS_PLUGIN_GADUGADU))
65 #define EMPATHY_ACCOUNTS_PLUGIN_GADUGADU_GET_CLASS(obj) \
66 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
67 EMPATHY_TYPE_ACCOUNTS_PLUGIN_GADUGADU, \
68 EmpathyAccountsPluginGadugaduClass))
69
70 GType ap_module_get_object_type (void);
71
72 G_END_DECLS
73
74 #endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_GADUGADU_H__*/
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-groupwise.c
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #include "config.h"
24
25 #include "empathy-accounts-plugin-groupwise.h"
26
27 G_DEFINE_TYPE (EmpathyAccountsPluginGroupwise, empathy_accounts_plugin_groupwise,\
28 EMPATHY_TYPE_ACCOUNTS_PLUGIN)
29
30 static void
31 empathy_accounts_plugin_groupwise_class_init (
32 EmpathyAccountsPluginGroupwiseClass *klass)
33 {
34 }
35
36 static void
37 empathy_accounts_plugin_groupwise_init (EmpathyAccountsPluginGroupwise *self)
38 {
39 }
40
41 GType
42 ap_module_get_object_type (void)
43 {
44 return EMPATHY_TYPE_ACCOUNTS_PLUGIN_GROUPWISE;
45 }
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-groupwise.h
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23
24 #ifndef __EMPATHY_ACCOUNTS_PLUGIN_GROUPWISE_H__
25 #define __EMPATHY_ACCOUNTS_PLUGIN_GROUPWISE_H__
26
27 #include "empathy-accounts-plugin.h"
28
29 G_BEGIN_DECLS
30
31 typedef struct _EmpathyAccountsPluginGroupwise EmpathyAccountsPluginGroupwise;
32 typedef struct _EmpathyAccountsPluginGroupwiseClass EmpathyAccountsPluginGroupwiseClass;
33
34 struct _EmpathyAccountsPluginGroupwiseClass
35 {
36 /*<private>*/
37 EmpathyAccountsPluginClass parent_class;
38 };
39
40 struct _EmpathyAccountsPluginGroupwise
41 {
42 /*<private>*/
43 EmpathyAccountsPlugin parent;
44 };
45
46 GType empathy_accounts_plugin_groupwise_get_type (void);
47
48 /* TYPE MACROS */
49 #define EMPATHY_TYPE_ACCOUNTS_PLUGIN_GROUPWISE \
50 (empathy_accounts_plugin_groupwise_get_type ())
51 #define EMPATHY_ACCOUNTS_PLUGIN_GROUPWISE(obj) \
52 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
53 EMPATHY_TYPE_ACCOUNTS_PLUGIN_GROUPWISE, \
54 EmpathyAccountsPluginGroupwise))
55 #define EMPATHY_ACCOUNTS_PLUGIN_GROUPWISE_CLASS(klass) \
56 (G_TYPE_CHECK_CLASS_CAST((klass), \
57 EMPATHY_TYPE_ACCOUNTS_PLUGIN_GROUPWISE, \
58 EmpathyAccountsPluginGroupwiseClass))
59 #define EMPATHY_IS_ACCOUNTS_PLUGIN_GROUPWISE(obj) \
60 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
61 EMPATHY_TYPE_ACCOUNTS_PLUGIN_GROUPWISE))
62 #define EMPATHY_IS_ACCOUNTS_PLUGIN_GROUPWISE_CLASS(klass) \
63 (G_TYPE_CHECK_CLASS_TYPE((klass), \
64 EMPATHY_TYPE_ACCOUNTS_PLUGIN_GROUPWISE))
65 #define EMPATHY_ACCOUNTS_PLUGIN_GROUPWISE_GET_CLASS(obj) \
66 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
67 EMPATHY_TYPE_ACCOUNTS_PLUGIN_GROUPWISE, \
68 EmpathyAccountsPluginGroupwiseClass))
69
70 GType ap_module_get_object_type (void);
71
72 G_END_DECLS
73
74 #endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_GROUPWISE_H__*/
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-icq.c
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #include "config.h"
24
25 #include "empathy-accounts-plugin-icq.h"
26
27 G_DEFINE_TYPE (EmpathyAccountsPluginIcq, empathy_accounts_plugin_icq,\
28 EMPATHY_TYPE_ACCOUNTS_PLUGIN)
29
30 static void
31 empathy_accounts_plugin_icq_class_init (
32 EmpathyAccountsPluginIcqClass *klass)
33 {
34 }
35
36 static void
37 empathy_accounts_plugin_icq_init (EmpathyAccountsPluginIcq *self)
38 {
39 }
40
41 GType
42 ap_module_get_object_type (void)
43 {
44 return EMPATHY_TYPE_ACCOUNTS_PLUGIN_ICQ;
45 }
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-icq.h
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23
24 #ifndef __EMPATHY_ACCOUNTS_PLUGIN_ICQ_H__
25 #define __EMPATHY_ACCOUNTS_PLUGIN_ICQ_H__
26
27 #include "empathy-accounts-plugin.h"
28
29 G_BEGIN_DECLS
30
31 typedef struct _EmpathyAccountsPluginIcq EmpathyAccountsPluginIcq;
32 typedef struct _EmpathyAccountsPluginIcqClass EmpathyAccountsPluginIcqClass;
33
34 struct _EmpathyAccountsPluginIcqClass
35 {
36 /*<private>*/
37 EmpathyAccountsPluginClass parent_class;
38 };
39
40 struct _EmpathyAccountsPluginIcq
41 {
42 /*<private>*/
43 EmpathyAccountsPlugin parent;
44 };
45
46 GType empathy_accounts_plugin_icq_get_type (void);
47
48 /* TYPE MACROS */
49 #define EMPATHY_TYPE_ACCOUNTS_PLUGIN_ICQ \
50 (empathy_accounts_plugin_icq_get_type ())
51 #define EMPATHY_ACCOUNTS_PLUGIN_ICQ(obj) \
52 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
53 EMPATHY_TYPE_ACCOUNTS_PLUGIN_ICQ, \
54 EmpathyAccountsPluginIcq))
55 #define EMPATHY_ACCOUNTS_PLUGIN_ICQ_CLASS(klass) \
56 (G_TYPE_CHECK_CLASS_CAST((klass), \
57 EMPATHY_TYPE_ACCOUNTS_PLUGIN_ICQ, \
58 EmpathyAccountsPluginIcqClass))
59 #define EMPATHY_IS_ACCOUNTS_PLUGIN_ICQ(obj) \
60 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
61 EMPATHY_TYPE_ACCOUNTS_PLUGIN_ICQ))
62 #define EMPATHY_IS_ACCOUNTS_PLUGIN_ICQ_CLASS(klass) \
63 (G_TYPE_CHECK_CLASS_TYPE((klass), \
64 EMPATHY_TYPE_ACCOUNTS_PLUGIN_ICQ))
65 #define EMPATHY_ACCOUNTS_PLUGIN_ICQ_GET_CLASS(obj) \
66 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
67 EMPATHY_TYPE_ACCOUNTS_PLUGIN_ICQ, \
68 EmpathyAccountsPluginIcqClass))
69
70 GType ap_module_get_object_type (void);
71
72 G_END_DECLS
73
74 #endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_ICQ_H__*/
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-irc.c
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #include "config.h"
24
25 #include "empathy-accounts-plugin-irc.h"
26
27 G_DEFINE_TYPE (EmpathyAccountsPluginIrc, empathy_accounts_plugin_irc,\
28 EMPATHY_TYPE_ACCOUNTS_PLUGIN)
29
30 static void
31 empathy_accounts_plugin_irc_class_init (
32 EmpathyAccountsPluginIrcClass *klass)
33 {
34 }
35
36 static void
37 empathy_accounts_plugin_irc_init (EmpathyAccountsPluginIrc *self)
38 {
39 }
40
41 GType
42 ap_module_get_object_type (void)
43 {
44 return EMPATHY_TYPE_ACCOUNTS_PLUGIN_IRC;
45 }
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-irc.h
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23
24 #ifndef __EMPATHY_ACCOUNTS_PLUGIN_IRC_H__
25 #define __EMPATHY_ACCOUNTS_PLUGIN_IRC_H__
26
27 #include "empathy-accounts-plugin.h"
28
29 G_BEGIN_DECLS
30
31 typedef struct _EmpathyAccountsPluginIrc EmpathyAccountsPluginIrc;
32 typedef struct _EmpathyAccountsPluginIrcClass EmpathyAccountsPluginIrcClass;
33
34 struct _EmpathyAccountsPluginIrcClass
35 {
36 /*<private>*/
37 EmpathyAccountsPluginClass parent_class;
38 };
39
40 struct _EmpathyAccountsPluginIrc
41 {
42 /*<private>*/
43 EmpathyAccountsPlugin parent;
44 };
45
46 GType empathy_accounts_plugin_irc_get_type (void);
47
48 /* TYPE MACROS */
49 #define EMPATHY_TYPE_ACCOUNTS_PLUGIN_IRC \
50 (empathy_accounts_plugin_irc_get_type ())
51 #define EMPATHY_ACCOUNTS_PLUGIN_IRC(obj) \
52 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
53 EMPATHY_TYPE_ACCOUNTS_PLUGIN_IRC, \
54 EmpathyAccountsPluginIrc))
55 #define EMPATHY_ACCOUNTS_PLUGIN_IRC_CLASS(klass) \
56 (G_TYPE_CHECK_CLASS_CAST((klass), \
57 EMPATHY_TYPE_ACCOUNTS_PLUGIN_IRC, \
58 EmpathyAccountsPluginIrcClass))
59 #define EMPATHY_IS_ACCOUNTS_PLUGIN_IRC(obj) \
60 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
61 EMPATHY_TYPE_ACCOUNTS_PLUGIN_IRC))
62 #define EMPATHY_IS_ACCOUNTS_PLUGIN_IRC_CLASS(klass) \
63 (G_TYPE_CHECK_CLASS_TYPE((klass), \
64 EMPATHY_TYPE_ACCOUNTS_PLUGIN_IRC))
65 #define EMPATHY_ACCOUNTS_PLUGIN_IRC_GET_CLASS(obj) \
66 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
67 EMPATHY_TYPE_ACCOUNTS_PLUGIN_IRC, \
68 EmpathyAccountsPluginIrcClass))
69
70 GType ap_module_get_object_type (void);
71
72 G_END_DECLS
73
74 #endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_IRC_H__*/
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-jabber.c
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #include "config.h"
24
25 #include "empathy-accounts-plugin-jabber.h"
26
27 G_DEFINE_TYPE (EmpathyAccountsPluginJabber, empathy_accounts_plugin_jabber,\
28 EMPATHY_TYPE_ACCOUNTS_PLUGIN)
29
30 static void
31 empathy_accounts_plugin_jabber_class_init (
32 EmpathyAccountsPluginJabberClass *klass)
33 {
34 }
35
36 static void
37 empathy_accounts_plugin_jabber_init (EmpathyAccountsPluginJabber *self)
38 {
39 }
40
41 GType
42 ap_module_get_object_type (void)
43 {
44 return EMPATHY_TYPE_ACCOUNTS_PLUGIN_JABBER;
45 }
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-jabber.h
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23
24 #ifndef __EMPATHY_ACCOUNTS_PLUGIN_JABBER_H__
25 #define __EMPATHY_ACCOUNTS_PLUGIN_JABBER_H__
26
27 #include "empathy-accounts-plugin.h"
28
29 G_BEGIN_DECLS
30
31 typedef struct _EmpathyAccountsPluginJabber EmpathyAccountsPluginJabber;
32 typedef struct _EmpathyAccountsPluginJabberClass EmpathyAccountsPluginJabberClass;
33
34 struct _EmpathyAccountsPluginJabberClass
35 {
36 /*<private>*/
37 EmpathyAccountsPluginClass parent_class;
38 };
39
40 struct _EmpathyAccountsPluginJabber
41 {
42 /*<private>*/
43 EmpathyAccountsPlugin parent;
44 };
45
46 GType empathy_accounts_plugin_jabber_get_type (void);
47
48 /* TYPE MACROS */
49 #define EMPATHY_TYPE_ACCOUNTS_PLUGIN_JABBER \
50 (empathy_accounts_plugin_jabber_get_type ())
51 #define EMPATHY_ACCOUNTS_PLUGIN_JABBER(obj) \
52 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
53 EMPATHY_TYPE_ACCOUNTS_PLUGIN_JABBER, \
54 EmpathyAccountsPluginJabber))
55 #define EMPATHY_ACCOUNTS_PLUGIN_JABBER_CLASS(klass) \
56 (G_TYPE_CHECK_CLASS_CAST((klass), \
57 EMPATHY_TYPE_ACCOUNTS_PLUGIN_JABBER, \
58 EmpathyAccountsPluginJabberClass))
59 #define EMPATHY_IS_ACCOUNTS_PLUGIN_JABBER(obj) \
60 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
61 EMPATHY_TYPE_ACCOUNTS_PLUGIN_JABBER))
62 #define EMPATHY_IS_ACCOUNTS_PLUGIN_JABBER_CLASS(klass) \
63 (G_TYPE_CHECK_CLASS_TYPE((klass), \
64 EMPATHY_TYPE_ACCOUNTS_PLUGIN_JABBER))
65 #define EMPATHY_ACCOUNTS_PLUGIN_JABBER_GET_CLASS(obj) \
66 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
67 EMPATHY_TYPE_ACCOUNTS_PLUGIN_JABBER, \
68 EmpathyAccountsPluginJabberClass))
69
70 GType ap_module_get_object_type (void);
71
72 G_END_DECLS
73
74 #endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_JABBER_H__*/
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-local-xmpp.c
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #include "config.h"
24
25 #include "empathy-accounts-plugin-local-xmpp.h"
26
27 G_DEFINE_TYPE (EmpathyAccountsPluginLocalXmpp, empathy_accounts_plugin_local_xmpp,\
28 EMPATHY_TYPE_ACCOUNTS_PLUGIN)
29
30 static void
31 empathy_accounts_plugin_local_xmpp_class_init (
32 EmpathyAccountsPluginLocalXmppClass *klass)
33 {
34 }
35
36 static void
37 empathy_accounts_plugin_local_xmpp_init (EmpathyAccountsPluginLocalXmpp *self)
38 {
39 }
40
41 GType
42 ap_module_get_object_type (void)
43 {
44 return EMPATHY_TYPE_ACCOUNTS_PLUGIN_LOCAL_XMPP;
45 }
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-local-xmpp.h
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23
24 #ifndef __EMPATHY_ACCOUNTS_PLUGIN_LOCAL_XMPP_H__
25 #define __EMPATHY_ACCOUNTS_PLUGIN_LOCAL_XMPP_H__
26
27 #include "empathy-accounts-plugin.h"
28
29 G_BEGIN_DECLS
30
31 typedef struct _EmpathyAccountsPluginLocalXmpp EmpathyAccountsPluginLocalXmpp;
32 typedef struct _EmpathyAccountsPluginLocalXmppClass EmpathyAccountsPluginLocalXmppClass;
33
34 struct _EmpathyAccountsPluginLocalXmppClass
35 {
36 /*<private>*/
37 EmpathyAccountsPluginClass parent_class;
38 };
39
40 struct _EmpathyAccountsPluginLocalXmpp
41 {
42 /*<private>*/
43 EmpathyAccountsPlugin parent;
44 };
45
46 GType empathy_accounts_plugin_local_xmpp_get_type (void);
47
48 /* TYPE MACROS */
49 #define EMPATHY_TYPE_ACCOUNTS_PLUGIN_LOCAL_XMPP \
50 (empathy_accounts_plugin_local_xmpp_get_type ())
51 #define EMPATHY_ACCOUNTS_PLUGIN_LOCAL_XMPP(obj) \
52 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
53 EMPATHY_TYPE_ACCOUNTS_PLUGIN_LOCAL_XMPP, \
54 EmpathyAccountsPluginLocalXmpp))
55 #define EMPATHY_ACCOUNTS_PLUGIN_LOCAL_XMPP_CLASS(klass) \
56 (G_TYPE_CHECK_CLASS_CAST((klass), \
57 EMPATHY_TYPE_ACCOUNTS_PLUGIN_LOCAL_XMPP, \
58 EmpathyAccountsPluginLocalXmppClass))
59 #define EMPATHY_IS_ACCOUNTS_PLUGIN_LOCAL_XMPP(obj) \
60 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
61 EMPATHY_TYPE_ACCOUNTS_PLUGIN_LOCAL_XMPP))
62 #define EMPATHY_IS_ACCOUNTS_PLUGIN_LOCAL_XMPP_CLASS(klass) \
63 (G_TYPE_CHECK_CLASS_TYPE((klass), \
64 EMPATHY_TYPE_ACCOUNTS_PLUGIN_LOCAL_XMPP))
65 #define EMPATHY_ACCOUNTS_PLUGIN_LOCAL_XMPP_GET_CLASS(obj) \
66 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
67 EMPATHY_TYPE_ACCOUNTS_PLUGIN_LOCAL_XMPP, \
68 EmpathyAccountsPluginLocalXmppClass))
69
70 GType ap_module_get_object_type (void);
71
72 G_END_DECLS
73
74 #endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_LOCAL_XMPP_H__*/
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-mxit.c
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #include "config.h"
24
25 #include "empathy-accounts-plugin-mxit.h"
26
27 G_DEFINE_TYPE (EmpathyAccountsPluginMxit, empathy_accounts_plugin_mxit,\
28 EMPATHY_TYPE_ACCOUNTS_PLUGIN)
29
30 static void
31 empathy_accounts_plugin_mxit_class_init (
32 EmpathyAccountsPluginMxitClass *klass)
33 {
34 }
35
36 static void
37 empathy_accounts_plugin_mxit_init (EmpathyAccountsPluginMxit *self)
38 {
39 }
40
41 GType
42 ap_module_get_object_type (void)
43 {
44 return EMPATHY_TYPE_ACCOUNTS_PLUGIN_MXIT;
45 }
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-mxit.h
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23
24 #ifndef __EMPATHY_ACCOUNTS_PLUGIN_MXIT_H__
25 #define __EMPATHY_ACCOUNTS_PLUGIN_MXIT_H__
26
27 #include "empathy-accounts-plugin.h"
28
29 G_BEGIN_DECLS
30
31 typedef struct _EmpathyAccountsPluginMxit EmpathyAccountsPluginMxit;
32 typedef struct _EmpathyAccountsPluginMxitClass EmpathyAccountsPluginMxitClass;
33
34 struct _EmpathyAccountsPluginMxitClass
35 {
36 /*<private>*/
37 EmpathyAccountsPluginClass parent_class;
38 };
39
40 struct _EmpathyAccountsPluginMxit
41 {
42 /*<private>*/
43 EmpathyAccountsPlugin parent;
44 };
45
46 GType empathy_accounts_plugin_mxit_get_type (void);
47
48 /* TYPE MACROS */
49 #define EMPATHY_TYPE_ACCOUNTS_PLUGIN_MXIT \
50 (empathy_accounts_plugin_mxit_get_type ())
51 #define EMPATHY_ACCOUNTS_PLUGIN_MXIT(obj) \
52 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
53 EMPATHY_TYPE_ACCOUNTS_PLUGIN_MXIT, \
54 EmpathyAccountsPluginMxit))
55 #define EMPATHY_ACCOUNTS_PLUGIN_MXIT_CLASS(klass) \
56 (G_TYPE_CHECK_CLASS_CAST((klass), \
57 EMPATHY_TYPE_ACCOUNTS_PLUGIN_MXIT, \
58 EmpathyAccountsPluginMxitClass))
59 #define EMPATHY_IS_ACCOUNTS_PLUGIN_MXIT(obj) \
60 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
61 EMPATHY_TYPE_ACCOUNTS_PLUGIN_MXIT))
62 #define EMPATHY_IS_ACCOUNTS_PLUGIN_MXIT_CLASS(klass) \
63 (G_TYPE_CHECK_CLASS_TYPE((klass), \
64 EMPATHY_TYPE_ACCOUNTS_PLUGIN_MXIT))
65 #define EMPATHY_ACCOUNTS_PLUGIN_MXIT_GET_CLASS(obj) \
66 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
67 EMPATHY_TYPE_ACCOUNTS_PLUGIN_MXIT, \
68 EmpathyAccountsPluginMxitClass))
69
70 GType ap_module_get_object_type (void);
71
72 G_END_DECLS
73
74 #endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_MXIT_H__*/
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-myspace.c
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #include "config.h"
24
25 #include "empathy-accounts-plugin-myspace.h"
26
27 G_DEFINE_TYPE (EmpathyAccountsPluginMyspace, empathy_accounts_plugin_myspace,\
28 EMPATHY_TYPE_ACCOUNTS_PLUGIN)
29
30 static void
31 empathy_accounts_plugin_myspace_class_init (
32 EmpathyAccountsPluginMyspaceClass *klass)
33 {
34 }
35
36 static void
37 empathy_accounts_plugin_myspace_init (EmpathyAccountsPluginMyspace *self)
38 {
39 }
40
41 GType
42 ap_module_get_object_type (void)
43 {
44 return EMPATHY_TYPE_ACCOUNTS_PLUGIN_MYSPACE;
45 }
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-myspace.h
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23
24 #ifndef __EMPATHY_ACCOUNTS_PLUGIN_MYSPACE_H__
25 #define __EMPATHY_ACCOUNTS_PLUGIN_MYSPACE_H__
26
27 #include "empathy-accounts-plugin.h"
28
29 G_BEGIN_DECLS
30
31 typedef struct _EmpathyAccountsPluginMyspace EmpathyAccountsPluginMyspace;
32 typedef struct _EmpathyAccountsPluginMyspaceClass EmpathyAccountsPluginMyspaceClass;
33
34 struct _EmpathyAccountsPluginMyspaceClass
35 {
36 /*<private>*/
37 EmpathyAccountsPluginClass parent_class;
38 };
39
40 struct _EmpathyAccountsPluginMyspace
41 {
42 /*<private>*/
43 EmpathyAccountsPlugin parent;
44 };
45
46 GType empathy_accounts_plugin_myspace_get_type (void);
47
48 /* TYPE MACROS */
49 #define EMPATHY_TYPE_ACCOUNTS_PLUGIN_MYSPACE \
50 (empathy_accounts_plugin_myspace_get_type ())
51 #define EMPATHY_ACCOUNTS_PLUGIN_MYSPACE(obj) \
52 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
53 EMPATHY_TYPE_ACCOUNTS_PLUGIN_MYSPACE, \
54 EmpathyAccountsPluginMyspace))
55 #define EMPATHY_ACCOUNTS_PLUGIN_MYSPACE_CLASS(klass) \
56 (G_TYPE_CHECK_CLASS_CAST((klass), \
57 EMPATHY_TYPE_ACCOUNTS_PLUGIN_MYSPACE, \
58 EmpathyAccountsPluginMyspaceClass))
59 #define EMPATHY_IS_ACCOUNTS_PLUGIN_MYSPACE(obj) \
60 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
61 EMPATHY_TYPE_ACCOUNTS_PLUGIN_MYSPACE))
62 #define EMPATHY_IS_ACCOUNTS_PLUGIN_MYSPACE_CLASS(klass) \
63 (G_TYPE_CHECK_CLASS_TYPE((klass), \
64 EMPATHY_TYPE_ACCOUNTS_PLUGIN_MYSPACE))
65 #define EMPATHY_ACCOUNTS_PLUGIN_MYSPACE_GET_CLASS(obj) \
66 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
67 EMPATHY_TYPE_ACCOUNTS_PLUGIN_MYSPACE, \
68 EmpathyAccountsPluginMyspaceClass))
69
70 GType ap_module_get_object_type (void);
71
72 G_END_DECLS
73
74 #endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_MYSPACE_H__*/
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-sametime.c
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #include "config.h"
24
25 #include "empathy-accounts-plugin-sametime.h"
26
27 G_DEFINE_TYPE (EmpathyAccountsPluginSametime, empathy_accounts_plugin_sametime,\
28 EMPATHY_TYPE_ACCOUNTS_PLUGIN)
29
30 static void
31 empathy_accounts_plugin_sametime_class_init (
32 EmpathyAccountsPluginSametimeClass *klass)
33 {
34 }
35
36 static void
37 empathy_accounts_plugin_sametime_init (EmpathyAccountsPluginSametime *self)
38 {
39 }
40
41 GType
42 ap_module_get_object_type (void)
43 {
44 return EMPATHY_TYPE_ACCOUNTS_PLUGIN_SAMETIME;
45 }
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-sametime.h
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23
24 #ifndef __EMPATHY_ACCOUNTS_PLUGIN_SAMETIME_H__
25 #define __EMPATHY_ACCOUNTS_PLUGIN_SAMETIME_H__
26
27 #include "empathy-accounts-plugin.h"
28
29 G_BEGIN_DECLS
30
31 typedef struct _EmpathyAccountsPluginSametime EmpathyAccountsPluginSametime;
32 typedef struct _EmpathyAccountsPluginSametimeClass EmpathyAccountsPluginSametimeClass;
33
34 struct _EmpathyAccountsPluginSametimeClass
35 {
36 /*<private>*/
37 EmpathyAccountsPluginClass parent_class;
38 };
39
40 struct _EmpathyAccountsPluginSametime
41 {
42 /*<private>*/
43 EmpathyAccountsPlugin parent;
44 };
45
46 GType empathy_accounts_plugin_sametime_get_type (void);
47
48 /* TYPE MACROS */
49 #define EMPATHY_TYPE_ACCOUNTS_PLUGIN_SAMETIME \
50 (empathy_accounts_plugin_sametime_get_type ())
51 #define EMPATHY_ACCOUNTS_PLUGIN_SAMETIME(obj) \
52 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
53 EMPATHY_TYPE_ACCOUNTS_PLUGIN_SAMETIME, \
54 EmpathyAccountsPluginSametime))
55 #define EMPATHY_ACCOUNTS_PLUGIN_SAMETIME_CLASS(klass) \
56 (G_TYPE_CHECK_CLASS_CAST((klass), \
57 EMPATHY_TYPE_ACCOUNTS_PLUGIN_SAMETIME, \
58 EmpathyAccountsPluginSametimeClass))
59 #define EMPATHY_IS_ACCOUNTS_PLUGIN_SAMETIME(obj) \
60 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
61 EMPATHY_TYPE_ACCOUNTS_PLUGIN_SAMETIME))
62 #define EMPATHY_IS_ACCOUNTS_PLUGIN_SAMETIME_CLASS(klass) \
63 (G_TYPE_CHECK_CLASS_TYPE((klass), \
64 EMPATHY_TYPE_ACCOUNTS_PLUGIN_SAMETIME))
65 #define EMPATHY_ACCOUNTS_PLUGIN_SAMETIME_GET_CLASS(obj) \
66 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
67 EMPATHY_TYPE_ACCOUNTS_PLUGIN_SAMETIME, \
68 EmpathyAccountsPluginSametimeClass))
69
70 GType ap_module_get_object_type (void);
71
72 G_END_DECLS
73
74 #endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_SAMETIME_H__*/
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-sip.c
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #include "config.h"
24
25 #include "empathy-accounts-plugin-sip.h"
26
27 G_DEFINE_TYPE (EmpathyAccountsPluginSip, empathy_accounts_plugin_sip,\
28 EMPATHY_TYPE_ACCOUNTS_PLUGIN)
29
30 static void
31 empathy_accounts_plugin_sip_class_init (
32 EmpathyAccountsPluginSipClass *klass)
33 {
34 }
35
36 static void
37 empathy_accounts_plugin_sip_init (EmpathyAccountsPluginSip *self)
38 {
39 }
40
41 GType
42 ap_module_get_object_type (void)
43 {
44 return EMPATHY_TYPE_ACCOUNTS_PLUGIN_SIP;
45 }
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-sip.h
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23
24 #ifndef __EMPATHY_ACCOUNTS_PLUGIN_SIP_H__
25 #define __EMPATHY_ACCOUNTS_PLUGIN_SIP_H__
26
27 #include "empathy-accounts-plugin.h"
28
29 G_BEGIN_DECLS
30
31 typedef struct _EmpathyAccountsPluginSip EmpathyAccountsPluginSip;
32 typedef struct _EmpathyAccountsPluginSipClass EmpathyAccountsPluginSipClass;
33
34 struct _EmpathyAccountsPluginSipClass
35 {
36 /*<private>*/
37 EmpathyAccountsPluginClass parent_class;
38 };
39
40 struct _EmpathyAccountsPluginSip
41 {
42 /*<private>*/
43 EmpathyAccountsPlugin parent;
44 };
45
46 GType empathy_accounts_plugin_sip_get_type (void);
47
48 /* TYPE MACROS */
49 #define EMPATHY_TYPE_ACCOUNTS_PLUGIN_SIP \
50 (empathy_accounts_plugin_sip_get_type ())
51 #define EMPATHY_ACCOUNTS_PLUGIN_SIP(obj) \
52 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
53 EMPATHY_TYPE_ACCOUNTS_PLUGIN_SIP, \
54 EmpathyAccountsPluginSip))
55 #define EMPATHY_ACCOUNTS_PLUGIN_SIP_CLASS(klass) \
56 (G_TYPE_CHECK_CLASS_CAST((klass), \
57 EMPATHY_TYPE_ACCOUNTS_PLUGIN_SIP, \
58 EmpathyAccountsPluginSipClass))
59 #define EMPATHY_IS_ACCOUNTS_PLUGIN_SIP(obj) \
60 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
61 EMPATHY_TYPE_ACCOUNTS_PLUGIN_SIP))
62 #define EMPATHY_IS_ACCOUNTS_PLUGIN_SIP_CLASS(klass) \
63 (G_TYPE_CHECK_CLASS_TYPE((klass), \
64 EMPATHY_TYPE_ACCOUNTS_PLUGIN_SIP))
65 #define EMPATHY_ACCOUNTS_PLUGIN_SIP_GET_CLASS(obj) \
66 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
67 EMPATHY_TYPE_ACCOUNTS_PLUGIN_SIP, \
68 EmpathyAccountsPluginSipClass))
69
70 GType ap_module_get_object_type (void);
71
72 G_END_DECLS
73
74 #endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_SIP_H__*/
0 /*
1 * empathy-accounts-plugin-widget.c
2 *
3 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20
21 #include "config.h"
22
23 #include "empathy-accounts-plugin-widget.h"
24
25 #include <glib/gi18n-lib.h>
26
27 #include <telepathy-glib/telepathy-glib.h>
28
29 #include <libaccounts-glib/ag-service.h>
30 #include <libaccounts-glib/ag-account-service.h>
31
32 #include <libempathy-gtk/empathy-account-widget.h>
33
34 G_DEFINE_TYPE (EmpathyAccountsPluginWidget, empathy_accounts_plugin_widget, GTK_TYPE_BOX)
35
36 enum
37 {
38 PROP_ACCOUNT = 1,
39 N_PROPS
40 };
41
42 enum
43 {
44 SIG_DONE,
45 LAST_SIGNAL
46 };
47
48 static guint signals[LAST_SIGNAL];
49
50 struct _EmpathyAccountsPluginWidgetPriv
51 {
52 AgAccount *account;
53
54 EmpathyAccountSettings *settings;
55
56 EmpathyAccountWidget *account_widget;
57 GtkWidget *done_button;
58 };
59
60 static void
61 empathy_accounts_plugin_widget_get_property (GObject *object,
62 guint property_id,
63 GValue *value,
64 GParamSpec *pspec)
65 {
66 EmpathyAccountsPluginWidget *self = EMPATHY_ACCOUNTS_PLUGIN_WIDGET (object);
67
68 switch (property_id)
69 {
70 case PROP_ACCOUNT:
71 g_value_set_object (value, self->priv->account);
72 break;
73 default:
74 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
75 break;
76 }
77 }
78
79 static void
80 empathy_accounts_plugin_widget_set_property (GObject *object,
81 guint property_id,
82 const GValue *value,
83 GParamSpec *pspec)
84 {
85 EmpathyAccountsPluginWidget *self = EMPATHY_ACCOUNTS_PLUGIN_WIDGET (object);
86
87 switch (property_id)
88 {
89 case PROP_ACCOUNT:
90 self->priv->account = g_value_dup_object (value);
91 break;
92 default:
93 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
94 break;
95 }
96 }
97
98 static EmpathyAccountSettings *
99 create_account_settings (AgAccount *account)
100 {
101 AgService *service;
102 GList *services;
103 AgAccountService *account_service;
104 GValue v = G_VALUE_INIT;
105 gchar *manager = NULL, *protocol = NULL;
106 EmpathyAccountSettings *settings;
107
108 g_assert (account->id == 0);
109
110 services = ag_account_list_services_by_type (account, "IM");
111 g_return_val_if_fail (services != NULL, NULL);
112 service = (AgService *) services->data;
113
114 account_service = ag_account_service_new (account, service);
115
116 g_value_init (&v, G_TYPE_STRING);
117 if (ag_account_service_get_value (account_service,
118 "telepathy/manager", &v) != AG_SETTING_SOURCE_NONE)
119 manager = g_value_dup_string (&v);
120 g_value_unset (&v);
121
122 g_value_init (&v, G_TYPE_STRING);
123 if (ag_account_service_get_value (account_service,
124 "telepathy/protocol", &v) != AG_SETTING_SOURCE_NONE)
125 protocol = g_value_dup_string (&v);
126 g_value_unset (&v);
127
128 g_return_val_if_fail (manager != NULL, NULL);
129 g_return_val_if_fail (protocol != NULL, NULL);
130
131 settings = empathy_account_settings_new (manager, protocol, NULL,
132 ag_service_get_display_name (service));
133
134 empathy_account_settings_set_storage_provider (settings,
135 EMPATHY_UOA_PROVIDER);
136
137 empathy_account_settings_set_icon_name_async (settings,
138 ag_service_get_icon_name (service), NULL, NULL);
139
140 g_free (manager);
141 g_free (protocol);
142
143 return settings;
144 }
145
146 static void
147 response_cb (GtkWidget *widget,
148 gint response,
149 EmpathyAccountsPluginWidget *self)
150 {
151 if (response == GTK_RESPONSE_OK)
152 {
153 empathy_account_widget_apply_and_log_in (self->priv->account_widget);
154
155 /* Rely on account_widget_close_cb to fire the 'done' signal */
156 }
157 else
158 {
159 empathy_account_widget_discard_pending_changes (
160 self->priv->account_widget);
161
162 g_signal_emit (self, signals[SIG_DONE], 0);
163 }
164 }
165
166 static GtkWidget *
167 create_top_bar (EmpathyAccountsPluginWidget *self)
168 {
169 GtkWidget *bar, *content, *action, *label;
170 GtkCssProvider *css;
171 GError *error = NULL;
172
173 bar = gtk_info_bar_new_with_buttons (
174 GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
175 NULL);
176
177 self->priv->done_button = gtk_info_bar_add_button (GTK_INFO_BAR (bar),
178 _("Done"), GTK_RESPONSE_OK);
179
180 gtk_widget_set_hexpand (bar, TRUE);
181 gtk_info_bar_set_message_type (GTK_INFO_BAR (bar), GTK_MESSAGE_QUESTION);
182 action = gtk_info_bar_get_action_area (GTK_INFO_BAR (bar));
183 gtk_orientable_set_orientation (GTK_ORIENTABLE (action),
184 GTK_ORIENTATION_HORIZONTAL);
185 gtk_widget_set_name (bar, "authorization-infobar");
186 css = gtk_css_provider_new ();
187 if (gtk_css_provider_load_from_data (css,
188 "@define-color question_bg_color rgb (222, 222, 222);"
189 "GtkInfoBar#authorization-infobar"
190 "{"
191 " color: @fg_color;"
192 "}",
193 -1, &error))
194 {
195 GtkStyleContext *context = gtk_widget_get_style_context (bar);
196
197 gtk_style_context_add_provider (context, (GtkStyleProvider *) css,
198 GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
199 }
200 else
201 {
202 g_warning ("Error processing CSS theme override: %s", error->message);
203 g_clear_error (&error);
204 }
205 g_object_unref (css);
206
207 content = gtk_info_bar_get_content_area (GTK_INFO_BAR (bar));
208
209 label = gtk_label_new (_("Please enter your account details"));
210 gtk_container_add (GTK_CONTAINER (content), label);
211 gtk_widget_show (label);
212
213 g_signal_connect (bar, "response",
214 G_CALLBACK (response_cb), self);
215
216 return bar;
217 }
218
219 static void
220 account_widget_handle_apply_cb (EmpathyAccountWidget *widget,
221 gboolean valid,
222 EmpathyAccountsPluginWidget *self)
223 {
224 gtk_widget_set_sensitive (self->priv->done_button, valid);
225 }
226
227 static void
228 account_widget_close_cb (EmpathyAccountWidget *widget,
229 GtkResponseType response,
230 EmpathyAccountsPluginWidget *self)
231 {
232 g_signal_emit (self, signals[SIG_DONE], 0);
233 }
234
235 static void
236 add_account_widget (EmpathyAccountsPluginWidget *self)
237 {
238 GtkWidget *alig;
239 gboolean simple;
240
241 alig = gtk_alignment_new (0.5, 0, 0, 0);
242
243 gtk_box_pack_start (GTK_BOX (self), alig, TRUE, TRUE, 0);
244 gtk_widget_show (GTK_WIDGET (alig));
245
246 /* Use the simple widget only when creating the account */
247 simple = (self->priv->account->id == 0);
248
249 self->priv->account_widget = empathy_account_widget_new_for_protocol (
250 self->priv->settings, simple);
251
252 empathy_account_widget_hide_buttons (self->priv->account_widget);
253
254 gtk_widget_set_valign (GTK_WIDGET (self->priv->account_widget),
255 GTK_ALIGN_CENTER);
256
257 gtk_container_add (GTK_CONTAINER (alig),
258 GTK_WIDGET (self->priv->account_widget));
259 gtk_widget_show (GTK_WIDGET (self->priv->account_widget));
260
261 if (!empathy_account_settings_is_valid (self->priv->settings))
262 {
263 gtk_widget_set_sensitive (self->priv->done_button, FALSE);
264 }
265
266 g_signal_connect (self->priv->account_widget, "handle-apply",
267 G_CALLBACK (account_widget_handle_apply_cb), self);
268 g_signal_connect (self->priv->account_widget, "close",
269 G_CALLBACK (account_widget_close_cb), self);
270 }
271
272 static void
273 maybe_add_account_widget (EmpathyAccountsPluginWidget *self)
274 {
275 g_return_if_fail (self->priv->settings != NULL);
276
277 if (empathy_account_settings_is_ready (self->priv->settings))
278 {
279 add_account_widget (self);
280 }
281 else
282 {
283 g_signal_connect_swapped (self->priv->settings, "notify::ready",
284 G_CALLBACK (add_account_widget), self);
285 }
286 }
287
288 static void
289 manager_prepared_cb (GObject *source,
290 GAsyncResult *result,
291 gpointer user_data)
292 {
293 TpWeakRef *wr = user_data;
294 EmpathyAccountsPluginWidget *self = tp_weak_ref_dup_object (wr);
295 TpAccountManager *manager = (TpAccountManager *) source;
296 GList *accounts;
297 GError *error = NULL;
298
299 if (self == NULL)
300 {
301 tp_weak_ref_destroy (wr);
302 return;
303 }
304
305 if (!tp_proxy_prepare_finish (manager, result, &error))
306 {
307 g_debug ("Error preparing Account Manager: %s", error->message);
308 g_clear_error (&error);
309 goto out;
310 }
311
312 accounts = tp_account_manager_get_valid_accounts (manager);
313 while (accounts != NULL)
314 {
315 TpAccount *account = accounts->data;
316 const GValue *value;
317
318 value = tp_account_get_storage_identifier (account);
319 if (G_VALUE_HOLDS_UINT (value) &&
320 g_value_get_uint (value) == self->priv->account->id)
321 {
322 self->priv->settings = empathy_account_settings_new_for_account (
323 account);
324 maybe_add_account_widget (self);
325 break;
326 }
327
328 accounts = g_list_delete_link (accounts, accounts);
329 }
330 g_list_free (accounts);
331
332 out:
333 tp_weak_ref_destroy (wr);
334 g_object_unref (self);
335 }
336
337 static void
338 empathy_accounts_plugin_widget_constructed (GObject *object)
339 {
340 EmpathyAccountsPluginWidget *self = EMPATHY_ACCOUNTS_PLUGIN_WIDGET (object);
341 void (*chain_up) (GObject *) =
342 ((GObjectClass *) empathy_accounts_plugin_widget_parent_class)->constructed;
343 GtkWidget *top;
344
345 if (chain_up != NULL)
346 chain_up (object);
347
348 g_return_if_fail (AG_IS_ACCOUNT (self->priv->account));
349
350 /* Top bar */
351 top = create_top_bar (self);
352 gtk_widget_show (top);
353 gtk_box_pack_start (GTK_BOX (self), top, FALSE, FALSE, 0);
354
355 if (self->priv->account->id != 0)
356 {
357 TpAccountManager *manager;
358
359 /* Prepare tp's account manager to find the TpAccount corresponding to our
360 * AgAccount */
361 manager = tp_account_manager_dup ();
362
363 tp_proxy_prepare_async (manager, NULL,
364 manager_prepared_cb, tp_weak_ref_new (self, NULL, NULL));
365 g_object_unref (manager);
366 return;
367 }
368
369 self->priv->settings = create_account_settings (self->priv->account);
370 maybe_add_account_widget (self);
371 }
372
373 static void
374 empathy_accounts_plugin_widget_dispose (GObject *object)
375 {
376 EmpathyAccountsPluginWidget *self = EMPATHY_ACCOUNTS_PLUGIN_WIDGET (object);
377 void (*chain_up) (GObject *) =
378 ((GObjectClass *) empathy_accounts_plugin_widget_parent_class)->dispose;
379
380 g_clear_object (&self->priv->account);
381 g_clear_object (&self->priv->settings);
382
383 if (chain_up != NULL)
384 chain_up (object);
385 }
386
387 static void
388 empathy_accounts_plugin_widget_class_init (
389 EmpathyAccountsPluginWidgetClass *klass)
390 {
391 GObjectClass *oclass = G_OBJECT_CLASS (klass);
392 GParamSpec *spec;
393
394 oclass->get_property = empathy_accounts_plugin_widget_get_property;
395 oclass->set_property = empathy_accounts_plugin_widget_set_property;
396 oclass->constructed = empathy_accounts_plugin_widget_constructed;
397 oclass->dispose = empathy_accounts_plugin_widget_dispose;
398
399 spec = g_param_spec_object ("account", "account",
400 "AgAccount",
401 AG_TYPE_ACCOUNT,
402 G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
403 g_object_class_install_property (oclass, PROP_ACCOUNT, spec);
404
405 signals[SIG_DONE] = g_signal_new ("done",
406 G_OBJECT_CLASS_TYPE (klass),
407 G_SIGNAL_RUN_LAST,
408 0, NULL, NULL, NULL,
409 G_TYPE_NONE,
410 0);
411
412 g_type_class_add_private (klass, sizeof (EmpathyAccountsPluginWidgetPriv));
413 }
414
415 static void
416 empathy_accounts_plugin_widget_init (EmpathyAccountsPluginWidget *self)
417 {
418 self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self,
419 EMPATHY_TYPE_ACCOUNTS_PLUGIN_WIDGET, EmpathyAccountsPluginWidgetPriv);
420 }
421
422 GtkWidget *
423 empathy_accounts_plugin_widget_new (AgAccount *account)
424 {
425 return g_object_new (EMPATHY_TYPE_ACCOUNTS_PLUGIN_WIDGET,
426 "account", account,
427 "orientation", GTK_ORIENTATION_VERTICAL,
428 "spacing", 10,
429 NULL);
430 }
0 /*
1 * empathy-accounts-plugin-widget.h
2 *
3 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20
21 #ifndef __EMPATHY_ACCOUNTS_PLUGIN_WIDGET_H__
22 #define __EMPATHY_ACCOUNTS_PLUGIN_WIDGET_H__
23
24 #include <gtk/gtk.h>
25
26 #include <libaccounts-glib/ag-account.h>
27
28 G_BEGIN_DECLS
29
30 typedef struct _EmpathyAccountsPluginWidget EmpathyAccountsPluginWidget;
31 typedef struct _EmpathyAccountsPluginWidgetClass EmpathyAccountsPluginWidgetClass;
32 typedef struct _EmpathyAccountsPluginWidgetPriv EmpathyAccountsPluginWidgetPriv;
33
34 struct _EmpathyAccountsPluginWidgetClass
35 {
36 /*<private>*/
37 GtkBoxClass parent_class;
38 };
39
40 struct _EmpathyAccountsPluginWidget
41 {
42 /*<private>*/
43 GtkBox parent;
44 EmpathyAccountsPluginWidgetPriv *priv;
45 };
46
47 GType empathy_accounts_plugin_widget_get_type (void);
48
49 /* TYPE MACROS */
50 #define EMPATHY_TYPE_ACCOUNTS_PLUGIN_WIDGET \
51 (empathy_accounts_plugin_widget_get_type ())
52 #define EMPATHY_ACCOUNTS_PLUGIN_WIDGET(obj) \
53 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
54 EMPATHY_TYPE_ACCOUNTS_PLUGIN_WIDGET, \
55 EmpathyAccountsPluginWidget))
56 #define EMPATHY_ACCOUNTS_PLUGIN_WIDGET_CLASS(klass) \
57 (G_TYPE_CHECK_CLASS_CAST((klass), \
58 EMPATHY_TYPE_ACCOUNTS_PLUGIN_WIDGET, \
59 EmpathyAccountsPluginWidgetClass))
60 #define EMPATHY_IS_ACCOUNTS_PLUGIN_WIDGET(obj) \
61 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
62 EMPATHY_TYPE_ACCOUNTS_PLUGIN_WIDGET))
63 #define EMPATHY_IS_ACCOUNTS_PLUGIN_WIDGET_CLASS(klass) \
64 (G_TYPE_CHECK_CLASS_TYPE((klass), \
65 EMPATHY_TYPE_ACCOUNTS_PLUGIN_WIDGET))
66 #define EMPATHY_ACCOUNTS_PLUGIN_WIDGET_GET_CLASS(obj) \
67 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
68 EMPATHY_TYPE_ACCOUNTS_PLUGIN_WIDGET, \
69 EmpathyAccountsPluginWidgetClass))
70
71 GtkWidget * empathy_accounts_plugin_widget_new (AgAccount *account);
72
73 G_END_DECLS
74
75 #endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_WIDGET_H__*/
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-yahoo.c
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #include "config.h"
24
25 #include "empathy-accounts-plugin-yahoo.h"
26
27 G_DEFINE_TYPE (EmpathyAccountsPluginYahoo, empathy_accounts_plugin_yahoo,\
28 EMPATHY_TYPE_ACCOUNTS_PLUGIN)
29
30 static void
31 empathy_accounts_plugin_yahoo_class_init (
32 EmpathyAccountsPluginYahooClass *klass)
33 {
34 }
35
36 static void
37 empathy_accounts_plugin_yahoo_init (EmpathyAccountsPluginYahoo *self)
38 {
39 }
40
41 GType
42 ap_module_get_object_type (void)
43 {
44 return EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOO;
45 }
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-yahoo.h
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23
24 #ifndef __EMPATHY_ACCOUNTS_PLUGIN_YAHOO_H__
25 #define __EMPATHY_ACCOUNTS_PLUGIN_YAHOO_H__
26
27 #include "empathy-accounts-plugin.h"
28
29 G_BEGIN_DECLS
30
31 typedef struct _EmpathyAccountsPluginYahoo EmpathyAccountsPluginYahoo;
32 typedef struct _EmpathyAccountsPluginYahooClass EmpathyAccountsPluginYahooClass;
33
34 struct _EmpathyAccountsPluginYahooClass
35 {
36 /*<private>*/
37 EmpathyAccountsPluginClass parent_class;
38 };
39
40 struct _EmpathyAccountsPluginYahoo
41 {
42 /*<private>*/
43 EmpathyAccountsPlugin parent;
44 };
45
46 GType empathy_accounts_plugin_yahoo_get_type (void);
47
48 /* TYPE MACROS */
49 #define EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOO \
50 (empathy_accounts_plugin_yahoo_get_type ())
51 #define EMPATHY_ACCOUNTS_PLUGIN_YAHOO(obj) \
52 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
53 EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOO, \
54 EmpathyAccountsPluginYahoo))
55 #define EMPATHY_ACCOUNTS_PLUGIN_YAHOO_CLASS(klass) \
56 (G_TYPE_CHECK_CLASS_CAST((klass), \
57 EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOO, \
58 EmpathyAccountsPluginYahooClass))
59 #define EMPATHY_IS_ACCOUNTS_PLUGIN_YAHOO(obj) \
60 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
61 EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOO))
62 #define EMPATHY_IS_ACCOUNTS_PLUGIN_YAHOO_CLASS(klass) \
63 (G_TYPE_CHECK_CLASS_TYPE((klass), \
64 EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOO))
65 #define EMPATHY_ACCOUNTS_PLUGIN_YAHOO_GET_CLASS(obj) \
66 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
67 EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOO, \
68 EmpathyAccountsPluginYahooClass))
69
70 GType ap_module_get_object_type (void);
71
72 G_END_DECLS
73
74 #endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_YAHOO_H__*/
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-yahoojp.c
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #include "config.h"
24
25 #include "empathy-accounts-plugin-yahoojp.h"
26
27 G_DEFINE_TYPE (EmpathyAccountsPluginYahoojp, empathy_accounts_plugin_yahoojp,\
28 EMPATHY_TYPE_ACCOUNTS_PLUGIN)
29
30 static void
31 empathy_accounts_plugin_yahoojp_class_init (
32 EmpathyAccountsPluginYahoojpClass *klass)
33 {
34 }
35
36 static void
37 empathy_accounts_plugin_yahoojp_init (EmpathyAccountsPluginYahoojp *self)
38 {
39 }
40
41 GType
42 ap_module_get_object_type (void)
43 {
44 return EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOOJP;
45 }
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-yahoojp.h
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23
24 #ifndef __EMPATHY_ACCOUNTS_PLUGIN_YAHOOJP_H__
25 #define __EMPATHY_ACCOUNTS_PLUGIN_YAHOOJP_H__
26
27 #include "empathy-accounts-plugin.h"
28
29 G_BEGIN_DECLS
30
31 typedef struct _EmpathyAccountsPluginYahoojp EmpathyAccountsPluginYahoojp;
32 typedef struct _EmpathyAccountsPluginYahoojpClass EmpathyAccountsPluginYahoojpClass;
33
34 struct _EmpathyAccountsPluginYahoojpClass
35 {
36 /*<private>*/
37 EmpathyAccountsPluginClass parent_class;
38 };
39
40 struct _EmpathyAccountsPluginYahoojp
41 {
42 /*<private>*/
43 EmpathyAccountsPlugin parent;
44 };
45
46 GType empathy_accounts_plugin_yahoojp_get_type (void);
47
48 /* TYPE MACROS */
49 #define EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOOJP \
50 (empathy_accounts_plugin_yahoojp_get_type ())
51 #define EMPATHY_ACCOUNTS_PLUGIN_YAHOOJP(obj) \
52 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
53 EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOOJP, \
54 EmpathyAccountsPluginYahoojp))
55 #define EMPATHY_ACCOUNTS_PLUGIN_YAHOOJP_CLASS(klass) \
56 (G_TYPE_CHECK_CLASS_CAST((klass), \
57 EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOOJP, \
58 EmpathyAccountsPluginYahoojpClass))
59 #define EMPATHY_IS_ACCOUNTS_PLUGIN_YAHOOJP(obj) \
60 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
61 EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOOJP))
62 #define EMPATHY_IS_ACCOUNTS_PLUGIN_YAHOOJP_CLASS(klass) \
63 (G_TYPE_CHECK_CLASS_TYPE((klass), \
64 EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOOJP))
65 #define EMPATHY_ACCOUNTS_PLUGIN_YAHOOJP_GET_CLASS(obj) \
66 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
67 EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOOJP, \
68 EmpathyAccountsPluginYahoojpClass))
69
70 GType ap_module_get_object_type (void);
71
72 G_END_DECLS
73
74 #endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_YAHOOJP_H__*/
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-zephyr.c
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #include "config.h"
24
25 #include "empathy-accounts-plugin-zephyr.h"
26
27 G_DEFINE_TYPE (EmpathyAccountsPluginZephyr, empathy_accounts_plugin_zephyr,\
28 EMPATHY_TYPE_ACCOUNTS_PLUGIN)
29
30 static void
31 empathy_accounts_plugin_zephyr_class_init (
32 EmpathyAccountsPluginZephyrClass *klass)
33 {
34 }
35
36 static void
37 empathy_accounts_plugin_zephyr_init (EmpathyAccountsPluginZephyr *self)
38 {
39 }
40
41 GType
42 ap_module_get_object_type (void)
43 {
44 return EMPATHY_TYPE_ACCOUNTS_PLUGIN_ZEPHYR;
45 }
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-zephyr.h
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23
24 #ifndef __EMPATHY_ACCOUNTS_PLUGIN_ZEPHYR_H__
25 #define __EMPATHY_ACCOUNTS_PLUGIN_ZEPHYR_H__
26
27 #include "empathy-accounts-plugin.h"
28
29 G_BEGIN_DECLS
30
31 typedef struct _EmpathyAccountsPluginZephyr EmpathyAccountsPluginZephyr;
32 typedef struct _EmpathyAccountsPluginZephyrClass EmpathyAccountsPluginZephyrClass;
33
34 struct _EmpathyAccountsPluginZephyrClass
35 {
36 /*<private>*/
37 EmpathyAccountsPluginClass parent_class;
38 };
39
40 struct _EmpathyAccountsPluginZephyr
41 {
42 /*<private>*/
43 EmpathyAccountsPlugin parent;
44 };
45
46 GType empathy_accounts_plugin_zephyr_get_type (void);
47
48 /* TYPE MACROS */
49 #define EMPATHY_TYPE_ACCOUNTS_PLUGIN_ZEPHYR \
50 (empathy_accounts_plugin_zephyr_get_type ())
51 #define EMPATHY_ACCOUNTS_PLUGIN_ZEPHYR(obj) \
52 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
53 EMPATHY_TYPE_ACCOUNTS_PLUGIN_ZEPHYR, \
54 EmpathyAccountsPluginZephyr))
55 #define EMPATHY_ACCOUNTS_PLUGIN_ZEPHYR_CLASS(klass) \
56 (G_TYPE_CHECK_CLASS_CAST((klass), \
57 EMPATHY_TYPE_ACCOUNTS_PLUGIN_ZEPHYR, \
58 EmpathyAccountsPluginZephyrClass))
59 #define EMPATHY_IS_ACCOUNTS_PLUGIN_ZEPHYR(obj) \
60 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
61 EMPATHY_TYPE_ACCOUNTS_PLUGIN_ZEPHYR))
62 #define EMPATHY_IS_ACCOUNTS_PLUGIN_ZEPHYR_CLASS(klass) \
63 (G_TYPE_CHECK_CLASS_TYPE((klass), \
64 EMPATHY_TYPE_ACCOUNTS_PLUGIN_ZEPHYR))
65 #define EMPATHY_ACCOUNTS_PLUGIN_ZEPHYR_GET_CLASS(obj) \
66 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
67 EMPATHY_TYPE_ACCOUNTS_PLUGIN_ZEPHYR, \
68 EmpathyAccountsPluginZephyrClass))
69
70 GType ap_module_get_object_type (void);
71
72 G_END_DECLS
73
74 #endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_ZEPHYR_H__*/
0 /*
1 * empathy-accounts-plugin.c
2 *
3 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20 #include "config.h"
21
22 #include "empathy-accounts-plugin.h"
23
24 #include <libempathy/empathy-client-factory.h>
25 #include <libempathy/empathy-uoa-utils.h>
26
27 #include "empathy-accounts-plugin-widget.h"
28
29 G_DEFINE_TYPE (EmpathyAccountsPlugin, empathy_accounts_plugin, AP_TYPE_PLUGIN)
30
31 static void
32 widget_done_cb (EmpathyAccountsPluginWidget *widget,
33 ApPlugin *plugin)
34 {
35 ap_plugin_emit_finished (plugin);
36 }
37
38 static GtkWidget *
39 empathy_accounts_plugin_build_widget (ApPlugin *plugin)
40 {
41 AgAccount *account;
42 GtkWidget *widget;
43
44 account = ap_plugin_get_account (plugin);
45 empathy_uoa_manager_set_default (ag_account_get_manager (account));
46
47 widget = empathy_accounts_plugin_widget_new (account);
48
49 g_signal_connect (widget, "done",
50 G_CALLBACK (widget_done_cb), plugin);
51
52 return widget;
53 }
54
55 static void
56 store_delete_cb (AgAccount *account,
57 const GError *error,
58 gpointer user_data)
59 {
60 GSimpleAsyncResult *result = user_data;
61
62 if (error != NULL)
63 {
64 g_debug ("Failed to delete account with ID '%u': %s",
65 account->id, error->message);
66
67 g_simple_async_result_set_from_error (result, error);
68 }
69
70 g_simple_async_result_complete (result);
71 g_object_unref (result);
72 }
73
74 static void
75 empathy_accounts_plugin_delete_account (ApPlugin *plugin,
76 GAsyncReadyCallback callback,
77 gpointer user_data)
78 {
79 AgAccount *account;
80 GSimpleAsyncResult *result;
81
82 result = g_simple_async_result_new (G_OBJECT (plugin),
83 callback, user_data, ap_plugin_delete_account);
84
85 account = ap_plugin_get_account (plugin);
86
87 ag_account_delete (account);
88 ag_account_store (account, store_delete_cb, result);
89 }
90
91 static void
92 empathy_accounts_plugin_act_headless (ApPlugin *plugin)
93 {
94 }
95
96 static void
97 empathy_accounts_plugin_class_init (
98 EmpathyAccountsPluginClass *klass)
99 {
100 ApPluginClass *pclass = AP_PLUGIN_CLASS (klass);
101
102 pclass->build_widget = empathy_accounts_plugin_build_widget;
103 pclass->delete_account = empathy_accounts_plugin_delete_account;
104 pclass->act_headless = empathy_accounts_plugin_act_headless;
105 }
106
107 static void
108 empathy_accounts_plugin_init (EmpathyAccountsPlugin *self)
109 {
110 if (tp_account_manager_can_set_default ())
111 {
112 EmpathyClientFactory *factory;
113 TpAccountManager *am;
114
115 factory = empathy_client_factory_dup ();
116 am = tp_account_manager_new_with_factory (
117 TP_SIMPLE_CLIENT_FACTORY (factory));
118 tp_account_manager_set_default (am);
119
120 g_object_unref (factory);
121 g_object_unref (am);
122 }
123
124 }
0 /*
1 * empathy-accounts-plugin.h
2 *
3 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20 #ifndef __EMPATHY_ACCOUNTS_PLUGIN_H__
21 #define __EMPATHY_ACCOUNTS_PLUGIN_H__
22
23 #include <libaccount-plugin/plugin.h>
24
25 G_BEGIN_DECLS
26
27 typedef struct _EmpathyAccountsPlugin EmpathyAccountsPlugin;
28 typedef struct _EmpathyAccountsPluginClass EmpathyAccountsPluginClass;
29
30 struct _EmpathyAccountsPluginClass
31 {
32 /*<private>*/
33 ApPluginClass parent_class;
34 };
35
36 struct _EmpathyAccountsPlugin
37 {
38 /*<private>*/
39 ApPlugin parent;
40 };
41
42 GType empathy_accounts_plugin_get_type (void);
43
44 /* TYPE MACROS */
45 #define EMPATHY_TYPE_ACCOUNTS_PLUGIN \
46 (empathy_accounts_plugin_get_type ())
47 #define EMPATHY_ACCOUNTS_PLUGIN(obj) \
48 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
49 EMPATHY_TYPE_ACCOUNTS_PLUGIN, \
50 EmpathyAccountsPlugin))
51 #define EMPATHY_ACCOUNTS_PLUGIN_CLASS(klass) \
52 (G_TYPE_CHECK_CLASS_CAST((klass), \
53 EMPATHY_TYPE_ACCOUNTS_PLUGIN, \
54 EmpathyAccountsPluginClass))
55 #define EMPATHY_IS_ACCOUNTS_PLUGIN(obj) \
56 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
57 EMPATHY_TYPE_ACCOUNTS_PLUGIN))
58 #define EMPATHY_IS_ACCOUNTS_PLUGIN_CLASS(klass) \
59 (G_TYPE_CHECK_CLASS_TYPE((klass), \
60 EMPATHY_TYPE_ACCOUNTS_PLUGIN))
61 #define EMPATHY_ACCOUNTS_PLUGIN_GET_CLASS(obj) \
62 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
63 EMPATHY_TYPE_ACCOUNTS_PLUGIN, \
64 EmpathyAccountsPluginClass))
65
66 G_END_DECLS
67
68 #endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_H__*/
+0
-46
ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-aim.c less more
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-aim.c
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #include "config.h"
24
25 #include "empathy-accounts-plugin-aim.h"
26
27 G_DEFINE_TYPE (EmpathyAccountsPluginAim, empathy_accounts_plugin_aim,\
28 EMPATHY_TYPE_ACCOUNTS_PLUGIN)
29
30 static void
31 empathy_accounts_plugin_aim_class_init (
32 EmpathyAccountsPluginAimClass *klass)
33 {
34 }
35
36 static void
37 empathy_accounts_plugin_aim_init (EmpathyAccountsPluginAim *self)
38 {
39 }
40
41 GType
42 ap_module_get_object_type (void)
43 {
44 return EMPATHY_TYPE_ACCOUNTS_PLUGIN_AIM;
45 }
+0
-75
ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-aim.h less more
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-aim.h
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23
24 #ifndef __EMPATHY_ACCOUNTS_PLUGIN_AIM_H__
25 #define __EMPATHY_ACCOUNTS_PLUGIN_AIM_H__
26
27 #include "empathy-accounts-plugin.h"
28
29 G_BEGIN_DECLS
30
31 typedef struct _EmpathyAccountsPluginAim EmpathyAccountsPluginAim;
32 typedef struct _EmpathyAccountsPluginAimClass EmpathyAccountsPluginAimClass;
33
34 struct _EmpathyAccountsPluginAimClass
35 {
36 /*<private>*/
37 EmpathyAccountsPluginClass parent_class;
38 };
39
40 struct _EmpathyAccountsPluginAim
41 {
42 /*<private>*/
43 EmpathyAccountsPlugin parent;
44 };
45
46 GType empathy_accounts_plugin_aim_get_type (void);
47
48 /* TYPE MACROS */
49 #define EMPATHY_TYPE_ACCOUNTS_PLUGIN_AIM \
50 (empathy_accounts_plugin_aim_get_type ())
51 #define EMPATHY_ACCOUNTS_PLUGIN_AIM(obj) \
52 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
53 EMPATHY_TYPE_ACCOUNTS_PLUGIN_AIM, \
54 EmpathyAccountsPluginAim))
55 #define EMPATHY_ACCOUNTS_PLUGIN_AIM_CLASS(klass) \
56 (G_TYPE_CHECK_CLASS_CAST((klass), \
57 EMPATHY_TYPE_ACCOUNTS_PLUGIN_AIM, \
58 EmpathyAccountsPluginAimClass))
59 #define EMPATHY_IS_ACCOUNTS_PLUGIN_AIM(obj) \
60 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
61 EMPATHY_TYPE_ACCOUNTS_PLUGIN_AIM))
62 #define EMPATHY_IS_ACCOUNTS_PLUGIN_AIM_CLASS(klass) \
63 (G_TYPE_CHECK_CLASS_TYPE((klass), \
64 EMPATHY_TYPE_ACCOUNTS_PLUGIN_AIM))
65 #define EMPATHY_ACCOUNTS_PLUGIN_AIM_GET_CLASS(obj) \
66 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
67 EMPATHY_TYPE_ACCOUNTS_PLUGIN_AIM, \
68 EmpathyAccountsPluginAimClass))
69
70 GType ap_module_get_object_type (void);
71
72 G_END_DECLS
73
74 #endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_AIM_H__*/
+0
-46
ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-gadugadu.c less more
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-gadugadu.c
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #include "config.h"
24
25 #include "empathy-accounts-plugin-gadugadu.h"
26
27 G_DEFINE_TYPE (EmpathyAccountsPluginGadugadu, empathy_accounts_plugin_gadugadu,\
28 EMPATHY_TYPE_ACCOUNTS_PLUGIN)
29
30 static void
31 empathy_accounts_plugin_gadugadu_class_init (
32 EmpathyAccountsPluginGadugaduClass *klass)
33 {
34 }
35
36 static void
37 empathy_accounts_plugin_gadugadu_init (EmpathyAccountsPluginGadugadu *self)
38 {
39 }
40
41 GType
42 ap_module_get_object_type (void)
43 {
44 return EMPATHY_TYPE_ACCOUNTS_PLUGIN_GADUGADU;
45 }
+0
-75
ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-gadugadu.h less more
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-gadugadu.h
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23
24 #ifndef __EMPATHY_ACCOUNTS_PLUGIN_GADUGADU_H__
25 #define __EMPATHY_ACCOUNTS_PLUGIN_GADUGADU_H__
26
27 #include "empathy-accounts-plugin.h"
28
29 G_BEGIN_DECLS
30
31 typedef struct _EmpathyAccountsPluginGadugadu EmpathyAccountsPluginGadugadu;
32 typedef struct _EmpathyAccountsPluginGadugaduClass EmpathyAccountsPluginGadugaduClass;
33
34 struct _EmpathyAccountsPluginGadugaduClass
35 {
36 /*<private>*/
37 EmpathyAccountsPluginClass parent_class;
38 };
39
40 struct _EmpathyAccountsPluginGadugadu
41 {
42 /*<private>*/
43 EmpathyAccountsPlugin parent;
44 };
45
46 GType empathy_accounts_plugin_gadugadu_get_type (void);
47
48 /* TYPE MACROS */
49 #define EMPATHY_TYPE_ACCOUNTS_PLUGIN_GADUGADU \
50 (empathy_accounts_plugin_gadugadu_get_type ())
51 #define EMPATHY_ACCOUNTS_PLUGIN_GADUGADU(obj) \
52 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
53 EMPATHY_TYPE_ACCOUNTS_PLUGIN_GADUGADU, \
54 EmpathyAccountsPluginGadugadu))
55 #define EMPATHY_ACCOUNTS_PLUGIN_GADUGADU_CLASS(klass) \
56 (G_TYPE_CHECK_CLASS_CAST((klass), \
57 EMPATHY_TYPE_ACCOUNTS_PLUGIN_GADUGADU, \
58 EmpathyAccountsPluginGadugaduClass))
59 #define EMPATHY_IS_ACCOUNTS_PLUGIN_GADUGADU(obj) \
60 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
61 EMPATHY_TYPE_ACCOUNTS_PLUGIN_GADUGADU))
62 #define EMPATHY_IS_ACCOUNTS_PLUGIN_GADUGADU_CLASS(klass) \
63 (G_TYPE_CHECK_CLASS_TYPE((klass), \
64 EMPATHY_TYPE_ACCOUNTS_PLUGIN_GADUGADU))
65 #define EMPATHY_ACCOUNTS_PLUGIN_GADUGADU_GET_CLASS(obj) \
66 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
67 EMPATHY_TYPE_ACCOUNTS_PLUGIN_GADUGADU, \
68 EmpathyAccountsPluginGadugaduClass))
69
70 GType ap_module_get_object_type (void);
71
72 G_END_DECLS
73
74 #endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_GADUGADU_H__*/
+0
-46
ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-groupwise.c less more
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-groupwise.c
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #include "config.h"
24
25 #include "empathy-accounts-plugin-groupwise.h"
26
27 G_DEFINE_TYPE (EmpathyAccountsPluginGroupwise, empathy_accounts_plugin_groupwise,\
28 EMPATHY_TYPE_ACCOUNTS_PLUGIN)
29
30 static void
31 empathy_accounts_plugin_groupwise_class_init (
32 EmpathyAccountsPluginGroupwiseClass *klass)
33 {
34 }
35
36 static void
37 empathy_accounts_plugin_groupwise_init (EmpathyAccountsPluginGroupwise *self)
38 {
39 }
40
41 GType
42 ap_module_get_object_type (void)
43 {
44 return EMPATHY_TYPE_ACCOUNTS_PLUGIN_GROUPWISE;
45 }
+0
-75
ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-groupwise.h less more
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-groupwise.h
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23
24 #ifndef __EMPATHY_ACCOUNTS_PLUGIN_GROUPWISE_H__
25 #define __EMPATHY_ACCOUNTS_PLUGIN_GROUPWISE_H__
26
27 #include "empathy-accounts-plugin.h"
28
29 G_BEGIN_DECLS
30
31 typedef struct _EmpathyAccountsPluginGroupwise EmpathyAccountsPluginGroupwise;
32 typedef struct _EmpathyAccountsPluginGroupwiseClass EmpathyAccountsPluginGroupwiseClass;
33
34 struct _EmpathyAccountsPluginGroupwiseClass
35 {
36 /*<private>*/
37 EmpathyAccountsPluginClass parent_class;
38 };
39
40 struct _EmpathyAccountsPluginGroupwise
41 {
42 /*<private>*/
43 EmpathyAccountsPlugin parent;
44 };
45
46 GType empathy_accounts_plugin_groupwise_get_type (void);
47
48 /* TYPE MACROS */
49 #define EMPATHY_TYPE_ACCOUNTS_PLUGIN_GROUPWISE \
50 (empathy_accounts_plugin_groupwise_get_type ())
51 #define EMPATHY_ACCOUNTS_PLUGIN_GROUPWISE(obj) \
52 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
53 EMPATHY_TYPE_ACCOUNTS_PLUGIN_GROUPWISE, \
54 EmpathyAccountsPluginGroupwise))
55 #define EMPATHY_ACCOUNTS_PLUGIN_GROUPWISE_CLASS(klass) \
56 (G_TYPE_CHECK_CLASS_CAST((klass), \
57 EMPATHY_TYPE_ACCOUNTS_PLUGIN_GROUPWISE, \
58 EmpathyAccountsPluginGroupwiseClass))
59 #define EMPATHY_IS_ACCOUNTS_PLUGIN_GROUPWISE(obj) \
60 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
61 EMPATHY_TYPE_ACCOUNTS_PLUGIN_GROUPWISE))
62 #define EMPATHY_IS_ACCOUNTS_PLUGIN_GROUPWISE_CLASS(klass) \
63 (G_TYPE_CHECK_CLASS_TYPE((klass), \
64 EMPATHY_TYPE_ACCOUNTS_PLUGIN_GROUPWISE))
65 #define EMPATHY_ACCOUNTS_PLUGIN_GROUPWISE_GET_CLASS(obj) \
66 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
67 EMPATHY_TYPE_ACCOUNTS_PLUGIN_GROUPWISE, \
68 EmpathyAccountsPluginGroupwiseClass))
69
70 GType ap_module_get_object_type (void);
71
72 G_END_DECLS
73
74 #endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_GROUPWISE_H__*/
+0
-46
ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-icq.c less more
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-icq.c
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #include "config.h"
24
25 #include "empathy-accounts-plugin-icq.h"
26
27 G_DEFINE_TYPE (EmpathyAccountsPluginIcq, empathy_accounts_plugin_icq,\
28 EMPATHY_TYPE_ACCOUNTS_PLUGIN)
29
30 static void
31 empathy_accounts_plugin_icq_class_init (
32 EmpathyAccountsPluginIcqClass *klass)
33 {
34 }
35
36 static void
37 empathy_accounts_plugin_icq_init (EmpathyAccountsPluginIcq *self)
38 {
39 }
40
41 GType
42 ap_module_get_object_type (void)
43 {
44 return EMPATHY_TYPE_ACCOUNTS_PLUGIN_ICQ;
45 }
+0
-75
ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-icq.h less more
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-icq.h
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23
24 #ifndef __EMPATHY_ACCOUNTS_PLUGIN_ICQ_H__
25 #define __EMPATHY_ACCOUNTS_PLUGIN_ICQ_H__
26
27 #include "empathy-accounts-plugin.h"
28
29 G_BEGIN_DECLS
30
31 typedef struct _EmpathyAccountsPluginIcq EmpathyAccountsPluginIcq;
32 typedef struct _EmpathyAccountsPluginIcqClass EmpathyAccountsPluginIcqClass;
33
34 struct _EmpathyAccountsPluginIcqClass
35 {
36 /*<private>*/
37 EmpathyAccountsPluginClass parent_class;
38 };
39
40 struct _EmpathyAccountsPluginIcq
41 {
42 /*<private>*/
43 EmpathyAccountsPlugin parent;
44 };
45
46 GType empathy_accounts_plugin_icq_get_type (void);
47
48 /* TYPE MACROS */
49 #define EMPATHY_TYPE_ACCOUNTS_PLUGIN_ICQ \
50 (empathy_accounts_plugin_icq_get_type ())
51 #define EMPATHY_ACCOUNTS_PLUGIN_ICQ(obj) \
52 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
53 EMPATHY_TYPE_ACCOUNTS_PLUGIN_ICQ, \
54 EmpathyAccountsPluginIcq))
55 #define EMPATHY_ACCOUNTS_PLUGIN_ICQ_CLASS(klass) \
56 (G_TYPE_CHECK_CLASS_CAST((klass), \
57 EMPATHY_TYPE_ACCOUNTS_PLUGIN_ICQ, \
58 EmpathyAccountsPluginIcqClass))
59 #define EMPATHY_IS_ACCOUNTS_PLUGIN_ICQ(obj) \
60 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
61 EMPATHY_TYPE_ACCOUNTS_PLUGIN_ICQ))
62 #define EMPATHY_IS_ACCOUNTS_PLUGIN_ICQ_CLASS(klass) \
63 (G_TYPE_CHECK_CLASS_TYPE((klass), \
64 EMPATHY_TYPE_ACCOUNTS_PLUGIN_ICQ))
65 #define EMPATHY_ACCOUNTS_PLUGIN_ICQ_GET_CLASS(obj) \
66 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
67 EMPATHY_TYPE_ACCOUNTS_PLUGIN_ICQ, \
68 EmpathyAccountsPluginIcqClass))
69
70 GType ap_module_get_object_type (void);
71
72 G_END_DECLS
73
74 #endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_ICQ_H__*/
+0
-46
ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-irc.c less more
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-irc.c
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #include "config.h"
24
25 #include "empathy-accounts-plugin-irc.h"
26
27 G_DEFINE_TYPE (EmpathyAccountsPluginIrc, empathy_accounts_plugin_irc,\
28 EMPATHY_TYPE_ACCOUNTS_PLUGIN)
29
30 static void
31 empathy_accounts_plugin_irc_class_init (
32 EmpathyAccountsPluginIrcClass *klass)
33 {
34 }
35
36 static void
37 empathy_accounts_plugin_irc_init (EmpathyAccountsPluginIrc *self)
38 {
39 }
40
41 GType
42 ap_module_get_object_type (void)
43 {
44 return EMPATHY_TYPE_ACCOUNTS_PLUGIN_IRC;
45 }
+0
-75
ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-irc.h less more
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-irc.h
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23
24 #ifndef __EMPATHY_ACCOUNTS_PLUGIN_IRC_H__
25 #define __EMPATHY_ACCOUNTS_PLUGIN_IRC_H__
26
27 #include "empathy-accounts-plugin.h"
28
29 G_BEGIN_DECLS
30
31 typedef struct _EmpathyAccountsPluginIrc EmpathyAccountsPluginIrc;
32 typedef struct _EmpathyAccountsPluginIrcClass EmpathyAccountsPluginIrcClass;
33
34 struct _EmpathyAccountsPluginIrcClass
35 {
36 /*<private>*/
37 EmpathyAccountsPluginClass parent_class;
38 };
39
40 struct _EmpathyAccountsPluginIrc
41 {
42 /*<private>*/
43 EmpathyAccountsPlugin parent;
44 };
45
46 GType empathy_accounts_plugin_irc_get_type (void);
47
48 /* TYPE MACROS */
49 #define EMPATHY_TYPE_ACCOUNTS_PLUGIN_IRC \
50 (empathy_accounts_plugin_irc_get_type ())
51 #define EMPATHY_ACCOUNTS_PLUGIN_IRC(obj) \
52 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
53 EMPATHY_TYPE_ACCOUNTS_PLUGIN_IRC, \
54 EmpathyAccountsPluginIrc))
55 #define EMPATHY_ACCOUNTS_PLUGIN_IRC_CLASS(klass) \
56 (G_TYPE_CHECK_CLASS_CAST((klass), \
57 EMPATHY_TYPE_ACCOUNTS_PLUGIN_IRC, \
58 EmpathyAccountsPluginIrcClass))
59 #define EMPATHY_IS_ACCOUNTS_PLUGIN_IRC(obj) \
60 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
61 EMPATHY_TYPE_ACCOUNTS_PLUGIN_IRC))
62 #define EMPATHY_IS_ACCOUNTS_PLUGIN_IRC_CLASS(klass) \
63 (G_TYPE_CHECK_CLASS_TYPE((klass), \
64 EMPATHY_TYPE_ACCOUNTS_PLUGIN_IRC))
65 #define EMPATHY_ACCOUNTS_PLUGIN_IRC_GET_CLASS(obj) \
66 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
67 EMPATHY_TYPE_ACCOUNTS_PLUGIN_IRC, \
68 EmpathyAccountsPluginIrcClass))
69
70 GType ap_module_get_object_type (void);
71
72 G_END_DECLS
73
74 #endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_IRC_H__*/
+0
-46
ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-jabber.c less more
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-jabber.c
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #include "config.h"
24
25 #include "empathy-accounts-plugin-jabber.h"
26
27 G_DEFINE_TYPE (EmpathyAccountsPluginJabber, empathy_accounts_plugin_jabber,\
28 EMPATHY_TYPE_ACCOUNTS_PLUGIN)
29
30 static void
31 empathy_accounts_plugin_jabber_class_init (
32 EmpathyAccountsPluginJabberClass *klass)
33 {
34 }
35
36 static void
37 empathy_accounts_plugin_jabber_init (EmpathyAccountsPluginJabber *self)
38 {
39 }
40
41 GType
42 ap_module_get_object_type (void)
43 {
44 return EMPATHY_TYPE_ACCOUNTS_PLUGIN_JABBER;
45 }
+0
-75
ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-jabber.h less more
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-jabber.h
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23
24 #ifndef __EMPATHY_ACCOUNTS_PLUGIN_JABBER_H__
25 #define __EMPATHY_ACCOUNTS_PLUGIN_JABBER_H__
26
27 #include "empathy-accounts-plugin.h"
28
29 G_BEGIN_DECLS
30
31 typedef struct _EmpathyAccountsPluginJabber EmpathyAccountsPluginJabber;
32 typedef struct _EmpathyAccountsPluginJabberClass EmpathyAccountsPluginJabberClass;
33
34 struct _EmpathyAccountsPluginJabberClass
35 {
36 /*<private>*/
37 EmpathyAccountsPluginClass parent_class;
38 };
39
40 struct _EmpathyAccountsPluginJabber
41 {
42 /*<private>*/
43 EmpathyAccountsPlugin parent;
44 };
45
46 GType empathy_accounts_plugin_jabber_get_type (void);
47
48 /* TYPE MACROS */
49 #define EMPATHY_TYPE_ACCOUNTS_PLUGIN_JABBER \
50 (empathy_accounts_plugin_jabber_get_type ())
51 #define EMPATHY_ACCOUNTS_PLUGIN_JABBER(obj) \
52 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
53 EMPATHY_TYPE_ACCOUNTS_PLUGIN_JABBER, \
54 EmpathyAccountsPluginJabber))
55 #define EMPATHY_ACCOUNTS_PLUGIN_JABBER_CLASS(klass) \
56 (G_TYPE_CHECK_CLASS_CAST((klass), \
57 EMPATHY_TYPE_ACCOUNTS_PLUGIN_JABBER, \
58 EmpathyAccountsPluginJabberClass))
59 #define EMPATHY_IS_ACCOUNTS_PLUGIN_JABBER(obj) \
60 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
61 EMPATHY_TYPE_ACCOUNTS_PLUGIN_JABBER))
62 #define EMPATHY_IS_ACCOUNTS_PLUGIN_JABBER_CLASS(klass) \
63 (G_TYPE_CHECK_CLASS_TYPE((klass), \
64 EMPATHY_TYPE_ACCOUNTS_PLUGIN_JABBER))
65 #define EMPATHY_ACCOUNTS_PLUGIN_JABBER_GET_CLASS(obj) \
66 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
67 EMPATHY_TYPE_ACCOUNTS_PLUGIN_JABBER, \
68 EmpathyAccountsPluginJabberClass))
69
70 GType ap_module_get_object_type (void);
71
72 G_END_DECLS
73
74 #endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_JABBER_H__*/
+0
-46
ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-local-xmpp.c less more
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-local-xmpp.c
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #include "config.h"
24
25 #include "empathy-accounts-plugin-local-xmpp.h"
26
27 G_DEFINE_TYPE (EmpathyAccountsPluginLocalXmpp, empathy_accounts_plugin_local_xmpp,\
28 EMPATHY_TYPE_ACCOUNTS_PLUGIN)
29
30 static void
31 empathy_accounts_plugin_local_xmpp_class_init (
32 EmpathyAccountsPluginLocalXmppClass *klass)
33 {
34 }
35
36 static void
37 empathy_accounts_plugin_local_xmpp_init (EmpathyAccountsPluginLocalXmpp *self)
38 {
39 }
40
41 GType
42 ap_module_get_object_type (void)
43 {
44 return EMPATHY_TYPE_ACCOUNTS_PLUGIN_LOCAL_XMPP;
45 }
+0
-75
ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-local-xmpp.h less more
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-local-xmpp.h
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23
24 #ifndef __EMPATHY_ACCOUNTS_PLUGIN_LOCAL_XMPP_H__
25 #define __EMPATHY_ACCOUNTS_PLUGIN_LOCAL_XMPP_H__
26
27 #include "empathy-accounts-plugin.h"
28
29 G_BEGIN_DECLS
30
31 typedef struct _EmpathyAccountsPluginLocalXmpp EmpathyAccountsPluginLocalXmpp;
32 typedef struct _EmpathyAccountsPluginLocalXmppClass EmpathyAccountsPluginLocalXmppClass;
33
34 struct _EmpathyAccountsPluginLocalXmppClass
35 {
36 /*<private>*/
37 EmpathyAccountsPluginClass parent_class;
38 };
39
40 struct _EmpathyAccountsPluginLocalXmpp
41 {
42 /*<private>*/
43 EmpathyAccountsPlugin parent;
44 };
45
46 GType empathy_accounts_plugin_local_xmpp_get_type (void);
47
48 /* TYPE MACROS */
49 #define EMPATHY_TYPE_ACCOUNTS_PLUGIN_LOCAL_XMPP \
50 (empathy_accounts_plugin_local_xmpp_get_type ())
51 #define EMPATHY_ACCOUNTS_PLUGIN_LOCAL_XMPP(obj) \
52 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
53 EMPATHY_TYPE_ACCOUNTS_PLUGIN_LOCAL_XMPP, \
54 EmpathyAccountsPluginLocalXmpp))
55 #define EMPATHY_ACCOUNTS_PLUGIN_LOCAL_XMPP_CLASS(klass) \
56 (G_TYPE_CHECK_CLASS_CAST((klass), \
57 EMPATHY_TYPE_ACCOUNTS_PLUGIN_LOCAL_XMPP, \
58 EmpathyAccountsPluginLocalXmppClass))
59 #define EMPATHY_IS_ACCOUNTS_PLUGIN_LOCAL_XMPP(obj) \
60 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
61 EMPATHY_TYPE_ACCOUNTS_PLUGIN_LOCAL_XMPP))
62 #define EMPATHY_IS_ACCOUNTS_PLUGIN_LOCAL_XMPP_CLASS(klass) \
63 (G_TYPE_CHECK_CLASS_TYPE((klass), \
64 EMPATHY_TYPE_ACCOUNTS_PLUGIN_LOCAL_XMPP))
65 #define EMPATHY_ACCOUNTS_PLUGIN_LOCAL_XMPP_GET_CLASS(obj) \
66 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
67 EMPATHY_TYPE_ACCOUNTS_PLUGIN_LOCAL_XMPP, \
68 EmpathyAccountsPluginLocalXmppClass))
69
70 GType ap_module_get_object_type (void);
71
72 G_END_DECLS
73
74 #endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_LOCAL_XMPP_H__*/
+0
-46
ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-mxit.c less more
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-mxit.c
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #include "config.h"
24
25 #include "empathy-accounts-plugin-mxit.h"
26
27 G_DEFINE_TYPE (EmpathyAccountsPluginMxit, empathy_accounts_plugin_mxit,\
28 EMPATHY_TYPE_ACCOUNTS_PLUGIN)
29
30 static void
31 empathy_accounts_plugin_mxit_class_init (
32 EmpathyAccountsPluginMxitClass *klass)
33 {
34 }
35
36 static void
37 empathy_accounts_plugin_mxit_init (EmpathyAccountsPluginMxit *self)
38 {
39 }
40
41 GType
42 ap_module_get_object_type (void)
43 {
44 return EMPATHY_TYPE_ACCOUNTS_PLUGIN_MXIT;
45 }
+0
-75
ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-mxit.h less more
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-mxit.h
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23
24 #ifndef __EMPATHY_ACCOUNTS_PLUGIN_MXIT_H__
25 #define __EMPATHY_ACCOUNTS_PLUGIN_MXIT_H__
26
27 #include "empathy-accounts-plugin.h"
28
29 G_BEGIN_DECLS
30
31 typedef struct _EmpathyAccountsPluginMxit EmpathyAccountsPluginMxit;
32 typedef struct _EmpathyAccountsPluginMxitClass EmpathyAccountsPluginMxitClass;
33
34 struct _EmpathyAccountsPluginMxitClass
35 {
36 /*<private>*/
37 EmpathyAccountsPluginClass parent_class;
38 };
39
40 struct _EmpathyAccountsPluginMxit
41 {
42 /*<private>*/
43 EmpathyAccountsPlugin parent;
44 };
45
46 GType empathy_accounts_plugin_mxit_get_type (void);
47
48 /* TYPE MACROS */
49 #define EMPATHY_TYPE_ACCOUNTS_PLUGIN_MXIT \
50 (empathy_accounts_plugin_mxit_get_type ())
51 #define EMPATHY_ACCOUNTS_PLUGIN_MXIT(obj) \
52 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
53 EMPATHY_TYPE_ACCOUNTS_PLUGIN_MXIT, \
54 EmpathyAccountsPluginMxit))
55 #define EMPATHY_ACCOUNTS_PLUGIN_MXIT_CLASS(klass) \
56 (G_TYPE_CHECK_CLASS_CAST((klass), \
57 EMPATHY_TYPE_ACCOUNTS_PLUGIN_MXIT, \
58 EmpathyAccountsPluginMxitClass))
59 #define EMPATHY_IS_ACCOUNTS_PLUGIN_MXIT(obj) \
60 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
61 EMPATHY_TYPE_ACCOUNTS_PLUGIN_MXIT))
62 #define EMPATHY_IS_ACCOUNTS_PLUGIN_MXIT_CLASS(klass) \
63 (G_TYPE_CHECK_CLASS_TYPE((klass), \
64 EMPATHY_TYPE_ACCOUNTS_PLUGIN_MXIT))
65 #define EMPATHY_ACCOUNTS_PLUGIN_MXIT_GET_CLASS(obj) \
66 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
67 EMPATHY_TYPE_ACCOUNTS_PLUGIN_MXIT, \
68 EmpathyAccountsPluginMxitClass))
69
70 GType ap_module_get_object_type (void);
71
72 G_END_DECLS
73
74 #endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_MXIT_H__*/
+0
-46
ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-myspace.c less more
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-myspace.c
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #include "config.h"
24
25 #include "empathy-accounts-plugin-myspace.h"
26
27 G_DEFINE_TYPE (EmpathyAccountsPluginMyspace, empathy_accounts_plugin_myspace,\
28 EMPATHY_TYPE_ACCOUNTS_PLUGIN)
29
30 static void
31 empathy_accounts_plugin_myspace_class_init (
32 EmpathyAccountsPluginMyspaceClass *klass)
33 {
34 }
35
36 static void
37 empathy_accounts_plugin_myspace_init (EmpathyAccountsPluginMyspace *self)
38 {
39 }
40
41 GType
42 ap_module_get_object_type (void)
43 {
44 return EMPATHY_TYPE_ACCOUNTS_PLUGIN_MYSPACE;
45 }
+0
-75
ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-myspace.h less more
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-myspace.h
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23
24 #ifndef __EMPATHY_ACCOUNTS_PLUGIN_MYSPACE_H__
25 #define __EMPATHY_ACCOUNTS_PLUGIN_MYSPACE_H__
26
27 #include "empathy-accounts-plugin.h"
28
29 G_BEGIN_DECLS
30
31 typedef struct _EmpathyAccountsPluginMyspace EmpathyAccountsPluginMyspace;
32 typedef struct _EmpathyAccountsPluginMyspaceClass EmpathyAccountsPluginMyspaceClass;
33
34 struct _EmpathyAccountsPluginMyspaceClass
35 {
36 /*<private>*/
37 EmpathyAccountsPluginClass parent_class;
38 };
39
40 struct _EmpathyAccountsPluginMyspace
41 {
42 /*<private>*/
43 EmpathyAccountsPlugin parent;
44 };
45
46 GType empathy_accounts_plugin_myspace_get_type (void);
47
48 /* TYPE MACROS */
49 #define EMPATHY_TYPE_ACCOUNTS_PLUGIN_MYSPACE \
50 (empathy_accounts_plugin_myspace_get_type ())
51 #define EMPATHY_ACCOUNTS_PLUGIN_MYSPACE(obj) \
52 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
53 EMPATHY_TYPE_ACCOUNTS_PLUGIN_MYSPACE, \
54 EmpathyAccountsPluginMyspace))
55 #define EMPATHY_ACCOUNTS_PLUGIN_MYSPACE_CLASS(klass) \
56 (G_TYPE_CHECK_CLASS_CAST((klass), \
57 EMPATHY_TYPE_ACCOUNTS_PLUGIN_MYSPACE, \
58 EmpathyAccountsPluginMyspaceClass))
59 #define EMPATHY_IS_ACCOUNTS_PLUGIN_MYSPACE(obj) \
60 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
61 EMPATHY_TYPE_ACCOUNTS_PLUGIN_MYSPACE))
62 #define EMPATHY_IS_ACCOUNTS_PLUGIN_MYSPACE_CLASS(klass) \
63 (G_TYPE_CHECK_CLASS_TYPE((klass), \
64 EMPATHY_TYPE_ACCOUNTS_PLUGIN_MYSPACE))
65 #define EMPATHY_ACCOUNTS_PLUGIN_MYSPACE_GET_CLASS(obj) \
66 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
67 EMPATHY_TYPE_ACCOUNTS_PLUGIN_MYSPACE, \
68 EmpathyAccountsPluginMyspaceClass))
69
70 GType ap_module_get_object_type (void);
71
72 G_END_DECLS
73
74 #endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_MYSPACE_H__*/
+0
-46
ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sametime.c less more
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-sametime.c
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #include "config.h"
24
25 #include "empathy-accounts-plugin-sametime.h"
26
27 G_DEFINE_TYPE (EmpathyAccountsPluginSametime, empathy_accounts_plugin_sametime,\
28 EMPATHY_TYPE_ACCOUNTS_PLUGIN)
29
30 static void
31 empathy_accounts_plugin_sametime_class_init (
32 EmpathyAccountsPluginSametimeClass *klass)
33 {
34 }
35
36 static void
37 empathy_accounts_plugin_sametime_init (EmpathyAccountsPluginSametime *self)
38 {
39 }
40
41 GType
42 ap_module_get_object_type (void)
43 {
44 return EMPATHY_TYPE_ACCOUNTS_PLUGIN_SAMETIME;
45 }
+0
-75
ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sametime.h less more
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-sametime.h
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23
24 #ifndef __EMPATHY_ACCOUNTS_PLUGIN_SAMETIME_H__
25 #define __EMPATHY_ACCOUNTS_PLUGIN_SAMETIME_H__
26
27 #include "empathy-accounts-plugin.h"
28
29 G_BEGIN_DECLS
30
31 typedef struct _EmpathyAccountsPluginSametime EmpathyAccountsPluginSametime;
32 typedef struct _EmpathyAccountsPluginSametimeClass EmpathyAccountsPluginSametimeClass;
33
34 struct _EmpathyAccountsPluginSametimeClass
35 {
36 /*<private>*/
37 EmpathyAccountsPluginClass parent_class;
38 };
39
40 struct _EmpathyAccountsPluginSametime
41 {
42 /*<private>*/
43 EmpathyAccountsPlugin parent;
44 };
45
46 GType empathy_accounts_plugin_sametime_get_type (void);
47
48 /* TYPE MACROS */
49 #define EMPATHY_TYPE_ACCOUNTS_PLUGIN_SAMETIME \
50 (empathy_accounts_plugin_sametime_get_type ())
51 #define EMPATHY_ACCOUNTS_PLUGIN_SAMETIME(obj) \
52 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
53 EMPATHY_TYPE_ACCOUNTS_PLUGIN_SAMETIME, \
54 EmpathyAccountsPluginSametime))
55 #define EMPATHY_ACCOUNTS_PLUGIN_SAMETIME_CLASS(klass) \
56 (G_TYPE_CHECK_CLASS_CAST((klass), \
57 EMPATHY_TYPE_ACCOUNTS_PLUGIN_SAMETIME, \
58 EmpathyAccountsPluginSametimeClass))
59 #define EMPATHY_IS_ACCOUNTS_PLUGIN_SAMETIME(obj) \
60 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
61 EMPATHY_TYPE_ACCOUNTS_PLUGIN_SAMETIME))
62 #define EMPATHY_IS_ACCOUNTS_PLUGIN_SAMETIME_CLASS(klass) \
63 (G_TYPE_CHECK_CLASS_TYPE((klass), \
64 EMPATHY_TYPE_ACCOUNTS_PLUGIN_SAMETIME))
65 #define EMPATHY_ACCOUNTS_PLUGIN_SAMETIME_GET_CLASS(obj) \
66 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
67 EMPATHY_TYPE_ACCOUNTS_PLUGIN_SAMETIME, \
68 EmpathyAccountsPluginSametimeClass))
69
70 GType ap_module_get_object_type (void);
71
72 G_END_DECLS
73
74 #endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_SAMETIME_H__*/
+0
-46
ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sip.c less more
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-sip.c
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #include "config.h"
24
25 #include "empathy-accounts-plugin-sip.h"
26
27 G_DEFINE_TYPE (EmpathyAccountsPluginSip, empathy_accounts_plugin_sip,\
28 EMPATHY_TYPE_ACCOUNTS_PLUGIN)
29
30 static void
31 empathy_accounts_plugin_sip_class_init (
32 EmpathyAccountsPluginSipClass *klass)
33 {
34 }
35
36 static void
37 empathy_accounts_plugin_sip_init (EmpathyAccountsPluginSip *self)
38 {
39 }
40
41 GType
42 ap_module_get_object_type (void)
43 {
44 return EMPATHY_TYPE_ACCOUNTS_PLUGIN_SIP;
45 }
+0
-75
ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sip.h less more
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-sip.h
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23
24 #ifndef __EMPATHY_ACCOUNTS_PLUGIN_SIP_H__
25 #define __EMPATHY_ACCOUNTS_PLUGIN_SIP_H__
26
27 #include "empathy-accounts-plugin.h"
28
29 G_BEGIN_DECLS
30
31 typedef struct _EmpathyAccountsPluginSip EmpathyAccountsPluginSip;
32 typedef struct _EmpathyAccountsPluginSipClass EmpathyAccountsPluginSipClass;
33
34 struct _EmpathyAccountsPluginSipClass
35 {
36 /*<private>*/
37 EmpathyAccountsPluginClass parent_class;
38 };
39
40 struct _EmpathyAccountsPluginSip
41 {
42 /*<private>*/
43 EmpathyAccountsPlugin parent;
44 };
45
46 GType empathy_accounts_plugin_sip_get_type (void);
47
48 /* TYPE MACROS */
49 #define EMPATHY_TYPE_ACCOUNTS_PLUGIN_SIP \
50 (empathy_accounts_plugin_sip_get_type ())
51 #define EMPATHY_ACCOUNTS_PLUGIN_SIP(obj) \
52 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
53 EMPATHY_TYPE_ACCOUNTS_PLUGIN_SIP, \
54 EmpathyAccountsPluginSip))
55 #define EMPATHY_ACCOUNTS_PLUGIN_SIP_CLASS(klass) \
56 (G_TYPE_CHECK_CLASS_CAST((klass), \
57 EMPATHY_TYPE_ACCOUNTS_PLUGIN_SIP, \
58 EmpathyAccountsPluginSipClass))
59 #define EMPATHY_IS_ACCOUNTS_PLUGIN_SIP(obj) \
60 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
61 EMPATHY_TYPE_ACCOUNTS_PLUGIN_SIP))
62 #define EMPATHY_IS_ACCOUNTS_PLUGIN_SIP_CLASS(klass) \
63 (G_TYPE_CHECK_CLASS_TYPE((klass), \
64 EMPATHY_TYPE_ACCOUNTS_PLUGIN_SIP))
65 #define EMPATHY_ACCOUNTS_PLUGIN_SIP_GET_CLASS(obj) \
66 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
67 EMPATHY_TYPE_ACCOUNTS_PLUGIN_SIP, \
68 EmpathyAccountsPluginSipClass))
69
70 GType ap_module_get_object_type (void);
71
72 G_END_DECLS
73
74 #endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_SIP_H__*/
+0
-431
ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-widget.c less more
0 /*
1 * empathy-accounts-plugin-widget.c
2 *
3 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20
21 #include "config.h"
22
23 #include "empathy-accounts-plugin-widget.h"
24
25 #include <glib/gi18n-lib.h>
26
27 #include <telepathy-glib/telepathy-glib.h>
28
29 #include <libaccounts-glib/ag-service.h>
30 #include <libaccounts-glib/ag-account-service.h>
31
32 #include <libempathy-gtk/empathy-account-widget.h>
33
34 G_DEFINE_TYPE (EmpathyAccountsPluginWidget, empathy_accounts_plugin_widget, GTK_TYPE_BOX)
35
36 enum
37 {
38 PROP_ACCOUNT = 1,
39 N_PROPS
40 };
41
42 enum
43 {
44 SIG_DONE,
45 LAST_SIGNAL
46 };
47
48 static guint signals[LAST_SIGNAL];
49
50 struct _EmpathyAccountsPluginWidgetPriv
51 {
52 AgAccount *account;
53
54 EmpathyAccountSettings *settings;
55
56 EmpathyAccountWidget *account_widget;
57 GtkWidget *done_button;
58 };
59
60 static void
61 empathy_accounts_plugin_widget_get_property (GObject *object,
62 guint property_id,
63 GValue *value,
64 GParamSpec *pspec)
65 {
66 EmpathyAccountsPluginWidget *self = EMPATHY_ACCOUNTS_PLUGIN_WIDGET (object);
67
68 switch (property_id)
69 {
70 case PROP_ACCOUNT:
71 g_value_set_object (value, self->priv->account);
72 break;
73 default:
74 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
75 break;
76 }
77 }
78
79 static void
80 empathy_accounts_plugin_widget_set_property (GObject *object,
81 guint property_id,
82 const GValue *value,
83 GParamSpec *pspec)
84 {
85 EmpathyAccountsPluginWidget *self = EMPATHY_ACCOUNTS_PLUGIN_WIDGET (object);
86
87 switch (property_id)
88 {
89 case PROP_ACCOUNT:
90 self->priv->account = g_value_dup_object (value);
91 break;
92 default:
93 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
94 break;
95 }
96 }
97
98 static EmpathyAccountSettings *
99 create_account_settings (AgAccount *account)
100 {
101 AgService *service;
102 GList *services;
103 AgAccountService *account_service;
104 GValue v = G_VALUE_INIT;
105 gchar *manager = NULL, *protocol = NULL;
106 EmpathyAccountSettings *settings;
107
108 g_assert (account->id == 0);
109
110 services = ag_account_list_services_by_type (account, "IM");
111 g_return_val_if_fail (services != NULL, NULL);
112 service = (AgService *) services->data;
113
114 account_service = ag_account_service_new (account, service);
115
116 g_value_init (&v, G_TYPE_STRING);
117 if (ag_account_service_get_value (account_service,
118 "telepathy/manager", &v) != AG_SETTING_SOURCE_NONE)
119 manager = g_value_dup_string (&v);
120 g_value_unset (&v);
121
122 g_value_init (&v, G_TYPE_STRING);
123 if (ag_account_service_get_value (account_service,
124 "telepathy/protocol", &v) != AG_SETTING_SOURCE_NONE)
125 protocol = g_value_dup_string (&v);
126 g_value_unset (&v);
127
128 g_return_val_if_fail (manager != NULL, NULL);
129 g_return_val_if_fail (protocol != NULL, NULL);
130
131 settings = empathy_account_settings_new (manager, protocol, NULL,
132 ag_service_get_display_name (service));
133
134 empathy_account_settings_set_storage_provider (settings,
135 EMPATHY_UOA_PROVIDER);
136
137 empathy_account_settings_set_icon_name_async (settings,
138 ag_service_get_icon_name (service), NULL, NULL);
139
140 g_free (manager);
141 g_free (protocol);
142
143 return settings;
144 }
145
146 static void
147 response_cb (GtkWidget *widget,
148 gint response,
149 EmpathyAccountsPluginWidget *self)
150 {
151 if (response == GTK_RESPONSE_OK)
152 {
153 empathy_account_widget_apply_and_log_in (self->priv->account_widget);
154
155 /* Rely on account_widget_close_cb to fire the 'done' signal */
156 }
157 else
158 {
159 empathy_account_widget_discard_pending_changes (
160 self->priv->account_widget);
161
162 g_signal_emit (self, signals[SIG_DONE], 0);
163 }
164 }
165
166 static GtkWidget *
167 create_top_bar (EmpathyAccountsPluginWidget *self)
168 {
169 GtkWidget *bar, *content, *action, *label;
170 GtkCssProvider *css;
171 GError *error = NULL;
172
173 bar = gtk_info_bar_new_with_buttons (
174 GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
175 NULL);
176
177 self->priv->done_button = gtk_info_bar_add_button (GTK_INFO_BAR (bar),
178 _("Done"), GTK_RESPONSE_OK);
179
180 gtk_widget_set_hexpand (bar, TRUE);
181 gtk_info_bar_set_message_type (GTK_INFO_BAR (bar), GTK_MESSAGE_QUESTION);
182 action = gtk_info_bar_get_action_area (GTK_INFO_BAR (bar));
183 gtk_orientable_set_orientation (GTK_ORIENTABLE (action),
184 GTK_ORIENTATION_HORIZONTAL);
185 gtk_widget_set_name (bar, "authorization-infobar");
186 css = gtk_css_provider_new ();
187 if (gtk_css_provider_load_from_data (css,
188 "@define-color question_bg_color rgb (222, 222, 222);"
189 "GtkInfoBar#authorization-infobar"
190 "{"
191 " color: @fg_color;"
192 "}",
193 -1, &error))
194 {
195 GtkStyleContext *context = gtk_widget_get_style_context (bar);
196
197 gtk_style_context_add_provider (context, (GtkStyleProvider *) css,
198 GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
199 }
200 else
201 {
202 g_warning ("Error processing CSS theme override: %s", error->message);
203 g_clear_error (&error);
204 }
205 g_object_unref (css);
206
207 content = gtk_info_bar_get_content_area (GTK_INFO_BAR (bar));
208
209 label = gtk_label_new (_("Please enter your account details"));
210 gtk_container_add (GTK_CONTAINER (content), label);
211 gtk_widget_show (label);
212
213 g_signal_connect (bar, "response",
214 G_CALLBACK (response_cb), self);
215
216 return bar;
217 }
218
219 static void
220 account_widget_handle_apply_cb (EmpathyAccountWidget *widget,
221 gboolean valid,
222 EmpathyAccountsPluginWidget *self)
223 {
224 gtk_widget_set_sensitive (self->priv->done_button, valid);
225 }
226
227 static void
228 account_widget_close_cb (EmpathyAccountWidget *widget,
229 GtkResponseType response,
230 EmpathyAccountsPluginWidget *self)
231 {
232 g_signal_emit (self, signals[SIG_DONE], 0);
233 }
234
235 static void
236 add_account_widget (EmpathyAccountsPluginWidget *self)
237 {
238 GtkWidget *alig;
239 gboolean simple;
240
241 alig = gtk_alignment_new (0.5, 0, 0, 0);
242
243 gtk_box_pack_start (GTK_BOX (self), alig, TRUE, TRUE, 0);
244 gtk_widget_show (GTK_WIDGET (alig));
245
246 /* Use the simple widget only when creating the account */
247 simple = (self->priv->account->id == 0);
248
249 self->priv->account_widget = empathy_account_widget_new_for_protocol (
250 self->priv->settings, simple);
251
252 empathy_account_widget_hide_buttons (self->priv->account_widget);
253
254 gtk_widget_set_valign (GTK_WIDGET (self->priv->account_widget),
255 GTK_ALIGN_CENTER);
256
257 gtk_container_add (GTK_CONTAINER (alig),
258 GTK_WIDGET (self->priv->account_widget));
259 gtk_widget_show (GTK_WIDGET (self->priv->account_widget));
260
261 if (!empathy_account_settings_is_valid (self->priv->settings))
262 {
263 gtk_widget_set_sensitive (self->priv->done_button, FALSE);
264 }
265
266 g_signal_connect (self->priv->account_widget, "handle-apply",
267 G_CALLBACK (account_widget_handle_apply_cb), self);
268 g_signal_connect (self->priv->account_widget, "close",
269 G_CALLBACK (account_widget_close_cb), self);
270 }
271
272 static void
273 maybe_add_account_widget (EmpathyAccountsPluginWidget *self)
274 {
275 g_return_if_fail (self->priv->settings != NULL);
276
277 if (empathy_account_settings_is_ready (self->priv->settings))
278 {
279 add_account_widget (self);
280 }
281 else
282 {
283 g_signal_connect_swapped (self->priv->settings, "notify::ready",
284 G_CALLBACK (add_account_widget), self);
285 }
286 }
287
288 static void
289 manager_prepared_cb (GObject *source,
290 GAsyncResult *result,
291 gpointer user_data)
292 {
293 TpWeakRef *wr = user_data;
294 EmpathyAccountsPluginWidget *self = tp_weak_ref_dup_object (wr);
295 TpAccountManager *manager = (TpAccountManager *) source;
296 GList *accounts;
297 GError *error = NULL;
298
299 if (self == NULL)
300 {
301 tp_weak_ref_destroy (wr);
302 return;
303 }
304
305 if (!tp_proxy_prepare_finish (manager, result, &error))
306 {
307 g_debug ("Error preparing Account Manager: %s", error->message);
308 g_clear_error (&error);
309 goto out;
310 }
311
312 accounts = tp_account_manager_get_valid_accounts (manager);
313 while (accounts != NULL)
314 {
315 TpAccount *account = accounts->data;
316 const GValue *value;
317
318 value = tp_account_get_storage_identifier (account);
319 if (G_VALUE_HOLDS_UINT (value) &&
320 g_value_get_uint (value) == self->priv->account->id)
321 {
322 self->priv->settings = empathy_account_settings_new_for_account (
323 account);
324 maybe_add_account_widget (self);
325 break;
326 }
327
328 accounts = g_list_delete_link (accounts, accounts);
329 }
330 g_list_free (accounts);
331
332 out:
333 tp_weak_ref_destroy (wr);
334 g_object_unref (self);
335 }
336
337 static void
338 empathy_accounts_plugin_widget_constructed (GObject *object)
339 {
340 EmpathyAccountsPluginWidget *self = EMPATHY_ACCOUNTS_PLUGIN_WIDGET (object);
341 void (*chain_up) (GObject *) =
342 ((GObjectClass *) empathy_accounts_plugin_widget_parent_class)->constructed;
343 GtkWidget *top;
344
345 if (chain_up != NULL)
346 chain_up (object);
347
348 g_return_if_fail (AG_IS_ACCOUNT (self->priv->account));
349
350 /* Top bar */
351 top = create_top_bar (self);
352 gtk_widget_show (top);
353 gtk_box_pack_start (GTK_BOX (self), top, FALSE, FALSE, 0);
354
355 if (self->priv->account->id != 0)
356 {
357 TpAccountManager *manager;
358
359 /* Prepare tp's account manager to find the TpAccount corresponding to our
360 * AgAccount */
361 manager = tp_account_manager_dup ();
362
363 tp_proxy_prepare_async (manager, NULL,
364 manager_prepared_cb, tp_weak_ref_new (self, NULL, NULL));
365 g_object_unref (manager);
366 return;
367 }
368
369 self->priv->settings = create_account_settings (self->priv->account);
370 maybe_add_account_widget (self);
371 }
372
373 static void
374 empathy_accounts_plugin_widget_dispose (GObject *object)
375 {
376 EmpathyAccountsPluginWidget *self = EMPATHY_ACCOUNTS_PLUGIN_WIDGET (object);
377 void (*chain_up) (GObject *) =
378 ((GObjectClass *) empathy_accounts_plugin_widget_parent_class)->dispose;
379
380 g_clear_object (&self->priv->account);
381 g_clear_object (&self->priv->settings);
382
383 if (chain_up != NULL)
384 chain_up (object);
385 }
386
387 static void
388 empathy_accounts_plugin_widget_class_init (
389 EmpathyAccountsPluginWidgetClass *klass)
390 {
391 GObjectClass *oclass = G_OBJECT_CLASS (klass);
392 GParamSpec *spec;
393
394 oclass->get_property = empathy_accounts_plugin_widget_get_property;
395 oclass->set_property = empathy_accounts_plugin_widget_set_property;
396 oclass->constructed = empathy_accounts_plugin_widget_constructed;
397 oclass->dispose = empathy_accounts_plugin_widget_dispose;
398
399 spec = g_param_spec_object ("account", "account",
400 "AgAccount",
401 AG_TYPE_ACCOUNT,
402 G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
403 g_object_class_install_property (oclass, PROP_ACCOUNT, spec);
404
405 signals[SIG_DONE] = g_signal_new ("done",
406 G_OBJECT_CLASS_TYPE (klass),
407 G_SIGNAL_RUN_LAST,
408 0, NULL, NULL, NULL,
409 G_TYPE_NONE,
410 0);
411
412 g_type_class_add_private (klass, sizeof (EmpathyAccountsPluginWidgetPriv));
413 }
414
415 static void
416 empathy_accounts_plugin_widget_init (EmpathyAccountsPluginWidget *self)
417 {
418 self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self,
419 EMPATHY_TYPE_ACCOUNTS_PLUGIN_WIDGET, EmpathyAccountsPluginWidgetPriv);
420 }
421
422 GtkWidget *
423 empathy_accounts_plugin_widget_new (AgAccount *account)
424 {
425 return g_object_new (EMPATHY_TYPE_ACCOUNTS_PLUGIN_WIDGET,
426 "account", account,
427 "orientation", GTK_ORIENTATION_VERTICAL,
428 "spacing", 10,
429 NULL);
430 }
+0
-76
ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-widget.h less more
0 /*
1 * empathy-accounts-plugin-widget.h
2 *
3 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20
21 #ifndef __EMPATHY_ACCOUNTS_PLUGIN_WIDGET_H__
22 #define __EMPATHY_ACCOUNTS_PLUGIN_WIDGET_H__
23
24 #include <gtk/gtk.h>
25
26 #include <libaccounts-glib/ag-account.h>
27
28 G_BEGIN_DECLS
29
30 typedef struct _EmpathyAccountsPluginWidget EmpathyAccountsPluginWidget;
31 typedef struct _EmpathyAccountsPluginWidgetClass EmpathyAccountsPluginWidgetClass;
32 typedef struct _EmpathyAccountsPluginWidgetPriv EmpathyAccountsPluginWidgetPriv;
33
34 struct _EmpathyAccountsPluginWidgetClass
35 {
36 /*<private>*/
37 GtkBoxClass parent_class;
38 };
39
40 struct _EmpathyAccountsPluginWidget
41 {
42 /*<private>*/
43 GtkBox parent;
44 EmpathyAccountsPluginWidgetPriv *priv;
45 };
46
47 GType empathy_accounts_plugin_widget_get_type (void);
48
49 /* TYPE MACROS */
50 #define EMPATHY_TYPE_ACCOUNTS_PLUGIN_WIDGET \
51 (empathy_accounts_plugin_widget_get_type ())
52 #define EMPATHY_ACCOUNTS_PLUGIN_WIDGET(obj) \
53 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
54 EMPATHY_TYPE_ACCOUNTS_PLUGIN_WIDGET, \
55 EmpathyAccountsPluginWidget))
56 #define EMPATHY_ACCOUNTS_PLUGIN_WIDGET_CLASS(klass) \
57 (G_TYPE_CHECK_CLASS_CAST((klass), \
58 EMPATHY_TYPE_ACCOUNTS_PLUGIN_WIDGET, \
59 EmpathyAccountsPluginWidgetClass))
60 #define EMPATHY_IS_ACCOUNTS_PLUGIN_WIDGET(obj) \
61 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
62 EMPATHY_TYPE_ACCOUNTS_PLUGIN_WIDGET))
63 #define EMPATHY_IS_ACCOUNTS_PLUGIN_WIDGET_CLASS(klass) \
64 (G_TYPE_CHECK_CLASS_TYPE((klass), \
65 EMPATHY_TYPE_ACCOUNTS_PLUGIN_WIDGET))
66 #define EMPATHY_ACCOUNTS_PLUGIN_WIDGET_GET_CLASS(obj) \
67 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
68 EMPATHY_TYPE_ACCOUNTS_PLUGIN_WIDGET, \
69 EmpathyAccountsPluginWidgetClass))
70
71 GtkWidget * empathy_accounts_plugin_widget_new (AgAccount *account);
72
73 G_END_DECLS
74
75 #endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_WIDGET_H__*/
+0
-46
ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoo.c less more
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-yahoo.c
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #include "config.h"
24
25 #include "empathy-accounts-plugin-yahoo.h"
26
27 G_DEFINE_TYPE (EmpathyAccountsPluginYahoo, empathy_accounts_plugin_yahoo,\
28 EMPATHY_TYPE_ACCOUNTS_PLUGIN)
29
30 static void
31 empathy_accounts_plugin_yahoo_class_init (
32 EmpathyAccountsPluginYahooClass *klass)
33 {
34 }
35
36 static void
37 empathy_accounts_plugin_yahoo_init (EmpathyAccountsPluginYahoo *self)
38 {
39 }
40
41 GType
42 ap_module_get_object_type (void)
43 {
44 return EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOO;
45 }
+0
-75
ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoo.h less more
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-yahoo.h
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23
24 #ifndef __EMPATHY_ACCOUNTS_PLUGIN_YAHOO_H__
25 #define __EMPATHY_ACCOUNTS_PLUGIN_YAHOO_H__
26
27 #include "empathy-accounts-plugin.h"
28
29 G_BEGIN_DECLS
30
31 typedef struct _EmpathyAccountsPluginYahoo EmpathyAccountsPluginYahoo;
32 typedef struct _EmpathyAccountsPluginYahooClass EmpathyAccountsPluginYahooClass;
33
34 struct _EmpathyAccountsPluginYahooClass
35 {
36 /*<private>*/
37 EmpathyAccountsPluginClass parent_class;
38 };
39
40 struct _EmpathyAccountsPluginYahoo
41 {
42 /*<private>*/
43 EmpathyAccountsPlugin parent;
44 };
45
46 GType empathy_accounts_plugin_yahoo_get_type (void);
47
48 /* TYPE MACROS */
49 #define EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOO \
50 (empathy_accounts_plugin_yahoo_get_type ())
51 #define EMPATHY_ACCOUNTS_PLUGIN_YAHOO(obj) \
52 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
53 EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOO, \
54 EmpathyAccountsPluginYahoo))
55 #define EMPATHY_ACCOUNTS_PLUGIN_YAHOO_CLASS(klass) \
56 (G_TYPE_CHECK_CLASS_CAST((klass), \
57 EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOO, \
58 EmpathyAccountsPluginYahooClass))
59 #define EMPATHY_IS_ACCOUNTS_PLUGIN_YAHOO(obj) \
60 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
61 EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOO))
62 #define EMPATHY_IS_ACCOUNTS_PLUGIN_YAHOO_CLASS(klass) \
63 (G_TYPE_CHECK_CLASS_TYPE((klass), \
64 EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOO))
65 #define EMPATHY_ACCOUNTS_PLUGIN_YAHOO_GET_CLASS(obj) \
66 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
67 EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOO, \
68 EmpathyAccountsPluginYahooClass))
69
70 GType ap_module_get_object_type (void);
71
72 G_END_DECLS
73
74 #endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_YAHOO_H__*/
+0
-46
ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoojp.c less more
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-yahoojp.c
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #include "config.h"
24
25 #include "empathy-accounts-plugin-yahoojp.h"
26
27 G_DEFINE_TYPE (EmpathyAccountsPluginYahoojp, empathy_accounts_plugin_yahoojp,\
28 EMPATHY_TYPE_ACCOUNTS_PLUGIN)
29
30 static void
31 empathy_accounts_plugin_yahoojp_class_init (
32 EmpathyAccountsPluginYahoojpClass *klass)
33 {
34 }
35
36 static void
37 empathy_accounts_plugin_yahoojp_init (EmpathyAccountsPluginYahoojp *self)
38 {
39 }
40
41 GType
42 ap_module_get_object_type (void)
43 {
44 return EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOOJP;
45 }
+0
-75
ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoojp.h less more
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-yahoojp.h
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23
24 #ifndef __EMPATHY_ACCOUNTS_PLUGIN_YAHOOJP_H__
25 #define __EMPATHY_ACCOUNTS_PLUGIN_YAHOOJP_H__
26
27 #include "empathy-accounts-plugin.h"
28
29 G_BEGIN_DECLS
30
31 typedef struct _EmpathyAccountsPluginYahoojp EmpathyAccountsPluginYahoojp;
32 typedef struct _EmpathyAccountsPluginYahoojpClass EmpathyAccountsPluginYahoojpClass;
33
34 struct _EmpathyAccountsPluginYahoojpClass
35 {
36 /*<private>*/
37 EmpathyAccountsPluginClass parent_class;
38 };
39
40 struct _EmpathyAccountsPluginYahoojp
41 {
42 /*<private>*/
43 EmpathyAccountsPlugin parent;
44 };
45
46 GType empathy_accounts_plugin_yahoojp_get_type (void);
47
48 /* TYPE MACROS */
49 #define EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOOJP \
50 (empathy_accounts_plugin_yahoojp_get_type ())
51 #define EMPATHY_ACCOUNTS_PLUGIN_YAHOOJP(obj) \
52 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
53 EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOOJP, \
54 EmpathyAccountsPluginYahoojp))
55 #define EMPATHY_ACCOUNTS_PLUGIN_YAHOOJP_CLASS(klass) \
56 (G_TYPE_CHECK_CLASS_CAST((klass), \
57 EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOOJP, \
58 EmpathyAccountsPluginYahoojpClass))
59 #define EMPATHY_IS_ACCOUNTS_PLUGIN_YAHOOJP(obj) \
60 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
61 EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOOJP))
62 #define EMPATHY_IS_ACCOUNTS_PLUGIN_YAHOOJP_CLASS(klass) \
63 (G_TYPE_CHECK_CLASS_TYPE((klass), \
64 EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOOJP))
65 #define EMPATHY_ACCOUNTS_PLUGIN_YAHOOJP_GET_CLASS(obj) \
66 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
67 EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOOJP, \
68 EmpathyAccountsPluginYahoojpClass))
69
70 GType ap_module_get_object_type (void);
71
72 G_END_DECLS
73
74 #endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_YAHOOJP_H__*/
+0
-46
ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-zephyr.c less more
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-zephyr.c
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #include "config.h"
24
25 #include "empathy-accounts-plugin-zephyr.h"
26
27 G_DEFINE_TYPE (EmpathyAccountsPluginZephyr, empathy_accounts_plugin_zephyr,\
28 EMPATHY_TYPE_ACCOUNTS_PLUGIN)
29
30 static void
31 empathy_accounts_plugin_zephyr_class_init (
32 EmpathyAccountsPluginZephyrClass *klass)
33 {
34 }
35
36 static void
37 empathy_accounts_plugin_zephyr_init (EmpathyAccountsPluginZephyr *self)
38 {
39 }
40
41 GType
42 ap_module_get_object_type (void)
43 {
44 return EMPATHY_TYPE_ACCOUNTS_PLUGIN_ZEPHYR;
45 }
+0
-75
ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-zephyr.h less more
0 /* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
1 * Do NOT edit manually */
2
3 /*
4 * empathy-accounts-plugin-zephyr.h
5 *
6 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23
24 #ifndef __EMPATHY_ACCOUNTS_PLUGIN_ZEPHYR_H__
25 #define __EMPATHY_ACCOUNTS_PLUGIN_ZEPHYR_H__
26
27 #include "empathy-accounts-plugin.h"
28
29 G_BEGIN_DECLS
30
31 typedef struct _EmpathyAccountsPluginZephyr EmpathyAccountsPluginZephyr;
32 typedef struct _EmpathyAccountsPluginZephyrClass EmpathyAccountsPluginZephyrClass;
33
34 struct _EmpathyAccountsPluginZephyrClass
35 {
36 /*<private>*/
37 EmpathyAccountsPluginClass parent_class;
38 };
39
40 struct _EmpathyAccountsPluginZephyr
41 {
42 /*<private>*/
43 EmpathyAccountsPlugin parent;
44 };
45
46 GType empathy_accounts_plugin_zephyr_get_type (void);
47
48 /* TYPE MACROS */
49 #define EMPATHY_TYPE_ACCOUNTS_PLUGIN_ZEPHYR \
50 (empathy_accounts_plugin_zephyr_get_type ())
51 #define EMPATHY_ACCOUNTS_PLUGIN_ZEPHYR(obj) \
52 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
53 EMPATHY_TYPE_ACCOUNTS_PLUGIN_ZEPHYR, \
54 EmpathyAccountsPluginZephyr))
55 #define EMPATHY_ACCOUNTS_PLUGIN_ZEPHYR_CLASS(klass) \
56 (G_TYPE_CHECK_CLASS_CAST((klass), \
57 EMPATHY_TYPE_ACCOUNTS_PLUGIN_ZEPHYR, \
58 EmpathyAccountsPluginZephyrClass))
59 #define EMPATHY_IS_ACCOUNTS_PLUGIN_ZEPHYR(obj) \
60 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
61 EMPATHY_TYPE_ACCOUNTS_PLUGIN_ZEPHYR))
62 #define EMPATHY_IS_ACCOUNTS_PLUGIN_ZEPHYR_CLASS(klass) \
63 (G_TYPE_CHECK_CLASS_TYPE((klass), \
64 EMPATHY_TYPE_ACCOUNTS_PLUGIN_ZEPHYR))
65 #define EMPATHY_ACCOUNTS_PLUGIN_ZEPHYR_GET_CLASS(obj) \
66 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
67 EMPATHY_TYPE_ACCOUNTS_PLUGIN_ZEPHYR, \
68 EmpathyAccountsPluginZephyrClass))
69
70 GType ap_module_get_object_type (void);
71
72 G_END_DECLS
73
74 #endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_ZEPHYR_H__*/
+0
-125
ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin.c less more
0 /*
1 * empathy-accounts-plugin.c
2 *
3 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20 #include "config.h"
21
22 #include "empathy-accounts-plugin.h"
23
24 #include <libempathy/empathy-client-factory.h>
25 #include <libempathy/empathy-uoa-utils.h>
26
27 #include "empathy-accounts-plugin-widget.h"
28
29 G_DEFINE_TYPE (EmpathyAccountsPlugin, empathy_accounts_plugin, AP_TYPE_PLUGIN)
30
31 static void
32 widget_done_cb (EmpathyAccountsPluginWidget *widget,
33 ApPlugin *plugin)
34 {
35 ap_plugin_emit_finished (plugin);
36 }
37
38 static GtkWidget *
39 empathy_accounts_plugin_build_widget (ApPlugin *plugin)
40 {
41 AgAccount *account;
42 GtkWidget *widget;
43
44 account = ap_plugin_get_account (plugin);
45 empathy_uoa_manager_set_default (ag_account_get_manager (account));
46
47 widget = empathy_accounts_plugin_widget_new (account);
48
49 g_signal_connect (widget, "done",
50 G_CALLBACK (widget_done_cb), plugin);
51
52 return widget;
53 }
54
55 static void
56 store_delete_cb (AgAccount *account,
57 const GError *error,
58 gpointer user_data)
59 {
60 GSimpleAsyncResult *result = user_data;
61
62 if (error != NULL)
63 {
64 g_debug ("Failed to delete account with ID '%u': %s",
65 account->id, error->message);
66
67 g_simple_async_result_set_from_error (result, error);
68 }
69
70 g_simple_async_result_complete (result);
71 g_object_unref (result);
72 }
73
74 static void
75 empathy_accounts_plugin_delete_account (ApPlugin *plugin,
76 GAsyncReadyCallback callback,
77 gpointer user_data)
78 {
79 AgAccount *account;
80 GSimpleAsyncResult *result;
81
82 result = g_simple_async_result_new (G_OBJECT (plugin),
83 callback, user_data, ap_plugin_delete_account);
84
85 account = ap_plugin_get_account (plugin);
86
87 ag_account_delete (account);
88 ag_account_store (account, store_delete_cb, result);
89 }
90
91 static void
92 empathy_accounts_plugin_act_headless (ApPlugin *plugin)
93 {
94 }
95
96 static void
97 empathy_accounts_plugin_class_init (
98 EmpathyAccountsPluginClass *klass)
99 {
100 ApPluginClass *pclass = AP_PLUGIN_CLASS (klass);
101
102 pclass->build_widget = empathy_accounts_plugin_build_widget;
103 pclass->delete_account = empathy_accounts_plugin_delete_account;
104 pclass->act_headless = empathy_accounts_plugin_act_headless;
105 }
106
107 static void
108 empathy_accounts_plugin_init (EmpathyAccountsPlugin *self)
109 {
110 if (tp_account_manager_can_set_default ())
111 {
112 EmpathyClientFactory *factory;
113 TpAccountManager *am;
114
115 factory = empathy_client_factory_dup ();
116 am = tp_account_manager_new_with_factory (
117 TP_SIMPLE_CLIENT_FACTORY (factory));
118 tp_account_manager_set_default (am);
119
120 g_object_unref (factory);
121 g_object_unref (am);
122 }
123
124 }
+0
-69
ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin.h less more
0 /*
1 * empathy-accounts-plugin.h
2 *
3 * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20 #ifndef __EMPATHY_ACCOUNTS_PLUGIN_H__
21 #define __EMPATHY_ACCOUNTS_PLUGIN_H__
22
23 #include <libaccount-plugin/plugin.h>
24
25 G_BEGIN_DECLS
26
27 typedef struct _EmpathyAccountsPlugin EmpathyAccountsPlugin;
28 typedef struct _EmpathyAccountsPluginClass EmpathyAccountsPluginClass;
29
30 struct _EmpathyAccountsPluginClass
31 {
32 /*<private>*/
33 ApPluginClass parent_class;
34 };
35
36 struct _EmpathyAccountsPlugin
37 {
38 /*<private>*/
39 ApPlugin parent;
40 };
41
42 GType empathy_accounts_plugin_get_type (void);
43
44 /* TYPE MACROS */
45 #define EMPATHY_TYPE_ACCOUNTS_PLUGIN \
46 (empathy_accounts_plugin_get_type ())
47 #define EMPATHY_ACCOUNTS_PLUGIN(obj) \
48 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
49 EMPATHY_TYPE_ACCOUNTS_PLUGIN, \
50 EmpathyAccountsPlugin))
51 #define EMPATHY_ACCOUNTS_PLUGIN_CLASS(klass) \
52 (G_TYPE_CHECK_CLASS_CAST((klass), \
53 EMPATHY_TYPE_ACCOUNTS_PLUGIN, \
54 EmpathyAccountsPluginClass))
55 #define EMPATHY_IS_ACCOUNTS_PLUGIN(obj) \
56 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
57 EMPATHY_TYPE_ACCOUNTS_PLUGIN))
58 #define EMPATHY_IS_ACCOUNTS_PLUGIN_CLASS(klass) \
59 (G_TYPE_CHECK_CLASS_TYPE((klass), \
60 EMPATHY_TYPE_ACCOUNTS_PLUGIN))
61 #define EMPATHY_ACCOUNTS_PLUGIN_GET_CLASS(obj) \
62 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
63 EMPATHY_TYPE_ACCOUNTS_PLUGIN, \
64 EmpathyAccountsPluginClass))
65
66 G_END_DECLS
67
68 #endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_H__*/
2424 self.protocol = protocol
2525 self.icon = icon
2626
27 ##### The plugin itself #####
27 ##### account-plugins/ #####
2828
2929 def magic_replace(text, protocol):
3030 p = protocol.replace('-', '_')
4141
4242 def generate_plugin_header(p):
4343 # header
44 f = open('empathy-accounts-plugin-%s.h' % p.protocol, 'w')
44 f = open('account-plugins/empathy-accounts-plugin-%s.h' % p.protocol, 'w')
4545
4646 tmp = '''/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
4747 * Do NOT edit manually */
123123
124124 def generate_plugin_code(p):
125125 # header
126 f = open('empathy-accounts-plugin-%s.c' % p.protocol, 'w')
126 f = open('account-plugins/empathy-accounts-plugin-%s.c' % p.protocol, 'w')
127127
128128 tmp = '''/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
129129 * Do NOT edit manually */
173173 }''' % (p.protocol, p.protocol)
174174
175175 f.write(magic_replace (tmp, p.protocol))
176
177 def generate_plugins(plugins):
178 '''empathy-accounts-plugin-$protocol.[ch]'''
179 for p in plugins:
180 generate_plugin_header(p)
181 generate_plugin_code(p)
182176
183177 def generate_build_block(p):
184178 la = 'lib%s_la' % p.protocol.replace('-', '_')
199193
200194 return output
201195
202 def generate_makefile_am(plugins):
203 '''Generate Makefile.am'''
196
197 def generate_account_plugins(plugins):
198 '''account-plugins/'''
204199 libs = []
205200 build_blocks = []
206201
207202 for p in plugins:
203 # empathy-accounts-plugin-$protocol.[ch]'''
204 generate_plugin_header(p)
205 generate_plugin_code(p)
206
208207 name = ' lib%s.la' % p.protocol
209208 libs.append(name)
210209
211210 build_blocks.append(generate_build_block(p))
212211
213 f = open('Makefile.am', 'w')
212 # Makefile.am
213 f = open('account-plugins/Makefile.am', 'w')
214214
215215 f.write(
216216 '''# Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py
217217 # Do NOT edit manually
218 SUBDIRS = providers services app-plugin
219
220218 plugindir = $(ACCOUNTS_PROVIDER_PLUGIN_DIR)
221219
222220 INCLUDES = \\
235233
236234 %s''' % ('\\\n'.join(libs), '\n\n'.join(build_blocks)))
237235
238 ##### Providers #####
236 ##### providers/ #####
239237
240238 def generate_provider_file(p):
241239 f = open('providers/%s.provider' % p.protocol, 'w')
273271 EXTRA_DIST = $(providers_DATA)
274272 ''' % ('\\\n'.join(providers)))
275273
276 ##### Services #####
274 ##### services/ #####
277275
278276 def generate_service_file(p):
279277 f = open('services/%s-im.service' % p.protocol, 'w')
332330 for name, cm, protocol, icon in ALL:
333331 plugins.append(Plugin(name, cm, protocol, icon))
334332
335 generate_plugins(plugins)
336 generate_makefile_am(plugins)
333 generate_account_plugins(plugins)
337334 generate_providers(plugins)
338335 generate_services(plugins)
339336