From 006b27d7f0c5dd6efeee83e2c7bb21a60a7a138e Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 5 Sep 2012 15:59:26 +0200 Subject: [PATCH] Generate one GType per UOA protocol plugin Each plugin now has its own GType inheriting from EmpathyAccountsPlugin which is cleaner. https://bugzilla.gnome.org/show_bug.cgi?id=683415 --- ubuntu-online-accounts/cc-plugins/Makefile.am | 28 +++ .../cc-plugins/empathy-accounts-plugin-aim.c | 46 +++++ .../cc-plugins/empathy-accounts-plugin-aim.h | 75 +++++++++ .../empathy-accounts-plugin-gadugadu.c | 46 +++++ .../empathy-accounts-plugin-gadugadu.h | 75 +++++++++ .../empathy-accounts-plugin-groupwise.c | 46 +++++ .../empathy-accounts-plugin-groupwise.h | 75 +++++++++ .../cc-plugins/empathy-accounts-plugin-icq.c | 46 +++++ .../cc-plugins/empathy-accounts-plugin-icq.h | 75 +++++++++ .../cc-plugins/empathy-accounts-plugin-irc.c | 46 +++++ .../cc-plugins/empathy-accounts-plugin-irc.h | 75 +++++++++ .../empathy-accounts-plugin-jabber.c | 46 +++++ .../empathy-accounts-plugin-jabber.h | 75 +++++++++ .../empathy-accounts-plugin-local-xmpp.c | 46 +++++ .../empathy-accounts-plugin-local-xmpp.h | 75 +++++++++ .../cc-plugins/empathy-accounts-plugin-mxit.c | 46 +++++ .../cc-plugins/empathy-accounts-plugin-mxit.h | 75 +++++++++ .../empathy-accounts-plugin-myspace.c | 46 +++++ .../empathy-accounts-plugin-myspace.h | 75 +++++++++ .../empathy-accounts-plugin-sametime.c | 46 +++++ .../empathy-accounts-plugin-sametime.h | 75 +++++++++ .../cc-plugins/empathy-accounts-plugin-sip.c | 46 +++++ .../cc-plugins/empathy-accounts-plugin-sip.h | 75 +++++++++ .../empathy-accounts-plugin-yahoo.c | 46 +++++ .../empathy-accounts-plugin-yahoo.h | 75 +++++++++ .../empathy-accounts-plugin-yahoojp.c | 46 +++++ .../empathy-accounts-plugin-yahoojp.h | 75 +++++++++ .../empathy-accounts-plugin-zephyr.c | 46 +++++ .../empathy-accounts-plugin-zephyr.h | 75 +++++++++ .../cc-plugins/empathy-accounts-plugin.c | 6 - .../cc-plugins/empathy-accounts-plugin.h | 2 - .../cc-plugins/generate-plugins.py | 159 +++++++++++++++++- 32 files changed, 1880 insertions(+), 9 deletions(-) create mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-aim.c create mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-aim.h create mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-gadugadu.c create mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-gadugadu.h create mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-groupwise.c create mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-groupwise.h create mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-icq.c create mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-icq.h create mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-irc.c create mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-irc.h create mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-jabber.c create mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-jabber.h create mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-local-xmpp.c create mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-local-xmpp.h create mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-mxit.c create mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-mxit.h create mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-myspace.c create mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-myspace.h create mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sametime.c create mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sametime.h create mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sip.c create mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sip.h create mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoo.c create mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoo.h create mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoojp.c create mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoojp.h create mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-zephyr.c create mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-zephyr.h diff --git a/ubuntu-online-accounts/cc-plugins/Makefile.am b/ubuntu-online-accounts/cc-plugins/Makefile.am index 62bcf49f..b87b19c1 100644 --- a/ubuntu-online-accounts/cc-plugins/Makefile.am +++ b/ubuntu-online-accounts/cc-plugins/Makefile.am @@ -34,6 +34,8 @@ plugin_LTLIBRARIES = \ libaim_la_SOURCES = \ empathy-accounts-plugin.c \ empathy-accounts-plugin.h \ + empathy-accounts-plugin-aim.c \ + empathy-accounts-plugin-aim.h \ empathy-accounts-plugin-widget.c \ empathy-accounts-plugin-widget.h libaim_la_LDFLAGS = -module -avoid-version @@ -46,6 +48,8 @@ libaim_la_LIBADD = \ libgadugadu_la_SOURCES = \ empathy-accounts-plugin.c \ empathy-accounts-plugin.h \ + empathy-accounts-plugin-gadugadu.c \ + empathy-accounts-plugin-gadugadu.h \ empathy-accounts-plugin-widget.c \ empathy-accounts-plugin-widget.h libgadugadu_la_LDFLAGS = -module -avoid-version @@ -58,6 +62,8 @@ libgadugadu_la_LIBADD = \ libgroupwise_la_SOURCES = \ empathy-accounts-plugin.c \ empathy-accounts-plugin.h \ + empathy-accounts-plugin-groupwise.c \ + empathy-accounts-plugin-groupwise.h \ empathy-accounts-plugin-widget.c \ empathy-accounts-plugin-widget.h libgroupwise_la_LDFLAGS = -module -avoid-version @@ -70,6 +76,8 @@ libgroupwise_la_LIBADD = \ libicq_la_SOURCES = \ empathy-accounts-plugin.c \ empathy-accounts-plugin.h \ + empathy-accounts-plugin-icq.c \ + empathy-accounts-plugin-icq.h \ empathy-accounts-plugin-widget.c \ empathy-accounts-plugin-widget.h libicq_la_LDFLAGS = -module -avoid-version @@ -82,6 +90,8 @@ libicq_la_LIBADD = \ libirc_la_SOURCES = \ empathy-accounts-plugin.c \ empathy-accounts-plugin.h \ + empathy-accounts-plugin-irc.c \ + empathy-accounts-plugin-irc.h \ empathy-accounts-plugin-widget.c \ empathy-accounts-plugin-widget.h libirc_la_LDFLAGS = -module -avoid-version @@ -94,6 +104,8 @@ libirc_la_LIBADD = \ libjabber_la_SOURCES = \ empathy-accounts-plugin.c \ empathy-accounts-plugin.h \ + empathy-accounts-plugin-jabber.c \ + empathy-accounts-plugin-jabber.h \ empathy-accounts-plugin-widget.c \ empathy-accounts-plugin-widget.h libjabber_la_LDFLAGS = -module -avoid-version @@ -106,6 +118,8 @@ libjabber_la_LIBADD = \ libmxit_la_SOURCES = \ empathy-accounts-plugin.c \ empathy-accounts-plugin.h \ + empathy-accounts-plugin-mxit.c \ + empathy-accounts-plugin-mxit.h \ empathy-accounts-plugin-widget.c \ empathy-accounts-plugin-widget.h libmxit_la_LDFLAGS = -module -avoid-version @@ -118,6 +132,8 @@ libmxit_la_LIBADD = \ libmyspace_la_SOURCES = \ empathy-accounts-plugin.c \ empathy-accounts-plugin.h \ + empathy-accounts-plugin-myspace.c \ + empathy-accounts-plugin-myspace.h \ empathy-accounts-plugin-widget.c \ empathy-accounts-plugin-widget.h libmyspace_la_LDFLAGS = -module -avoid-version @@ -130,6 +146,8 @@ libmyspace_la_LIBADD = \ libsip_la_SOURCES = \ empathy-accounts-plugin.c \ empathy-accounts-plugin.h \ + empathy-accounts-plugin-sip.c \ + empathy-accounts-plugin-sip.h \ empathy-accounts-plugin-widget.c \ empathy-accounts-plugin-widget.h libsip_la_LDFLAGS = -module -avoid-version @@ -142,6 +160,8 @@ libsip_la_LIBADD = \ liblocal_xmpp_la_SOURCES = \ empathy-accounts-plugin.c \ empathy-accounts-plugin.h \ + empathy-accounts-plugin-local-xmpp.c \ + empathy-accounts-plugin-local-xmpp.h \ empathy-accounts-plugin-widget.c \ empathy-accounts-plugin-widget.h liblocal_xmpp_la_LDFLAGS = -module -avoid-version @@ -154,6 +174,8 @@ liblocal_xmpp_la_LIBADD = \ libsametime_la_SOURCES = \ empathy-accounts-plugin.c \ empathy-accounts-plugin.h \ + empathy-accounts-plugin-sametime.c \ + empathy-accounts-plugin-sametime.h \ empathy-accounts-plugin-widget.c \ empathy-accounts-plugin-widget.h libsametime_la_LDFLAGS = -module -avoid-version @@ -166,6 +188,8 @@ libsametime_la_LIBADD = \ libyahoojp_la_SOURCES = \ empathy-accounts-plugin.c \ empathy-accounts-plugin.h \ + empathy-accounts-plugin-yahoojp.c \ + empathy-accounts-plugin-yahoojp.h \ empathy-accounts-plugin-widget.c \ empathy-accounts-plugin-widget.h libyahoojp_la_LDFLAGS = -module -avoid-version @@ -178,6 +202,8 @@ libyahoojp_la_LIBADD = \ libyahoo_la_SOURCES = \ empathy-accounts-plugin.c \ empathy-accounts-plugin.h \ + empathy-accounts-plugin-yahoo.c \ + empathy-accounts-plugin-yahoo.h \ empathy-accounts-plugin-widget.c \ empathy-accounts-plugin-widget.h libyahoo_la_LDFLAGS = -module -avoid-version @@ -190,6 +216,8 @@ libyahoo_la_LIBADD = \ libzephyr_la_SOURCES = \ empathy-accounts-plugin.c \ empathy-accounts-plugin.h \ + empathy-accounts-plugin-zephyr.c \ + empathy-accounts-plugin-zephyr.h \ empathy-accounts-plugin-widget.c \ empathy-accounts-plugin-widget.h libzephyr_la_LDFLAGS = -module -avoid-version diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-aim.c b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-aim.c new file mode 100644 index 00000000..42654744 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-aim.c @@ -0,0 +1,46 @@ +/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py + * Do NOT edit manually */ + +/* + * empathy-accounts-plugin-aim.c + * + * Copyright (C) 2012 Collabora Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include "empathy-accounts-plugin-aim.h" + +G_DEFINE_TYPE (EmpathyAccountsPluginAim, empathy_accounts_plugin_aim,\ + EMPATHY_TYPE_ACCOUNTS_PLUGIN) + +static void +empathy_accounts_plugin_aim_class_init ( + EmpathyAccountsPluginAimClass *klass) +{ +} + +static void +empathy_accounts_plugin_aim_init (EmpathyAccountsPluginAim *self) +{ +} + +GType +ap_module_get_object_type (void) +{ + return EMPATHY_TYPE_ACCOUNTS_PLUGIN_AIM; +} \ No newline at end of file diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-aim.h b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-aim.h new file mode 100644 index 00000000..a9e072de --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-aim.h @@ -0,0 +1,75 @@ +/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py + * Do NOT edit manually */ + +/* + * empathy-accounts-plugin-aim.h + * + * Copyright (C) 2012 Collabora Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + + +#ifndef __EMPATHY_ACCOUNTS_PLUGIN_AIM_H__ +#define __EMPATHY_ACCOUNTS_PLUGIN_AIM_H__ + +#include "empathy-accounts-plugin.h" + +G_BEGIN_DECLS + +typedef struct _EmpathyAccountsPluginAim EmpathyAccountsPluginAim; +typedef struct _EmpathyAccountsPluginAimClass EmpathyAccountsPluginAimClass; + +struct _EmpathyAccountsPluginAimClass +{ + /**/ + EmpathyAccountsPluginClass parent_class; +}; + +struct _EmpathyAccountsPluginAim +{ + /**/ + EmpathyAccountsPlugin parent; +}; + +GType empathy_accounts_plugin_aim_get_type (void); + +/* TYPE MACROS */ +#define EMPATHY_TYPE_ACCOUNTS_PLUGIN_AIM \ + (empathy_accounts_plugin_aim_get_type ()) +#define EMPATHY_ACCOUNTS_PLUGIN_AIM(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_AIM, \ + EmpathyAccountsPluginAim)) +#define EMPATHY_ACCOUNTS_PLUGIN_AIM_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_AIM, \ + EmpathyAccountsPluginAimClass)) +#define EMPATHY_IS_ACCOUNTS_PLUGIN_AIM(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_AIM)) +#define EMPATHY_IS_ACCOUNTS_PLUGIN_AIM_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE((klass), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_AIM)) +#define EMPATHY_ACCOUNTS_PLUGIN_AIM_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_AIM, \ + EmpathyAccountsPluginAimClass)) + +GType ap_module_get_object_type (void); + +G_END_DECLS + +#endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_AIM_H__*/ \ No newline at end of file diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-gadugadu.c b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-gadugadu.c new file mode 100644 index 00000000..2cd60222 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-gadugadu.c @@ -0,0 +1,46 @@ +/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py + * Do NOT edit manually */ + +/* + * empathy-accounts-plugin-gadugadu.c + * + * Copyright (C) 2012 Collabora Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include "empathy-accounts-plugin-gadugadu.h" + +G_DEFINE_TYPE (EmpathyAccountsPluginGadugadu, empathy_accounts_plugin_gadugadu,\ + EMPATHY_TYPE_ACCOUNTS_PLUGIN) + +static void +empathy_accounts_plugin_gadugadu_class_init ( + EmpathyAccountsPluginGadugaduClass *klass) +{ +} + +static void +empathy_accounts_plugin_gadugadu_init (EmpathyAccountsPluginGadugadu *self) +{ +} + +GType +ap_module_get_object_type (void) +{ + return EMPATHY_TYPE_ACCOUNTS_PLUGIN_GADUGADU; +} \ No newline at end of file diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-gadugadu.h b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-gadugadu.h new file mode 100644 index 00000000..1a0956e6 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-gadugadu.h @@ -0,0 +1,75 @@ +/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py + * Do NOT edit manually */ + +/* + * empathy-accounts-plugin-gadugadu.h + * + * Copyright (C) 2012 Collabora Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + + +#ifndef __EMPATHY_ACCOUNTS_PLUGIN_GADUGADU_H__ +#define __EMPATHY_ACCOUNTS_PLUGIN_GADUGADU_H__ + +#include "empathy-accounts-plugin.h" + +G_BEGIN_DECLS + +typedef struct _EmpathyAccountsPluginGadugadu EmpathyAccountsPluginGadugadu; +typedef struct _EmpathyAccountsPluginGadugaduClass EmpathyAccountsPluginGadugaduClass; + +struct _EmpathyAccountsPluginGadugaduClass +{ + /**/ + EmpathyAccountsPluginClass parent_class; +}; + +struct _EmpathyAccountsPluginGadugadu +{ + /**/ + EmpathyAccountsPlugin parent; +}; + +GType empathy_accounts_plugin_gadugadu_get_type (void); + +/* TYPE MACROS */ +#define EMPATHY_TYPE_ACCOUNTS_PLUGIN_GADUGADU \ + (empathy_accounts_plugin_gadugadu_get_type ()) +#define EMPATHY_ACCOUNTS_PLUGIN_GADUGADU(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_GADUGADU, \ + EmpathyAccountsPluginGadugadu)) +#define EMPATHY_ACCOUNTS_PLUGIN_GADUGADU_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_GADUGADU, \ + EmpathyAccountsPluginGadugaduClass)) +#define EMPATHY_IS_ACCOUNTS_PLUGIN_GADUGADU(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_GADUGADU)) +#define EMPATHY_IS_ACCOUNTS_PLUGIN_GADUGADU_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE((klass), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_GADUGADU)) +#define EMPATHY_ACCOUNTS_PLUGIN_GADUGADU_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_GADUGADU, \ + EmpathyAccountsPluginGadugaduClass)) + +GType ap_module_get_object_type (void); + +G_END_DECLS + +#endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_GADUGADU_H__*/ \ No newline at end of file diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-groupwise.c b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-groupwise.c new file mode 100644 index 00000000..ddcef5a2 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-groupwise.c @@ -0,0 +1,46 @@ +/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py + * Do NOT edit manually */ + +/* + * empathy-accounts-plugin-groupwise.c + * + * Copyright (C) 2012 Collabora Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include "empathy-accounts-plugin-groupwise.h" + +G_DEFINE_TYPE (EmpathyAccountsPluginGroupwise, empathy_accounts_plugin_groupwise,\ + EMPATHY_TYPE_ACCOUNTS_PLUGIN) + +static void +empathy_accounts_plugin_groupwise_class_init ( + EmpathyAccountsPluginGroupwiseClass *klass) +{ +} + +static void +empathy_accounts_plugin_groupwise_init (EmpathyAccountsPluginGroupwise *self) +{ +} + +GType +ap_module_get_object_type (void) +{ + return EMPATHY_TYPE_ACCOUNTS_PLUGIN_GROUPWISE; +} \ No newline at end of file diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-groupwise.h b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-groupwise.h new file mode 100644 index 00000000..00a75377 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-groupwise.h @@ -0,0 +1,75 @@ +/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py + * Do NOT edit manually */ + +/* + * empathy-accounts-plugin-groupwise.h + * + * Copyright (C) 2012 Collabora Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + + +#ifndef __EMPATHY_ACCOUNTS_PLUGIN_GROUPWISE_H__ +#define __EMPATHY_ACCOUNTS_PLUGIN_GROUPWISE_H__ + +#include "empathy-accounts-plugin.h" + +G_BEGIN_DECLS + +typedef struct _EmpathyAccountsPluginGroupwise EmpathyAccountsPluginGroupwise; +typedef struct _EmpathyAccountsPluginGroupwiseClass EmpathyAccountsPluginGroupwiseClass; + +struct _EmpathyAccountsPluginGroupwiseClass +{ + /**/ + EmpathyAccountsPluginClass parent_class; +}; + +struct _EmpathyAccountsPluginGroupwise +{ + /**/ + EmpathyAccountsPlugin parent; +}; + +GType empathy_accounts_plugin_groupwise_get_type (void); + +/* TYPE MACROS */ +#define EMPATHY_TYPE_ACCOUNTS_PLUGIN_GROUPWISE \ + (empathy_accounts_plugin_groupwise_get_type ()) +#define EMPATHY_ACCOUNTS_PLUGIN_GROUPWISE(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_GROUPWISE, \ + EmpathyAccountsPluginGroupwise)) +#define EMPATHY_ACCOUNTS_PLUGIN_GROUPWISE_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_GROUPWISE, \ + EmpathyAccountsPluginGroupwiseClass)) +#define EMPATHY_IS_ACCOUNTS_PLUGIN_GROUPWISE(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_GROUPWISE)) +#define EMPATHY_IS_ACCOUNTS_PLUGIN_GROUPWISE_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE((klass), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_GROUPWISE)) +#define EMPATHY_ACCOUNTS_PLUGIN_GROUPWISE_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_GROUPWISE, \ + EmpathyAccountsPluginGroupwiseClass)) + +GType ap_module_get_object_type (void); + +G_END_DECLS + +#endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_GROUPWISE_H__*/ \ No newline at end of file diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-icq.c b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-icq.c new file mode 100644 index 00000000..0f6aa387 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-icq.c @@ -0,0 +1,46 @@ +/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py + * Do NOT edit manually */ + +/* + * empathy-accounts-plugin-icq.c + * + * Copyright (C) 2012 Collabora Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include "empathy-accounts-plugin-icq.h" + +G_DEFINE_TYPE (EmpathyAccountsPluginIcq, empathy_accounts_plugin_icq,\ + EMPATHY_TYPE_ACCOUNTS_PLUGIN) + +static void +empathy_accounts_plugin_icq_class_init ( + EmpathyAccountsPluginIcqClass *klass) +{ +} + +static void +empathy_accounts_plugin_icq_init (EmpathyAccountsPluginIcq *self) +{ +} + +GType +ap_module_get_object_type (void) +{ + return EMPATHY_TYPE_ACCOUNTS_PLUGIN_ICQ; +} \ No newline at end of file diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-icq.h b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-icq.h new file mode 100644 index 00000000..b3a5e82a --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-icq.h @@ -0,0 +1,75 @@ +/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py + * Do NOT edit manually */ + +/* + * empathy-accounts-plugin-icq.h + * + * Copyright (C) 2012 Collabora Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + + +#ifndef __EMPATHY_ACCOUNTS_PLUGIN_ICQ_H__ +#define __EMPATHY_ACCOUNTS_PLUGIN_ICQ_H__ + +#include "empathy-accounts-plugin.h" + +G_BEGIN_DECLS + +typedef struct _EmpathyAccountsPluginIcq EmpathyAccountsPluginIcq; +typedef struct _EmpathyAccountsPluginIcqClass EmpathyAccountsPluginIcqClass; + +struct _EmpathyAccountsPluginIcqClass +{ + /**/ + EmpathyAccountsPluginClass parent_class; +}; + +struct _EmpathyAccountsPluginIcq +{ + /**/ + EmpathyAccountsPlugin parent; +}; + +GType empathy_accounts_plugin_icq_get_type (void); + +/* TYPE MACROS */ +#define EMPATHY_TYPE_ACCOUNTS_PLUGIN_ICQ \ + (empathy_accounts_plugin_icq_get_type ()) +#define EMPATHY_ACCOUNTS_PLUGIN_ICQ(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_ICQ, \ + EmpathyAccountsPluginIcq)) +#define EMPATHY_ACCOUNTS_PLUGIN_ICQ_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_ICQ, \ + EmpathyAccountsPluginIcqClass)) +#define EMPATHY_IS_ACCOUNTS_PLUGIN_ICQ(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_ICQ)) +#define EMPATHY_IS_ACCOUNTS_PLUGIN_ICQ_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE((klass), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_ICQ)) +#define EMPATHY_ACCOUNTS_PLUGIN_ICQ_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_ICQ, \ + EmpathyAccountsPluginIcqClass)) + +GType ap_module_get_object_type (void); + +G_END_DECLS + +#endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_ICQ_H__*/ \ No newline at end of file diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-irc.c b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-irc.c new file mode 100644 index 00000000..53c24323 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-irc.c @@ -0,0 +1,46 @@ +/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py + * Do NOT edit manually */ + +/* + * empathy-accounts-plugin-irc.c + * + * Copyright (C) 2012 Collabora Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include "empathy-accounts-plugin-irc.h" + +G_DEFINE_TYPE (EmpathyAccountsPluginIrc, empathy_accounts_plugin_irc,\ + EMPATHY_TYPE_ACCOUNTS_PLUGIN) + +static void +empathy_accounts_plugin_irc_class_init ( + EmpathyAccountsPluginIrcClass *klass) +{ +} + +static void +empathy_accounts_plugin_irc_init (EmpathyAccountsPluginIrc *self) +{ +} + +GType +ap_module_get_object_type (void) +{ + return EMPATHY_TYPE_ACCOUNTS_PLUGIN_IRC; +} \ No newline at end of file diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-irc.h b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-irc.h new file mode 100644 index 00000000..b3a9a629 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-irc.h @@ -0,0 +1,75 @@ +/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py + * Do NOT edit manually */ + +/* + * empathy-accounts-plugin-irc.h + * + * Copyright (C) 2012 Collabora Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + + +#ifndef __EMPATHY_ACCOUNTS_PLUGIN_IRC_H__ +#define __EMPATHY_ACCOUNTS_PLUGIN_IRC_H__ + +#include "empathy-accounts-plugin.h" + +G_BEGIN_DECLS + +typedef struct _EmpathyAccountsPluginIrc EmpathyAccountsPluginIrc; +typedef struct _EmpathyAccountsPluginIrcClass EmpathyAccountsPluginIrcClass; + +struct _EmpathyAccountsPluginIrcClass +{ + /**/ + EmpathyAccountsPluginClass parent_class; +}; + +struct _EmpathyAccountsPluginIrc +{ + /**/ + EmpathyAccountsPlugin parent; +}; + +GType empathy_accounts_plugin_irc_get_type (void); + +/* TYPE MACROS */ +#define EMPATHY_TYPE_ACCOUNTS_PLUGIN_IRC \ + (empathy_accounts_plugin_irc_get_type ()) +#define EMPATHY_ACCOUNTS_PLUGIN_IRC(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_IRC, \ + EmpathyAccountsPluginIrc)) +#define EMPATHY_ACCOUNTS_PLUGIN_IRC_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_IRC, \ + EmpathyAccountsPluginIrcClass)) +#define EMPATHY_IS_ACCOUNTS_PLUGIN_IRC(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_IRC)) +#define EMPATHY_IS_ACCOUNTS_PLUGIN_IRC_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE((klass), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_IRC)) +#define EMPATHY_ACCOUNTS_PLUGIN_IRC_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_IRC, \ + EmpathyAccountsPluginIrcClass)) + +GType ap_module_get_object_type (void); + +G_END_DECLS + +#endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_IRC_H__*/ \ No newline at end of file diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-jabber.c b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-jabber.c new file mode 100644 index 00000000..fffe9836 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-jabber.c @@ -0,0 +1,46 @@ +/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py + * Do NOT edit manually */ + +/* + * empathy-accounts-plugin-jabber.c + * + * Copyright (C) 2012 Collabora Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include "empathy-accounts-plugin-jabber.h" + +G_DEFINE_TYPE (EmpathyAccountsPluginJabber, empathy_accounts_plugin_jabber,\ + EMPATHY_TYPE_ACCOUNTS_PLUGIN) + +static void +empathy_accounts_plugin_jabber_class_init ( + EmpathyAccountsPluginJabberClass *klass) +{ +} + +static void +empathy_accounts_plugin_jabber_init (EmpathyAccountsPluginJabber *self) +{ +} + +GType +ap_module_get_object_type (void) +{ + return EMPATHY_TYPE_ACCOUNTS_PLUGIN_JABBER; +} \ No newline at end of file diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-jabber.h b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-jabber.h new file mode 100644 index 00000000..c6e67f87 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-jabber.h @@ -0,0 +1,75 @@ +/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py + * Do NOT edit manually */ + +/* + * empathy-accounts-plugin-jabber.h + * + * Copyright (C) 2012 Collabora Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + + +#ifndef __EMPATHY_ACCOUNTS_PLUGIN_JABBER_H__ +#define __EMPATHY_ACCOUNTS_PLUGIN_JABBER_H__ + +#include "empathy-accounts-plugin.h" + +G_BEGIN_DECLS + +typedef struct _EmpathyAccountsPluginJabber EmpathyAccountsPluginJabber; +typedef struct _EmpathyAccountsPluginJabberClass EmpathyAccountsPluginJabberClass; + +struct _EmpathyAccountsPluginJabberClass +{ + /**/ + EmpathyAccountsPluginClass parent_class; +}; + +struct _EmpathyAccountsPluginJabber +{ + /**/ + EmpathyAccountsPlugin parent; +}; + +GType empathy_accounts_plugin_jabber_get_type (void); + +/* TYPE MACROS */ +#define EMPATHY_TYPE_ACCOUNTS_PLUGIN_JABBER \ + (empathy_accounts_plugin_jabber_get_type ()) +#define EMPATHY_ACCOUNTS_PLUGIN_JABBER(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_JABBER, \ + EmpathyAccountsPluginJabber)) +#define EMPATHY_ACCOUNTS_PLUGIN_JABBER_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_JABBER, \ + EmpathyAccountsPluginJabberClass)) +#define EMPATHY_IS_ACCOUNTS_PLUGIN_JABBER(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_JABBER)) +#define EMPATHY_IS_ACCOUNTS_PLUGIN_JABBER_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE((klass), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_JABBER)) +#define EMPATHY_ACCOUNTS_PLUGIN_JABBER_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_JABBER, \ + EmpathyAccountsPluginJabberClass)) + +GType ap_module_get_object_type (void); + +G_END_DECLS + +#endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_JABBER_H__*/ \ No newline at end of file diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-local-xmpp.c b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-local-xmpp.c new file mode 100644 index 00000000..f46741a5 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-local-xmpp.c @@ -0,0 +1,46 @@ +/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py + * Do NOT edit manually */ + +/* + * empathy-accounts-plugin-local-xmpp.c + * + * Copyright (C) 2012 Collabora Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include "empathy-accounts-plugin-local-xmpp.h" + +G_DEFINE_TYPE (EmpathyAccountsPluginLocalXmpp, empathy_accounts_plugin_local_xmpp,\ + EMPATHY_TYPE_ACCOUNTS_PLUGIN) + +static void +empathy_accounts_plugin_local_xmpp_class_init ( + EmpathyAccountsPluginLocalXmppClass *klass) +{ +} + +static void +empathy_accounts_plugin_local_xmpp_init (EmpathyAccountsPluginLocalXmpp *self) +{ +} + +GType +ap_module_get_object_type (void) +{ + return EMPATHY_TYPE_ACCOUNTS_PLUGIN_LOCAL_XMPP; +} \ No newline at end of file diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-local-xmpp.h b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-local-xmpp.h new file mode 100644 index 00000000..8c5d56f1 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-local-xmpp.h @@ -0,0 +1,75 @@ +/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py + * Do NOT edit manually */ + +/* + * empathy-accounts-plugin-local-xmpp.h + * + * Copyright (C) 2012 Collabora Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + + +#ifndef __EMPATHY_ACCOUNTS_PLUGIN_LOCAL_XMPP_H__ +#define __EMPATHY_ACCOUNTS_PLUGIN_LOCAL_XMPP_H__ + +#include "empathy-accounts-plugin.h" + +G_BEGIN_DECLS + +typedef struct _EmpathyAccountsPluginLocalXmpp EmpathyAccountsPluginLocalXmpp; +typedef struct _EmpathyAccountsPluginLocalXmppClass EmpathyAccountsPluginLocalXmppClass; + +struct _EmpathyAccountsPluginLocalXmppClass +{ + /**/ + EmpathyAccountsPluginClass parent_class; +}; + +struct _EmpathyAccountsPluginLocalXmpp +{ + /**/ + EmpathyAccountsPlugin parent; +}; + +GType empathy_accounts_plugin_local_xmpp_get_type (void); + +/* TYPE MACROS */ +#define EMPATHY_TYPE_ACCOUNTS_PLUGIN_LOCAL_XMPP \ + (empathy_accounts_plugin_local_xmpp_get_type ()) +#define EMPATHY_ACCOUNTS_PLUGIN_LOCAL_XMPP(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_LOCAL_XMPP, \ + EmpathyAccountsPluginLocalXmpp)) +#define EMPATHY_ACCOUNTS_PLUGIN_LOCAL_XMPP_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_LOCAL_XMPP, \ + EmpathyAccountsPluginLocalXmppClass)) +#define EMPATHY_IS_ACCOUNTS_PLUGIN_LOCAL_XMPP(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_LOCAL_XMPP)) +#define EMPATHY_IS_ACCOUNTS_PLUGIN_LOCAL_XMPP_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE((klass), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_LOCAL_XMPP)) +#define EMPATHY_ACCOUNTS_PLUGIN_LOCAL_XMPP_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_LOCAL_XMPP, \ + EmpathyAccountsPluginLocalXmppClass)) + +GType ap_module_get_object_type (void); + +G_END_DECLS + +#endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_LOCAL_XMPP_H__*/ \ No newline at end of file diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-mxit.c b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-mxit.c new file mode 100644 index 00000000..95fdc2fa --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-mxit.c @@ -0,0 +1,46 @@ +/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py + * Do NOT edit manually */ + +/* + * empathy-accounts-plugin-mxit.c + * + * Copyright (C) 2012 Collabora Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include "empathy-accounts-plugin-mxit.h" + +G_DEFINE_TYPE (EmpathyAccountsPluginMxit, empathy_accounts_plugin_mxit,\ + EMPATHY_TYPE_ACCOUNTS_PLUGIN) + +static void +empathy_accounts_plugin_mxit_class_init ( + EmpathyAccountsPluginMxitClass *klass) +{ +} + +static void +empathy_accounts_plugin_mxit_init (EmpathyAccountsPluginMxit *self) +{ +} + +GType +ap_module_get_object_type (void) +{ + return EMPATHY_TYPE_ACCOUNTS_PLUGIN_MXIT; +} \ No newline at end of file diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-mxit.h b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-mxit.h new file mode 100644 index 00000000..5a80c2c7 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-mxit.h @@ -0,0 +1,75 @@ +/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py + * Do NOT edit manually */ + +/* + * empathy-accounts-plugin-mxit.h + * + * Copyright (C) 2012 Collabora Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + + +#ifndef __EMPATHY_ACCOUNTS_PLUGIN_MXIT_H__ +#define __EMPATHY_ACCOUNTS_PLUGIN_MXIT_H__ + +#include "empathy-accounts-plugin.h" + +G_BEGIN_DECLS + +typedef struct _EmpathyAccountsPluginMxit EmpathyAccountsPluginMxit; +typedef struct _EmpathyAccountsPluginMxitClass EmpathyAccountsPluginMxitClass; + +struct _EmpathyAccountsPluginMxitClass +{ + /**/ + EmpathyAccountsPluginClass parent_class; +}; + +struct _EmpathyAccountsPluginMxit +{ + /**/ + EmpathyAccountsPlugin parent; +}; + +GType empathy_accounts_plugin_mxit_get_type (void); + +/* TYPE MACROS */ +#define EMPATHY_TYPE_ACCOUNTS_PLUGIN_MXIT \ + (empathy_accounts_plugin_mxit_get_type ()) +#define EMPATHY_ACCOUNTS_PLUGIN_MXIT(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_MXIT, \ + EmpathyAccountsPluginMxit)) +#define EMPATHY_ACCOUNTS_PLUGIN_MXIT_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_MXIT, \ + EmpathyAccountsPluginMxitClass)) +#define EMPATHY_IS_ACCOUNTS_PLUGIN_MXIT(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_MXIT)) +#define EMPATHY_IS_ACCOUNTS_PLUGIN_MXIT_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE((klass), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_MXIT)) +#define EMPATHY_ACCOUNTS_PLUGIN_MXIT_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_MXIT, \ + EmpathyAccountsPluginMxitClass)) + +GType ap_module_get_object_type (void); + +G_END_DECLS + +#endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_MXIT_H__*/ \ No newline at end of file diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-myspace.c b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-myspace.c new file mode 100644 index 00000000..5b848e20 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-myspace.c @@ -0,0 +1,46 @@ +/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py + * Do NOT edit manually */ + +/* + * empathy-accounts-plugin-myspace.c + * + * Copyright (C) 2012 Collabora Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include "empathy-accounts-plugin-myspace.h" + +G_DEFINE_TYPE (EmpathyAccountsPluginMyspace, empathy_accounts_plugin_myspace,\ + EMPATHY_TYPE_ACCOUNTS_PLUGIN) + +static void +empathy_accounts_plugin_myspace_class_init ( + EmpathyAccountsPluginMyspaceClass *klass) +{ +} + +static void +empathy_accounts_plugin_myspace_init (EmpathyAccountsPluginMyspace *self) +{ +} + +GType +ap_module_get_object_type (void) +{ + return EMPATHY_TYPE_ACCOUNTS_PLUGIN_MYSPACE; +} \ No newline at end of file diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-myspace.h b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-myspace.h new file mode 100644 index 00000000..a6785a86 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-myspace.h @@ -0,0 +1,75 @@ +/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py + * Do NOT edit manually */ + +/* + * empathy-accounts-plugin-myspace.h + * + * Copyright (C) 2012 Collabora Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + + +#ifndef __EMPATHY_ACCOUNTS_PLUGIN_MYSPACE_H__ +#define __EMPATHY_ACCOUNTS_PLUGIN_MYSPACE_H__ + +#include "empathy-accounts-plugin.h" + +G_BEGIN_DECLS + +typedef struct _EmpathyAccountsPluginMyspace EmpathyAccountsPluginMyspace; +typedef struct _EmpathyAccountsPluginMyspaceClass EmpathyAccountsPluginMyspaceClass; + +struct _EmpathyAccountsPluginMyspaceClass +{ + /**/ + EmpathyAccountsPluginClass parent_class; +}; + +struct _EmpathyAccountsPluginMyspace +{ + /**/ + EmpathyAccountsPlugin parent; +}; + +GType empathy_accounts_plugin_myspace_get_type (void); + +/* TYPE MACROS */ +#define EMPATHY_TYPE_ACCOUNTS_PLUGIN_MYSPACE \ + (empathy_accounts_plugin_myspace_get_type ()) +#define EMPATHY_ACCOUNTS_PLUGIN_MYSPACE(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_MYSPACE, \ + EmpathyAccountsPluginMyspace)) +#define EMPATHY_ACCOUNTS_PLUGIN_MYSPACE_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_MYSPACE, \ + EmpathyAccountsPluginMyspaceClass)) +#define EMPATHY_IS_ACCOUNTS_PLUGIN_MYSPACE(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_MYSPACE)) +#define EMPATHY_IS_ACCOUNTS_PLUGIN_MYSPACE_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE((klass), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_MYSPACE)) +#define EMPATHY_ACCOUNTS_PLUGIN_MYSPACE_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_MYSPACE, \ + EmpathyAccountsPluginMyspaceClass)) + +GType ap_module_get_object_type (void); + +G_END_DECLS + +#endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_MYSPACE_H__*/ \ No newline at end of file diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sametime.c b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sametime.c new file mode 100644 index 00000000..e3359342 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sametime.c @@ -0,0 +1,46 @@ +/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py + * Do NOT edit manually */ + +/* + * empathy-accounts-plugin-sametime.c + * + * Copyright (C) 2012 Collabora Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include "empathy-accounts-plugin-sametime.h" + +G_DEFINE_TYPE (EmpathyAccountsPluginSametime, empathy_accounts_plugin_sametime,\ + EMPATHY_TYPE_ACCOUNTS_PLUGIN) + +static void +empathy_accounts_plugin_sametime_class_init ( + EmpathyAccountsPluginSametimeClass *klass) +{ +} + +static void +empathy_accounts_plugin_sametime_init (EmpathyAccountsPluginSametime *self) +{ +} + +GType +ap_module_get_object_type (void) +{ + return EMPATHY_TYPE_ACCOUNTS_PLUGIN_SAMETIME; +} \ No newline at end of file diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sametime.h b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sametime.h new file mode 100644 index 00000000..639ec15e --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sametime.h @@ -0,0 +1,75 @@ +/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py + * Do NOT edit manually */ + +/* + * empathy-accounts-plugin-sametime.h + * + * Copyright (C) 2012 Collabora Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + + +#ifndef __EMPATHY_ACCOUNTS_PLUGIN_SAMETIME_H__ +#define __EMPATHY_ACCOUNTS_PLUGIN_SAMETIME_H__ + +#include "empathy-accounts-plugin.h" + +G_BEGIN_DECLS + +typedef struct _EmpathyAccountsPluginSametime EmpathyAccountsPluginSametime; +typedef struct _EmpathyAccountsPluginSametimeClass EmpathyAccountsPluginSametimeClass; + +struct _EmpathyAccountsPluginSametimeClass +{ + /**/ + EmpathyAccountsPluginClass parent_class; +}; + +struct _EmpathyAccountsPluginSametime +{ + /**/ + EmpathyAccountsPlugin parent; +}; + +GType empathy_accounts_plugin_sametime_get_type (void); + +/* TYPE MACROS */ +#define EMPATHY_TYPE_ACCOUNTS_PLUGIN_SAMETIME \ + (empathy_accounts_plugin_sametime_get_type ()) +#define EMPATHY_ACCOUNTS_PLUGIN_SAMETIME(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_SAMETIME, \ + EmpathyAccountsPluginSametime)) +#define EMPATHY_ACCOUNTS_PLUGIN_SAMETIME_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_SAMETIME, \ + EmpathyAccountsPluginSametimeClass)) +#define EMPATHY_IS_ACCOUNTS_PLUGIN_SAMETIME(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_SAMETIME)) +#define EMPATHY_IS_ACCOUNTS_PLUGIN_SAMETIME_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE((klass), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_SAMETIME)) +#define EMPATHY_ACCOUNTS_PLUGIN_SAMETIME_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_SAMETIME, \ + EmpathyAccountsPluginSametimeClass)) + +GType ap_module_get_object_type (void); + +G_END_DECLS + +#endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_SAMETIME_H__*/ \ No newline at end of file diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sip.c b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sip.c new file mode 100644 index 00000000..483f1b3c --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sip.c @@ -0,0 +1,46 @@ +/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py + * Do NOT edit manually */ + +/* + * empathy-accounts-plugin-sip.c + * + * Copyright (C) 2012 Collabora Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include "empathy-accounts-plugin-sip.h" + +G_DEFINE_TYPE (EmpathyAccountsPluginSip, empathy_accounts_plugin_sip,\ + EMPATHY_TYPE_ACCOUNTS_PLUGIN) + +static void +empathy_accounts_plugin_sip_class_init ( + EmpathyAccountsPluginSipClass *klass) +{ +} + +static void +empathy_accounts_plugin_sip_init (EmpathyAccountsPluginSip *self) +{ +} + +GType +ap_module_get_object_type (void) +{ + return EMPATHY_TYPE_ACCOUNTS_PLUGIN_SIP; +} \ No newline at end of file diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sip.h b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sip.h new file mode 100644 index 00000000..e581f780 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sip.h @@ -0,0 +1,75 @@ +/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py + * Do NOT edit manually */ + +/* + * empathy-accounts-plugin-sip.h + * + * Copyright (C) 2012 Collabora Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + + +#ifndef __EMPATHY_ACCOUNTS_PLUGIN_SIP_H__ +#define __EMPATHY_ACCOUNTS_PLUGIN_SIP_H__ + +#include "empathy-accounts-plugin.h" + +G_BEGIN_DECLS + +typedef struct _EmpathyAccountsPluginSip EmpathyAccountsPluginSip; +typedef struct _EmpathyAccountsPluginSipClass EmpathyAccountsPluginSipClass; + +struct _EmpathyAccountsPluginSipClass +{ + /**/ + EmpathyAccountsPluginClass parent_class; +}; + +struct _EmpathyAccountsPluginSip +{ + /**/ + EmpathyAccountsPlugin parent; +}; + +GType empathy_accounts_plugin_sip_get_type (void); + +/* TYPE MACROS */ +#define EMPATHY_TYPE_ACCOUNTS_PLUGIN_SIP \ + (empathy_accounts_plugin_sip_get_type ()) +#define EMPATHY_ACCOUNTS_PLUGIN_SIP(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_SIP, \ + EmpathyAccountsPluginSip)) +#define EMPATHY_ACCOUNTS_PLUGIN_SIP_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_SIP, \ + EmpathyAccountsPluginSipClass)) +#define EMPATHY_IS_ACCOUNTS_PLUGIN_SIP(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_SIP)) +#define EMPATHY_IS_ACCOUNTS_PLUGIN_SIP_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE((klass), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_SIP)) +#define EMPATHY_ACCOUNTS_PLUGIN_SIP_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_SIP, \ + EmpathyAccountsPluginSipClass)) + +GType ap_module_get_object_type (void); + +G_END_DECLS + +#endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_SIP_H__*/ \ No newline at end of file diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoo.c b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoo.c new file mode 100644 index 00000000..8461bed0 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoo.c @@ -0,0 +1,46 @@ +/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py + * Do NOT edit manually */ + +/* + * empathy-accounts-plugin-yahoo.c + * + * Copyright (C) 2012 Collabora Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include "empathy-accounts-plugin-yahoo.h" + +G_DEFINE_TYPE (EmpathyAccountsPluginYahoo, empathy_accounts_plugin_yahoo,\ + EMPATHY_TYPE_ACCOUNTS_PLUGIN) + +static void +empathy_accounts_plugin_yahoo_class_init ( + EmpathyAccountsPluginYahooClass *klass) +{ +} + +static void +empathy_accounts_plugin_yahoo_init (EmpathyAccountsPluginYahoo *self) +{ +} + +GType +ap_module_get_object_type (void) +{ + return EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOO; +} \ No newline at end of file diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoo.h b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoo.h new file mode 100644 index 00000000..2f02c4a3 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoo.h @@ -0,0 +1,75 @@ +/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py + * Do NOT edit manually */ + +/* + * empathy-accounts-plugin-yahoo.h + * + * Copyright (C) 2012 Collabora Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + + +#ifndef __EMPATHY_ACCOUNTS_PLUGIN_YAHOO_H__ +#define __EMPATHY_ACCOUNTS_PLUGIN_YAHOO_H__ + +#include "empathy-accounts-plugin.h" + +G_BEGIN_DECLS + +typedef struct _EmpathyAccountsPluginYahoo EmpathyAccountsPluginYahoo; +typedef struct _EmpathyAccountsPluginYahooClass EmpathyAccountsPluginYahooClass; + +struct _EmpathyAccountsPluginYahooClass +{ + /**/ + EmpathyAccountsPluginClass parent_class; +}; + +struct _EmpathyAccountsPluginYahoo +{ + /**/ + EmpathyAccountsPlugin parent; +}; + +GType empathy_accounts_plugin_yahoo_get_type (void); + +/* TYPE MACROS */ +#define EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOO \ + (empathy_accounts_plugin_yahoo_get_type ()) +#define EMPATHY_ACCOUNTS_PLUGIN_YAHOO(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOO, \ + EmpathyAccountsPluginYahoo)) +#define EMPATHY_ACCOUNTS_PLUGIN_YAHOO_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOO, \ + EmpathyAccountsPluginYahooClass)) +#define EMPATHY_IS_ACCOUNTS_PLUGIN_YAHOO(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOO)) +#define EMPATHY_IS_ACCOUNTS_PLUGIN_YAHOO_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE((klass), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOO)) +#define EMPATHY_ACCOUNTS_PLUGIN_YAHOO_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOO, \ + EmpathyAccountsPluginYahooClass)) + +GType ap_module_get_object_type (void); + +G_END_DECLS + +#endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_YAHOO_H__*/ \ No newline at end of file diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoojp.c b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoojp.c new file mode 100644 index 00000000..12e771b1 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoojp.c @@ -0,0 +1,46 @@ +/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py + * Do NOT edit manually */ + +/* + * empathy-accounts-plugin-yahoojp.c + * + * Copyright (C) 2012 Collabora Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include "empathy-accounts-plugin-yahoojp.h" + +G_DEFINE_TYPE (EmpathyAccountsPluginYahoojp, empathy_accounts_plugin_yahoojp,\ + EMPATHY_TYPE_ACCOUNTS_PLUGIN) + +static void +empathy_accounts_plugin_yahoojp_class_init ( + EmpathyAccountsPluginYahoojpClass *klass) +{ +} + +static void +empathy_accounts_plugin_yahoojp_init (EmpathyAccountsPluginYahoojp *self) +{ +} + +GType +ap_module_get_object_type (void) +{ + return EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOOJP; +} \ No newline at end of file diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoojp.h b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoojp.h new file mode 100644 index 00000000..c57634a7 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoojp.h @@ -0,0 +1,75 @@ +/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py + * Do NOT edit manually */ + +/* + * empathy-accounts-plugin-yahoojp.h + * + * Copyright (C) 2012 Collabora Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + + +#ifndef __EMPATHY_ACCOUNTS_PLUGIN_YAHOOJP_H__ +#define __EMPATHY_ACCOUNTS_PLUGIN_YAHOOJP_H__ + +#include "empathy-accounts-plugin.h" + +G_BEGIN_DECLS + +typedef struct _EmpathyAccountsPluginYahoojp EmpathyAccountsPluginYahoojp; +typedef struct _EmpathyAccountsPluginYahoojpClass EmpathyAccountsPluginYahoojpClass; + +struct _EmpathyAccountsPluginYahoojpClass +{ + /**/ + EmpathyAccountsPluginClass parent_class; +}; + +struct _EmpathyAccountsPluginYahoojp +{ + /**/ + EmpathyAccountsPlugin parent; +}; + +GType empathy_accounts_plugin_yahoojp_get_type (void); + +/* TYPE MACROS */ +#define EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOOJP \ + (empathy_accounts_plugin_yahoojp_get_type ()) +#define EMPATHY_ACCOUNTS_PLUGIN_YAHOOJP(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOOJP, \ + EmpathyAccountsPluginYahoojp)) +#define EMPATHY_ACCOUNTS_PLUGIN_YAHOOJP_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOOJP, \ + EmpathyAccountsPluginYahoojpClass)) +#define EMPATHY_IS_ACCOUNTS_PLUGIN_YAHOOJP(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOOJP)) +#define EMPATHY_IS_ACCOUNTS_PLUGIN_YAHOOJP_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE((klass), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOOJP)) +#define EMPATHY_ACCOUNTS_PLUGIN_YAHOOJP_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_YAHOOJP, \ + EmpathyAccountsPluginYahoojpClass)) + +GType ap_module_get_object_type (void); + +G_END_DECLS + +#endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_YAHOOJP_H__*/ \ No newline at end of file diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-zephyr.c b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-zephyr.c new file mode 100644 index 00000000..e3d0b4ed --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-zephyr.c @@ -0,0 +1,46 @@ +/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py + * Do NOT edit manually */ + +/* + * empathy-accounts-plugin-zephyr.c + * + * Copyright (C) 2012 Collabora Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include "empathy-accounts-plugin-zephyr.h" + +G_DEFINE_TYPE (EmpathyAccountsPluginZephyr, empathy_accounts_plugin_zephyr,\ + EMPATHY_TYPE_ACCOUNTS_PLUGIN) + +static void +empathy_accounts_plugin_zephyr_class_init ( + EmpathyAccountsPluginZephyrClass *klass) +{ +} + +static void +empathy_accounts_plugin_zephyr_init (EmpathyAccountsPluginZephyr *self) +{ +} + +GType +ap_module_get_object_type (void) +{ + return EMPATHY_TYPE_ACCOUNTS_PLUGIN_ZEPHYR; +} \ No newline at end of file diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-zephyr.h b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-zephyr.h new file mode 100644 index 00000000..90bd4c76 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-zephyr.h @@ -0,0 +1,75 @@ +/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py + * Do NOT edit manually */ + +/* + * empathy-accounts-plugin-zephyr.h + * + * Copyright (C) 2012 Collabora Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + + +#ifndef __EMPATHY_ACCOUNTS_PLUGIN_ZEPHYR_H__ +#define __EMPATHY_ACCOUNTS_PLUGIN_ZEPHYR_H__ + +#include "empathy-accounts-plugin.h" + +G_BEGIN_DECLS + +typedef struct _EmpathyAccountsPluginZephyr EmpathyAccountsPluginZephyr; +typedef struct _EmpathyAccountsPluginZephyrClass EmpathyAccountsPluginZephyrClass; + +struct _EmpathyAccountsPluginZephyrClass +{ + /**/ + EmpathyAccountsPluginClass parent_class; +}; + +struct _EmpathyAccountsPluginZephyr +{ + /**/ + EmpathyAccountsPlugin parent; +}; + +GType empathy_accounts_plugin_zephyr_get_type (void); + +/* TYPE MACROS */ +#define EMPATHY_TYPE_ACCOUNTS_PLUGIN_ZEPHYR \ + (empathy_accounts_plugin_zephyr_get_type ()) +#define EMPATHY_ACCOUNTS_PLUGIN_ZEPHYR(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_ZEPHYR, \ + EmpathyAccountsPluginZephyr)) +#define EMPATHY_ACCOUNTS_PLUGIN_ZEPHYR_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_ZEPHYR, \ + EmpathyAccountsPluginZephyrClass)) +#define EMPATHY_IS_ACCOUNTS_PLUGIN_ZEPHYR(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_ZEPHYR)) +#define EMPATHY_IS_ACCOUNTS_PLUGIN_ZEPHYR_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE((klass), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_ZEPHYR)) +#define EMPATHY_ACCOUNTS_PLUGIN_ZEPHYR_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_ZEPHYR, \ + EmpathyAccountsPluginZephyrClass)) + +GType ap_module_get_object_type (void); + +G_END_DECLS + +#endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_ZEPHYR_H__*/ \ No newline at end of file diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin.c b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin.c index 939912aa..46e429e4 100644 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin.c +++ b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin.c @@ -123,9 +123,3 @@ empathy_accounts_plugin_init (EmpathyAccountsPlugin *self) } } - -GType -ap_module_get_object_type (void) -{ - return EMPATHY_TYPE_ACCOUNTS_PLUGIN; -} diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin.h b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin.h index 8f310259..bb259c8a 100644 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin.h +++ b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin.h @@ -64,8 +64,6 @@ GType empathy_accounts_plugin_get_type (void); EMPATHY_TYPE_ACCOUNTS_PLUGIN, \ EmpathyAccountsPluginClass)) -GType ap_module_get_object_type (void); - G_END_DECLS #endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_H__*/ diff --git a/ubuntu-online-accounts/cc-plugins/generate-plugins.py b/ubuntu-online-accounts/cc-plugins/generate-plugins.py index 9eadede0..babe5433 100755 --- a/ubuntu-online-accounts/cc-plugins/generate-plugins.py +++ b/ubuntu-online-accounts/cc-plugins/generate-plugins.py @@ -27,12 +27,168 @@ class Plugin: ##### The plugin itself ##### +def magic_replace(text, protocol): + p = protocol.replace('-', '_') + + l = protocol.split('-') + l = map(str.title, l) + camel = ''.join(l) + + text = text.replace('$lower', p) + text = text.replace('$UPPER', p.upper()) + text = text.replace('$Camel', camel) + + return text + +def generate_plugin_header(p): + # header + f = open('empathy-accounts-plugin-%s.h' % p.protocol, 'w') + + tmp = '''/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py + * Do NOT edit manually */ + +/* + * empathy-accounts-plugin-%s.h + * + * Copyright (C) 2012 Collabora Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + + +#ifndef __EMPATHY_ACCOUNTS_PLUGIN_$UPPER_H__ +#define __EMPATHY_ACCOUNTS_PLUGIN_$UPPER_H__ + +#include "empathy-accounts-plugin.h" + +G_BEGIN_DECLS + +typedef struct _EmpathyAccountsPlugin$Camel EmpathyAccountsPlugin$Camel; +typedef struct _EmpathyAccountsPlugin$CamelClass EmpathyAccountsPlugin$CamelClass; + +struct _EmpathyAccountsPlugin$CamelClass +{ + /**/ + EmpathyAccountsPluginClass parent_class; +}; + +struct _EmpathyAccountsPlugin$Camel +{ + /**/ + EmpathyAccountsPlugin parent; +}; + +GType empathy_accounts_plugin_$lower_get_type (void); + +/* TYPE MACROS */ +#define EMPATHY_TYPE_ACCOUNTS_PLUGIN_$UPPER \\ + (empathy_accounts_plugin_$lower_get_type ()) +#define EMPATHY_ACCOUNTS_PLUGIN_$UPPER(obj) \\ + (G_TYPE_CHECK_INSTANCE_CAST((obj), \\ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_$UPPER, \\ + EmpathyAccountsPlugin$Camel)) +#define EMPATHY_ACCOUNTS_PLUGIN_$UPPER_CLASS(klass) \\ + (G_TYPE_CHECK_CLASS_CAST((klass), \\ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_$UPPER, \\ + EmpathyAccountsPlugin$CamelClass)) +#define EMPATHY_IS_ACCOUNTS_PLUGIN_$UPPER(obj) \\ + (G_TYPE_CHECK_INSTANCE_TYPE((obj), \\ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_$UPPER)) +#define EMPATHY_IS_ACCOUNTS_PLUGIN_$UPPER_CLASS(klass) \\ + (G_TYPE_CHECK_CLASS_TYPE((klass), \\ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_$UPPER)) +#define EMPATHY_ACCOUNTS_PLUGIN_$UPPER_GET_CLASS(obj) \\ + (G_TYPE_INSTANCE_GET_CLASS ((obj), \\ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_$UPPER, \\ + EmpathyAccountsPlugin$CamelClass)) + +GType ap_module_get_object_type (void); + +G_END_DECLS + +#endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_$UPPER_H__*/''' % (p.protocol) + + f.write(magic_replace (tmp, p.protocol)) + +def generate_plugin_code(p): + # header + f = open('empathy-accounts-plugin-%s.c' % p.protocol, 'w') + + tmp = '''/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py + * Do NOT edit manually */ + +/* + * empathy-accounts-plugin-%s.c + * + * Copyright (C) 2012 Collabora Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include "config.h" + +#include "empathy-accounts-plugin-%s.h" + +G_DEFINE_TYPE (EmpathyAccountsPlugin$Camel, empathy_accounts_plugin_$lower,\\ + EMPATHY_TYPE_ACCOUNTS_PLUGIN) + +static void +empathy_accounts_plugin_$lower_class_init ( + EmpathyAccountsPlugin$CamelClass *klass) +{ +} + +static void +empathy_accounts_plugin_$lower_init (EmpathyAccountsPlugin$Camel *self) +{ +} + +GType +ap_module_get_object_type (void) +{ + return EMPATHY_TYPE_ACCOUNTS_PLUGIN_$UPPER; +}''' % (p.protocol, p.protocol) + + f.write(magic_replace (tmp, p.protocol)) + +def generate_plugins(plugins): + '''empathy-accounts-plugin-$protocol.[ch]''' + for p in plugins: + generate_plugin_header(p) + generate_plugin_code(p) + def generate_build_block(p): la = 'lib%s_la' % p.protocol.replace('-', '_') output = '''%s_SOURCES = \\ empathy-accounts-plugin.c \\ empathy-accounts-plugin.h \\ + empathy-accounts-plugin-%s.c \\ + empathy-accounts-plugin-%s.h \\ empathy-accounts-plugin-widget.c \\ empathy-accounts-plugin-widget.h %s_LDFLAGS = -module -avoid-version @@ -40,7 +196,7 @@ def generate_build_block(p): $(UOA_LIBS) \\ $(top_builddir)/libempathy/libempathy.la \\ $(top_builddir)/libempathy-gtk/libempathy-gtk.la -''' % (la, la, la) +''' % (la, p.protocol, p.protocol, la, la) return output @@ -177,6 +333,7 @@ def generate_all(): for name, cm, protocol, icon in ALL: plugins.append(Plugin(name, cm, protocol, icon)) + generate_plugins(plugins) generate_makefile_am(plugins) generate_providers(plugins) generate_services(plugins) -- 2.39.2