From b73b93e7cfb16579ef6ec18ef01acdac2c6c24f3 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 6 Sep 2012 09:49:10 +0200 Subject: Move account plugins to their own dir https://bugzilla.gnome.org/show_bug.cgi?id=683415 --- ubuntu-online-accounts/cc-plugins/Makefile.am | 228 +---------- .../cc-plugins/account-plugins/Makefile.am | 225 +++++++++++ .../account-plugins/empathy-accounts-plugin-aim.c | 46 +++ .../account-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 ++++ .../account-plugins/empathy-accounts-plugin-icq.c | 46 +++ .../account-plugins/empathy-accounts-plugin-icq.h | 75 ++++ .../account-plugins/empathy-accounts-plugin-irc.c | 46 +++ .../account-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 ++++ .../account-plugins/empathy-accounts-plugin-mxit.c | 46 +++ .../account-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 ++++ .../account-plugins/empathy-accounts-plugin-sip.c | 46 +++ .../account-plugins/empathy-accounts-plugin-sip.h | 75 ++++ .../empathy-accounts-plugin-widget.c | 431 +++++++++++++++++++++ .../empathy-accounts-plugin-widget.h | 76 ++++ .../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 ++++ .../account-plugins/empathy-accounts-plugin.c | 125 ++++++ .../account-plugins/empathy-accounts-plugin.h | 69 ++++ .../cc-plugins/empathy-accounts-plugin-aim.c | 46 --- .../cc-plugins/empathy-accounts-plugin-aim.h | 75 ---- .../cc-plugins/empathy-accounts-plugin-gadugadu.c | 46 --- .../cc-plugins/empathy-accounts-plugin-gadugadu.h | 75 ---- .../cc-plugins/empathy-accounts-plugin-groupwise.c | 46 --- .../cc-plugins/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 ---- .../cc-plugins/empathy-accounts-plugin-jabber.c | 46 --- .../cc-plugins/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 ---- .../cc-plugins/empathy-accounts-plugin-myspace.c | 46 --- .../cc-plugins/empathy-accounts-plugin-myspace.h | 75 ---- .../cc-plugins/empathy-accounts-plugin-sametime.c | 46 --- .../cc-plugins/empathy-accounts-plugin-sametime.h | 75 ---- .../cc-plugins/empathy-accounts-plugin-sip.c | 46 --- .../cc-plugins/empathy-accounts-plugin-sip.h | 75 ---- .../cc-plugins/empathy-accounts-plugin-widget.c | 431 --------------------- .../cc-plugins/empathy-accounts-plugin-widget.h | 76 ---- .../cc-plugins/empathy-accounts-plugin-yahoo.c | 46 --- .../cc-plugins/empathy-accounts-plugin-yahoo.h | 75 ---- .../cc-plugins/empathy-accounts-plugin-yahoojp.c | 46 --- .../cc-plugins/empathy-accounts-plugin-yahoojp.h | 75 ---- .../cc-plugins/empathy-accounts-plugin-zephyr.c | 46 --- .../cc-plugins/empathy-accounts-plugin-zephyr.h | 75 ---- .../cc-plugins/empathy-accounts-plugin.c | 125 ------ .../cc-plugins/empathy-accounts-plugin.h | 69 ---- .../cc-plugins/generate-plugins.py | 33 +- 67 files changed, 2636 insertions(+), 2640 deletions(-) create mode 100644 ubuntu-online-accounts/cc-plugins/account-plugins/Makefile.am create mode 100644 ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-aim.c create mode 100644 ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-aim.h create mode 100644 ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-gadugadu.c create mode 100644 ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-gadugadu.h create mode 100644 ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-groupwise.c create mode 100644 ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-groupwise.h create mode 100644 ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-icq.c create mode 100644 ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-icq.h create mode 100644 ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-irc.c create mode 100644 ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-irc.h create mode 100644 ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-jabber.c create mode 100644 ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-jabber.h create mode 100644 ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-local-xmpp.c create mode 100644 ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-local-xmpp.h create mode 100644 ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-mxit.c create mode 100644 ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-mxit.h create mode 100644 ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-myspace.c create mode 100644 ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-myspace.h create mode 100644 ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-sametime.c create mode 100644 ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-sametime.h create mode 100644 ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-sip.c create mode 100644 ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-sip.h create mode 100644 ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-widget.c create mode 100644 ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-widget.h create mode 100644 ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-yahoo.c create mode 100644 ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-yahoo.h create mode 100644 ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-yahoojp.c create mode 100644 ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-yahoojp.h create mode 100644 ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-zephyr.c create mode 100644 ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-zephyr.h create mode 100644 ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin.c create mode 100644 ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin.h delete mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-aim.c delete mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-aim.h delete mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-gadugadu.c delete mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-gadugadu.h delete mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-groupwise.c delete mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-groupwise.h delete mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-icq.c delete mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-icq.h delete mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-irc.c delete mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-irc.h delete mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-jabber.c delete mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-jabber.h delete mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-local-xmpp.c delete mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-local-xmpp.h delete mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-mxit.c delete mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-mxit.h delete mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-myspace.c delete mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-myspace.h delete mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sametime.c delete mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sametime.h delete mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sip.c delete mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sip.h delete mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-widget.c delete mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-widget.h delete mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoo.c delete mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoo.h delete mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoojp.c delete mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoojp.h delete mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-zephyr.c delete mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-zephyr.h delete mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin.c delete mode 100644 ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin.h (limited to 'ubuntu-online-accounts') diff --git a/ubuntu-online-accounts/cc-plugins/Makefile.am b/ubuntu-online-accounts/cc-plugins/Makefile.am index b87b19c18..c8c3ce097 100644 --- a/ubuntu-online-accounts/cc-plugins/Makefile.am +++ b/ubuntu-online-accounts/cc-plugins/Makefile.am @@ -1,227 +1 @@ -# Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py -# Do NOT edit manually -SUBDIRS = providers services app-plugin - -plugindir = $(ACCOUNTS_PROVIDER_PLUGIN_DIR) - -INCLUDES = \ - -I$(top_builddir) \ - -I$(top_srcdir) \ - -DLOCALEDIR=\""$(datadir)/locale"\" \ - $(UOA_CFLAGS) \ - $(WARN_CFLAGS) \ - $(ERROR_CFLAGS) \ - $(DISABLE_DEPRECATED) \ - $(EMPATHY_CFLAGS) - -plugin_LTLIBRARIES = \ - libaim.la\ - libgadugadu.la\ - libgroupwise.la\ - libicq.la\ - libirc.la\ - libjabber.la\ - libmxit.la\ - libmyspace.la\ - libsip.la\ - liblocal-xmpp.la\ - libsametime.la\ - libyahoojp.la\ - libyahoo.la\ - libzephyr.la \ - $(NULL) - -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 -libaim_la_LIBADD = \ - $(UOA_LIBS) \ - $(top_builddir)/libempathy/libempathy.la \ - $(top_builddir)/libempathy-gtk/libempathy-gtk.la - - -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 -libgadugadu_la_LIBADD = \ - $(UOA_LIBS) \ - $(top_builddir)/libempathy/libempathy.la \ - $(top_builddir)/libempathy-gtk/libempathy-gtk.la - - -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 -libgroupwise_la_LIBADD = \ - $(UOA_LIBS) \ - $(top_builddir)/libempathy/libempathy.la \ - $(top_builddir)/libempathy-gtk/libempathy-gtk.la - - -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 -libicq_la_LIBADD = \ - $(UOA_LIBS) \ - $(top_builddir)/libempathy/libempathy.la \ - $(top_builddir)/libempathy-gtk/libempathy-gtk.la - - -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 -libirc_la_LIBADD = \ - $(UOA_LIBS) \ - $(top_builddir)/libempathy/libempathy.la \ - $(top_builddir)/libempathy-gtk/libempathy-gtk.la - - -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 -libjabber_la_LIBADD = \ - $(UOA_LIBS) \ - $(top_builddir)/libempathy/libempathy.la \ - $(top_builddir)/libempathy-gtk/libempathy-gtk.la - - -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 -libmxit_la_LIBADD = \ - $(UOA_LIBS) \ - $(top_builddir)/libempathy/libempathy.la \ - $(top_builddir)/libempathy-gtk/libempathy-gtk.la - - -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 -libmyspace_la_LIBADD = \ - $(UOA_LIBS) \ - $(top_builddir)/libempathy/libempathy.la \ - $(top_builddir)/libempathy-gtk/libempathy-gtk.la - - -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 -libsip_la_LIBADD = \ - $(UOA_LIBS) \ - $(top_builddir)/libempathy/libempathy.la \ - $(top_builddir)/libempathy-gtk/libempathy-gtk.la - - -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 -liblocal_xmpp_la_LIBADD = \ - $(UOA_LIBS) \ - $(top_builddir)/libempathy/libempathy.la \ - $(top_builddir)/libempathy-gtk/libempathy-gtk.la - - -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 -libsametime_la_LIBADD = \ - $(UOA_LIBS) \ - $(top_builddir)/libempathy/libempathy.la \ - $(top_builddir)/libempathy-gtk/libempathy-gtk.la - - -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 -libyahoojp_la_LIBADD = \ - $(UOA_LIBS) \ - $(top_builddir)/libempathy/libempathy.la \ - $(top_builddir)/libempathy-gtk/libempathy-gtk.la - - -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 -libyahoo_la_LIBADD = \ - $(UOA_LIBS) \ - $(top_builddir)/libempathy/libempathy.la \ - $(top_builddir)/libempathy-gtk/libempathy-gtk.la - - -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 -libzephyr_la_LIBADD = \ - $(UOA_LIBS) \ - $(top_builddir)/libempathy/libempathy.la \ - $(top_builddir)/libempathy-gtk/libempathy-gtk.la +SUBDIRS = account-plugins providers services app-plugin diff --git a/ubuntu-online-accounts/cc-plugins/account-plugins/Makefile.am b/ubuntu-online-accounts/cc-plugins/account-plugins/Makefile.am new file mode 100644 index 000000000..1d84b2865 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/account-plugins/Makefile.am @@ -0,0 +1,225 @@ +# Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py +# Do NOT edit manually +plugindir = $(ACCOUNTS_PROVIDER_PLUGIN_DIR) + +INCLUDES = \ + -I$(top_builddir) \ + -I$(top_srcdir) \ + -DLOCALEDIR=\""$(datadir)/locale"\" \ + $(UOA_CFLAGS) \ + $(WARN_CFLAGS) \ + $(ERROR_CFLAGS) \ + $(DISABLE_DEPRECATED) \ + $(EMPATHY_CFLAGS) + +plugin_LTLIBRARIES = \ + libaim.la\ + libgadugadu.la\ + libgroupwise.la\ + libicq.la\ + libirc.la\ + libjabber.la\ + libmxit.la\ + libmyspace.la\ + libsip.la\ + liblocal-xmpp.la\ + libsametime.la\ + libyahoojp.la\ + libyahoo.la\ + libzephyr.la \ + $(NULL) + +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 +libaim_la_LIBADD = \ + $(UOA_LIBS) \ + $(top_builddir)/libempathy/libempathy.la \ + $(top_builddir)/libempathy-gtk/libempathy-gtk.la + + +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 +libgadugadu_la_LIBADD = \ + $(UOA_LIBS) \ + $(top_builddir)/libempathy/libempathy.la \ + $(top_builddir)/libempathy-gtk/libempathy-gtk.la + + +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 +libgroupwise_la_LIBADD = \ + $(UOA_LIBS) \ + $(top_builddir)/libempathy/libempathy.la \ + $(top_builddir)/libempathy-gtk/libempathy-gtk.la + + +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 +libicq_la_LIBADD = \ + $(UOA_LIBS) \ + $(top_builddir)/libempathy/libempathy.la \ + $(top_builddir)/libempathy-gtk/libempathy-gtk.la + + +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 +libirc_la_LIBADD = \ + $(UOA_LIBS) \ + $(top_builddir)/libempathy/libempathy.la \ + $(top_builddir)/libempathy-gtk/libempathy-gtk.la + + +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 +libjabber_la_LIBADD = \ + $(UOA_LIBS) \ + $(top_builddir)/libempathy/libempathy.la \ + $(top_builddir)/libempathy-gtk/libempathy-gtk.la + + +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 +libmxit_la_LIBADD = \ + $(UOA_LIBS) \ + $(top_builddir)/libempathy/libempathy.la \ + $(top_builddir)/libempathy-gtk/libempathy-gtk.la + + +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 +libmyspace_la_LIBADD = \ + $(UOA_LIBS) \ + $(top_builddir)/libempathy/libempathy.la \ + $(top_builddir)/libempathy-gtk/libempathy-gtk.la + + +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 +libsip_la_LIBADD = \ + $(UOA_LIBS) \ + $(top_builddir)/libempathy/libempathy.la \ + $(top_builddir)/libempathy-gtk/libempathy-gtk.la + + +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 +liblocal_xmpp_la_LIBADD = \ + $(UOA_LIBS) \ + $(top_builddir)/libempathy/libempathy.la \ + $(top_builddir)/libempathy-gtk/libempathy-gtk.la + + +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 +libsametime_la_LIBADD = \ + $(UOA_LIBS) \ + $(top_builddir)/libempathy/libempathy.la \ + $(top_builddir)/libempathy-gtk/libempathy-gtk.la + + +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 +libyahoojp_la_LIBADD = \ + $(UOA_LIBS) \ + $(top_builddir)/libempathy/libempathy.la \ + $(top_builddir)/libempathy-gtk/libempathy-gtk.la + + +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 +libyahoo_la_LIBADD = \ + $(UOA_LIBS) \ + $(top_builddir)/libempathy/libempathy.la \ + $(top_builddir)/libempathy-gtk/libempathy-gtk.la + + +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 +libzephyr_la_LIBADD = \ + $(UOA_LIBS) \ + $(top_builddir)/libempathy/libempathy.la \ + $(top_builddir)/libempathy-gtk/libempathy-gtk.la diff --git a/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-aim.c b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-aim.c new file mode 100644 index 000000000..426547448 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/account-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/account-plugins/empathy-accounts-plugin-aim.h b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-aim.h new file mode 100644 index 000000000..a9e072deb --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/account-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/account-plugins/empathy-accounts-plugin-gadugadu.c b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-gadugadu.c new file mode 100644 index 000000000..2cd60222f --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/account-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/account-plugins/empathy-accounts-plugin-gadugadu.h b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-gadugadu.h new file mode 100644 index 000000000..1a0956e65 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/account-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/account-plugins/empathy-accounts-plugin-groupwise.c b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-groupwise.c new file mode 100644 index 000000000..ddcef5a2c --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/account-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/account-plugins/empathy-accounts-plugin-groupwise.h b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-groupwise.h new file mode 100644 index 000000000..00a75377a --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/account-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/account-plugins/empathy-accounts-plugin-icq.c b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-icq.c new file mode 100644 index 000000000..0f6aa3874 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/account-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/account-plugins/empathy-accounts-plugin-icq.h b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-icq.h new file mode 100644 index 000000000..b3a5e82a6 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/account-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/account-plugins/empathy-accounts-plugin-irc.c b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-irc.c new file mode 100644 index 000000000..53c243236 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/account-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/account-plugins/empathy-accounts-plugin-irc.h b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-irc.h new file mode 100644 index 000000000..b3a9a629b --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/account-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/account-plugins/empathy-accounts-plugin-jabber.c b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-jabber.c new file mode 100644 index 000000000..fffe98364 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/account-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/account-plugins/empathy-accounts-plugin-jabber.h b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-jabber.h new file mode 100644 index 000000000..c6e67f873 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/account-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/account-plugins/empathy-accounts-plugin-local-xmpp.c b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-local-xmpp.c new file mode 100644 index 000000000..f46741a5c --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/account-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/account-plugins/empathy-accounts-plugin-local-xmpp.h b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-local-xmpp.h new file mode 100644 index 000000000..8c5d56f18 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/account-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/account-plugins/empathy-accounts-plugin-mxit.c b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-mxit.c new file mode 100644 index 000000000..95fdc2fa7 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/account-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/account-plugins/empathy-accounts-plugin-mxit.h b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-mxit.h new file mode 100644 index 000000000..5a80c2c73 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/account-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/account-plugins/empathy-accounts-plugin-myspace.c b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-myspace.c new file mode 100644 index 000000000..5b848e200 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/account-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/account-plugins/empathy-accounts-plugin-myspace.h b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-myspace.h new file mode 100644 index 000000000..a6785a86f --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/account-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/account-plugins/empathy-accounts-plugin-sametime.c b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-sametime.c new file mode 100644 index 000000000..e33593421 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/account-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/account-plugins/empathy-accounts-plugin-sametime.h b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-sametime.h new file mode 100644 index 000000000..639ec15e2 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/account-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/account-plugins/empathy-accounts-plugin-sip.c b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-sip.c new file mode 100644 index 000000000..483f1b3ce --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/account-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/account-plugins/empathy-accounts-plugin-sip.h b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-sip.h new file mode 100644 index 000000000..e581f7809 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/account-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/account-plugins/empathy-accounts-plugin-widget.c b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-widget.c new file mode 100644 index 000000000..f76eb5cd4 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-widget.c @@ -0,0 +1,431 @@ +/* + * empathy-accounts-plugin-widget.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-widget.h" + +#include + +#include + +#include +#include + +#include + +G_DEFINE_TYPE (EmpathyAccountsPluginWidget, empathy_accounts_plugin_widget, GTK_TYPE_BOX) + +enum +{ + PROP_ACCOUNT = 1, + N_PROPS +}; + +enum +{ + SIG_DONE, + LAST_SIGNAL +}; + +static guint signals[LAST_SIGNAL]; + +struct _EmpathyAccountsPluginWidgetPriv +{ + AgAccount *account; + + EmpathyAccountSettings *settings; + + EmpathyAccountWidget *account_widget; + GtkWidget *done_button; +}; + +static void +empathy_accounts_plugin_widget_get_property (GObject *object, + guint property_id, + GValue *value, + GParamSpec *pspec) +{ + EmpathyAccountsPluginWidget *self = EMPATHY_ACCOUNTS_PLUGIN_WIDGET (object); + + switch (property_id) + { + case PROP_ACCOUNT: + g_value_set_object (value, self->priv->account); + break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); + break; + } +} + +static void +empathy_accounts_plugin_widget_set_property (GObject *object, + guint property_id, + const GValue *value, + GParamSpec *pspec) +{ + EmpathyAccountsPluginWidget *self = EMPATHY_ACCOUNTS_PLUGIN_WIDGET (object); + + switch (property_id) + { + case PROP_ACCOUNT: + self->priv->account = g_value_dup_object (value); + break; + default: + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); + break; + } +} + +static EmpathyAccountSettings * +create_account_settings (AgAccount *account) +{ + AgService *service; + GList *services; + AgAccountService *account_service; + GValue v = G_VALUE_INIT; + gchar *manager = NULL, *protocol = NULL; + EmpathyAccountSettings *settings; + + g_assert (account->id == 0); + + services = ag_account_list_services_by_type (account, "IM"); + g_return_val_if_fail (services != NULL, NULL); + service = (AgService *) services->data; + + account_service = ag_account_service_new (account, service); + + g_value_init (&v, G_TYPE_STRING); + if (ag_account_service_get_value (account_service, + "telepathy/manager", &v) != AG_SETTING_SOURCE_NONE) + manager = g_value_dup_string (&v); + g_value_unset (&v); + + g_value_init (&v, G_TYPE_STRING); + if (ag_account_service_get_value (account_service, + "telepathy/protocol", &v) != AG_SETTING_SOURCE_NONE) + protocol = g_value_dup_string (&v); + g_value_unset (&v); + + g_return_val_if_fail (manager != NULL, NULL); + g_return_val_if_fail (protocol != NULL, NULL); + + settings = empathy_account_settings_new (manager, protocol, NULL, + ag_service_get_display_name (service)); + + empathy_account_settings_set_storage_provider (settings, + EMPATHY_UOA_PROVIDER); + + empathy_account_settings_set_icon_name_async (settings, + ag_service_get_icon_name (service), NULL, NULL); + + g_free (manager); + g_free (protocol); + + return settings; +} + +static void +response_cb (GtkWidget *widget, + gint response, + EmpathyAccountsPluginWidget *self) +{ + if (response == GTK_RESPONSE_OK) + { + empathy_account_widget_apply_and_log_in (self->priv->account_widget); + + /* Rely on account_widget_close_cb to fire the 'done' signal */ + } + else + { + empathy_account_widget_discard_pending_changes ( + self->priv->account_widget); + + g_signal_emit (self, signals[SIG_DONE], 0); + } +} + +static GtkWidget * +create_top_bar (EmpathyAccountsPluginWidget *self) +{ + GtkWidget *bar, *content, *action, *label; + GtkCssProvider *css; + GError *error = NULL; + + bar = gtk_info_bar_new_with_buttons ( + GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, + NULL); + + self->priv->done_button = gtk_info_bar_add_button (GTK_INFO_BAR (bar), + _("Done"), GTK_RESPONSE_OK); + + gtk_widget_set_hexpand (bar, TRUE); + gtk_info_bar_set_message_type (GTK_INFO_BAR (bar), GTK_MESSAGE_QUESTION); + action = gtk_info_bar_get_action_area (GTK_INFO_BAR (bar)); + gtk_orientable_set_orientation (GTK_ORIENTABLE (action), + GTK_ORIENTATION_HORIZONTAL); + gtk_widget_set_name (bar, "authorization-infobar"); + css = gtk_css_provider_new (); + if (gtk_css_provider_load_from_data (css, + "@define-color question_bg_color rgb (222, 222, 222);" + "GtkInfoBar#authorization-infobar" + "{" + " color: @fg_color;" + "}", + -1, &error)) + { + GtkStyleContext *context = gtk_widget_get_style_context (bar); + + gtk_style_context_add_provider (context, (GtkStyleProvider *) css, + GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); + } + else + { + g_warning ("Error processing CSS theme override: %s", error->message); + g_clear_error (&error); + } + g_object_unref (css); + + content = gtk_info_bar_get_content_area (GTK_INFO_BAR (bar)); + + label = gtk_label_new (_("Please enter your account details")); + gtk_container_add (GTK_CONTAINER (content), label); + gtk_widget_show (label); + + g_signal_connect (bar, "response", + G_CALLBACK (response_cb), self); + + return bar; +} + +static void +account_widget_handle_apply_cb (EmpathyAccountWidget *widget, + gboolean valid, + EmpathyAccountsPluginWidget *self) +{ + gtk_widget_set_sensitive (self->priv->done_button, valid); +} + +static void +account_widget_close_cb (EmpathyAccountWidget *widget, + GtkResponseType response, + EmpathyAccountsPluginWidget *self) +{ + g_signal_emit (self, signals[SIG_DONE], 0); +} + +static void +add_account_widget (EmpathyAccountsPluginWidget *self) +{ + GtkWidget *alig; + gboolean simple; + + alig = gtk_alignment_new (0.5, 0, 0, 0); + + gtk_box_pack_start (GTK_BOX (self), alig, TRUE, TRUE, 0); + gtk_widget_show (GTK_WIDGET (alig)); + + /* Use the simple widget only when creating the account */ + simple = (self->priv->account->id == 0); + + self->priv->account_widget = empathy_account_widget_new_for_protocol ( + self->priv->settings, simple); + + empathy_account_widget_hide_buttons (self->priv->account_widget); + + gtk_widget_set_valign (GTK_WIDGET (self->priv->account_widget), + GTK_ALIGN_CENTER); + + gtk_container_add (GTK_CONTAINER (alig), + GTK_WIDGET (self->priv->account_widget)); + gtk_widget_show (GTK_WIDGET (self->priv->account_widget)); + + if (!empathy_account_settings_is_valid (self->priv->settings)) + { + gtk_widget_set_sensitive (self->priv->done_button, FALSE); + } + + g_signal_connect (self->priv->account_widget, "handle-apply", + G_CALLBACK (account_widget_handle_apply_cb), self); + g_signal_connect (self->priv->account_widget, "close", + G_CALLBACK (account_widget_close_cb), self); +} + +static void +maybe_add_account_widget (EmpathyAccountsPluginWidget *self) +{ + g_return_if_fail (self->priv->settings != NULL); + + if (empathy_account_settings_is_ready (self->priv->settings)) + { + add_account_widget (self); + } + else + { + g_signal_connect_swapped (self->priv->settings, "notify::ready", + G_CALLBACK (add_account_widget), self); + } +} + +static void +manager_prepared_cb (GObject *source, + GAsyncResult *result, + gpointer user_data) +{ + TpWeakRef *wr = user_data; + EmpathyAccountsPluginWidget *self = tp_weak_ref_dup_object (wr); + TpAccountManager *manager = (TpAccountManager *) source; + GList *accounts; + GError *error = NULL; + + if (self == NULL) + { + tp_weak_ref_destroy (wr); + return; + } + + if (!tp_proxy_prepare_finish (manager, result, &error)) + { + g_debug ("Error preparing Account Manager: %s", error->message); + g_clear_error (&error); + goto out; + } + + accounts = tp_account_manager_get_valid_accounts (manager); + while (accounts != NULL) + { + TpAccount *account = accounts->data; + const GValue *value; + + value = tp_account_get_storage_identifier (account); + if (G_VALUE_HOLDS_UINT (value) && + g_value_get_uint (value) == self->priv->account->id) + { + self->priv->settings = empathy_account_settings_new_for_account ( + account); + maybe_add_account_widget (self); + break; + } + + accounts = g_list_delete_link (accounts, accounts); + } + g_list_free (accounts); + +out: + tp_weak_ref_destroy (wr); + g_object_unref (self); +} + +static void +empathy_accounts_plugin_widget_constructed (GObject *object) +{ + EmpathyAccountsPluginWidget *self = EMPATHY_ACCOUNTS_PLUGIN_WIDGET (object); + void (*chain_up) (GObject *) = + ((GObjectClass *) empathy_accounts_plugin_widget_parent_class)->constructed; + GtkWidget *top; + + if (chain_up != NULL) + chain_up (object); + + g_return_if_fail (AG_IS_ACCOUNT (self->priv->account)); + + /* Top bar */ + top = create_top_bar (self); + gtk_widget_show (top); + gtk_box_pack_start (GTK_BOX (self), top, FALSE, FALSE, 0); + + if (self->priv->account->id != 0) + { + TpAccountManager *manager; + + /* Prepare tp's account manager to find the TpAccount corresponding to our + * AgAccount */ + manager = tp_account_manager_dup (); + + tp_proxy_prepare_async (manager, NULL, + manager_prepared_cb, tp_weak_ref_new (self, NULL, NULL)); + g_object_unref (manager); + return; + } + + self->priv->settings = create_account_settings (self->priv->account); + maybe_add_account_widget (self); +} + +static void +empathy_accounts_plugin_widget_dispose (GObject *object) +{ + EmpathyAccountsPluginWidget *self = EMPATHY_ACCOUNTS_PLUGIN_WIDGET (object); + void (*chain_up) (GObject *) = + ((GObjectClass *) empathy_accounts_plugin_widget_parent_class)->dispose; + + g_clear_object (&self->priv->account); + g_clear_object (&self->priv->settings); + + if (chain_up != NULL) + chain_up (object); +} + +static void +empathy_accounts_plugin_widget_class_init ( + EmpathyAccountsPluginWidgetClass *klass) +{ + GObjectClass *oclass = G_OBJECT_CLASS (klass); + GParamSpec *spec; + + oclass->get_property = empathy_accounts_plugin_widget_get_property; + oclass->set_property = empathy_accounts_plugin_widget_set_property; + oclass->constructed = empathy_accounts_plugin_widget_constructed; + oclass->dispose = empathy_accounts_plugin_widget_dispose; + + spec = g_param_spec_object ("account", "account", + "AgAccount", + AG_TYPE_ACCOUNT, + G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); + g_object_class_install_property (oclass, PROP_ACCOUNT, spec); + + signals[SIG_DONE] = g_signal_new ("done", + G_OBJECT_CLASS_TYPE (klass), + G_SIGNAL_RUN_LAST, + 0, NULL, NULL, NULL, + G_TYPE_NONE, + 0); + + g_type_class_add_private (klass, sizeof (EmpathyAccountsPluginWidgetPriv)); +} + +static void +empathy_accounts_plugin_widget_init (EmpathyAccountsPluginWidget *self) +{ + self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, + EMPATHY_TYPE_ACCOUNTS_PLUGIN_WIDGET, EmpathyAccountsPluginWidgetPriv); +} + +GtkWidget * +empathy_accounts_plugin_widget_new (AgAccount *account) +{ + return g_object_new (EMPATHY_TYPE_ACCOUNTS_PLUGIN_WIDGET, + "account", account, + "orientation", GTK_ORIENTATION_VERTICAL, + "spacing", 10, + NULL); +} diff --git a/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-widget.h b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-widget.h new file mode 100644 index 000000000..17963e656 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-widget.h @@ -0,0 +1,76 @@ +/* + * empathy-accounts-plugin-widget.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_WIDGET_H__ +#define __EMPATHY_ACCOUNTS_PLUGIN_WIDGET_H__ + +#include + +#include + +G_BEGIN_DECLS + +typedef struct _EmpathyAccountsPluginWidget EmpathyAccountsPluginWidget; +typedef struct _EmpathyAccountsPluginWidgetClass EmpathyAccountsPluginWidgetClass; +typedef struct _EmpathyAccountsPluginWidgetPriv EmpathyAccountsPluginWidgetPriv; + +struct _EmpathyAccountsPluginWidgetClass +{ + /**/ + GtkBoxClass parent_class; +}; + +struct _EmpathyAccountsPluginWidget +{ + /**/ + GtkBox parent; + EmpathyAccountsPluginWidgetPriv *priv; +}; + +GType empathy_accounts_plugin_widget_get_type (void); + +/* TYPE MACROS */ +#define EMPATHY_TYPE_ACCOUNTS_PLUGIN_WIDGET \ + (empathy_accounts_plugin_widget_get_type ()) +#define EMPATHY_ACCOUNTS_PLUGIN_WIDGET(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_WIDGET, \ + EmpathyAccountsPluginWidget)) +#define EMPATHY_ACCOUNTS_PLUGIN_WIDGET_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_WIDGET, \ + EmpathyAccountsPluginWidgetClass)) +#define EMPATHY_IS_ACCOUNTS_PLUGIN_WIDGET(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_WIDGET)) +#define EMPATHY_IS_ACCOUNTS_PLUGIN_WIDGET_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE((klass), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_WIDGET)) +#define EMPATHY_ACCOUNTS_PLUGIN_WIDGET_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN_WIDGET, \ + EmpathyAccountsPluginWidgetClass)) + +GtkWidget * empathy_accounts_plugin_widget_new (AgAccount *account); + +G_END_DECLS + +#endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_WIDGET_H__*/ diff --git a/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-yahoo.c b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-yahoo.c new file mode 100644 index 000000000..8461bed0b --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/account-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/account-plugins/empathy-accounts-plugin-yahoo.h b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-yahoo.h new file mode 100644 index 000000000..2f02c4a30 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/account-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/account-plugins/empathy-accounts-plugin-yahoojp.c b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-yahoojp.c new file mode 100644 index 000000000..12e771b1f --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/account-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/account-plugins/empathy-accounts-plugin-yahoojp.h b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-yahoojp.h new file mode 100644 index 000000000..c57634a75 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/account-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/account-plugins/empathy-accounts-plugin-zephyr.c b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-zephyr.c new file mode 100644 index 000000000..e3d0b4ed3 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/account-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/account-plugins/empathy-accounts-plugin-zephyr.h b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-zephyr.h new file mode 100644 index 000000000..90bd4c764 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/account-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/account-plugins/empathy-accounts-plugin.c b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin.c new file mode 100644 index 000000000..46e429e43 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin.c @@ -0,0 +1,125 @@ +/* + * empathy-accounts-plugin.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.h" + +#include +#include + +#include "empathy-accounts-plugin-widget.h" + +G_DEFINE_TYPE (EmpathyAccountsPlugin, empathy_accounts_plugin, AP_TYPE_PLUGIN) + +static void +widget_done_cb (EmpathyAccountsPluginWidget *widget, + ApPlugin *plugin) +{ + ap_plugin_emit_finished (plugin); +} + +static GtkWidget * +empathy_accounts_plugin_build_widget (ApPlugin *plugin) +{ + AgAccount *account; + GtkWidget *widget; + + account = ap_plugin_get_account (plugin); + empathy_uoa_manager_set_default (ag_account_get_manager (account)); + + widget = empathy_accounts_plugin_widget_new (account); + + g_signal_connect (widget, "done", + G_CALLBACK (widget_done_cb), plugin); + + return widget; +} + +static void +store_delete_cb (AgAccount *account, + const GError *error, + gpointer user_data) +{ + GSimpleAsyncResult *result = user_data; + + if (error != NULL) + { + g_debug ("Failed to delete account with ID '%u': %s", + account->id, error->message); + + g_simple_async_result_set_from_error (result, error); + } + + g_simple_async_result_complete (result); + g_object_unref (result); +} + +static void +empathy_accounts_plugin_delete_account (ApPlugin *plugin, + GAsyncReadyCallback callback, + gpointer user_data) +{ + AgAccount *account; + GSimpleAsyncResult *result; + + result = g_simple_async_result_new (G_OBJECT (plugin), + callback, user_data, ap_plugin_delete_account); + + account = ap_plugin_get_account (plugin); + + ag_account_delete (account); + ag_account_store (account, store_delete_cb, result); +} + +static void +empathy_accounts_plugin_act_headless (ApPlugin *plugin) +{ +} + +static void +empathy_accounts_plugin_class_init ( + EmpathyAccountsPluginClass *klass) +{ + ApPluginClass *pclass = AP_PLUGIN_CLASS (klass); + + pclass->build_widget = empathy_accounts_plugin_build_widget; + pclass->delete_account = empathy_accounts_plugin_delete_account; + pclass->act_headless = empathy_accounts_plugin_act_headless; +} + +static void +empathy_accounts_plugin_init (EmpathyAccountsPlugin *self) +{ + if (tp_account_manager_can_set_default ()) + { + EmpathyClientFactory *factory; + TpAccountManager *am; + + factory = empathy_client_factory_dup (); + am = tp_account_manager_new_with_factory ( + TP_SIMPLE_CLIENT_FACTORY (factory)); + tp_account_manager_set_default (am); + + g_object_unref (factory); + g_object_unref (am); + } + +} diff --git a/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin.h b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin.h new file mode 100644 index 000000000..bb259c8a1 --- /dev/null +++ b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin.h @@ -0,0 +1,69 @@ +/* + * empathy-accounts-plugin.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_H__ +#define __EMPATHY_ACCOUNTS_PLUGIN_H__ + +#include + +G_BEGIN_DECLS + +typedef struct _EmpathyAccountsPlugin EmpathyAccountsPlugin; +typedef struct _EmpathyAccountsPluginClass EmpathyAccountsPluginClass; + +struct _EmpathyAccountsPluginClass +{ + /**/ + ApPluginClass parent_class; +}; + +struct _EmpathyAccountsPlugin +{ + /**/ + ApPlugin parent; +}; + +GType empathy_accounts_plugin_get_type (void); + +/* TYPE MACROS */ +#define EMPATHY_TYPE_ACCOUNTS_PLUGIN \ + (empathy_accounts_plugin_get_type ()) +#define EMPATHY_ACCOUNTS_PLUGIN(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN, \ + EmpathyAccountsPlugin)) +#define EMPATHY_ACCOUNTS_PLUGIN_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN, \ + EmpathyAccountsPluginClass)) +#define EMPATHY_IS_ACCOUNTS_PLUGIN(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN)) +#define EMPATHY_IS_ACCOUNTS_PLUGIN_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE((klass), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN)) +#define EMPATHY_ACCOUNTS_PLUGIN_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), \ + EMPATHY_TYPE_ACCOUNTS_PLUGIN, \ + EmpathyAccountsPluginClass)) + +G_END_DECLS + +#endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_H__*/ diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-aim.c b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-aim.c deleted file mode 100644 index 426547448..000000000 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-aim.c +++ /dev/null @@ -1,46 +0,0 @@ -/* # 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 deleted file mode 100644 index a9e072deb..000000000 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-aim.h +++ /dev/null @@ -1,75 +0,0 @@ -/* # 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 deleted file mode 100644 index 2cd60222f..000000000 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-gadugadu.c +++ /dev/null @@ -1,46 +0,0 @@ -/* # 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 deleted file mode 100644 index 1a0956e65..000000000 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-gadugadu.h +++ /dev/null @@ -1,75 +0,0 @@ -/* # 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 deleted file mode 100644 index ddcef5a2c..000000000 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-groupwise.c +++ /dev/null @@ -1,46 +0,0 @@ -/* # 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 deleted file mode 100644 index 00a75377a..000000000 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-groupwise.h +++ /dev/null @@ -1,75 +0,0 @@ -/* # 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 deleted file mode 100644 index 0f6aa3874..000000000 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-icq.c +++ /dev/null @@ -1,46 +0,0 @@ -/* # 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 deleted file mode 100644 index b3a5e82a6..000000000 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-icq.h +++ /dev/null @@ -1,75 +0,0 @@ -/* # 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 deleted file mode 100644 index 53c243236..000000000 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-irc.c +++ /dev/null @@ -1,46 +0,0 @@ -/* # 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 deleted file mode 100644 index b3a9a629b..000000000 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-irc.h +++ /dev/null @@ -1,75 +0,0 @@ -/* # 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 deleted file mode 100644 index fffe98364..000000000 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-jabber.c +++ /dev/null @@ -1,46 +0,0 @@ -/* # 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 deleted file mode 100644 index c6e67f873..000000000 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-jabber.h +++ /dev/null @@ -1,75 +0,0 @@ -/* # 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 deleted file mode 100644 index f46741a5c..000000000 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-local-xmpp.c +++ /dev/null @@ -1,46 +0,0 @@ -/* # 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 deleted file mode 100644 index 8c5d56f18..000000000 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-local-xmpp.h +++ /dev/null @@ -1,75 +0,0 @@ -/* # 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 deleted file mode 100644 index 95fdc2fa7..000000000 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-mxit.c +++ /dev/null @@ -1,46 +0,0 @@ -/* # 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 deleted file mode 100644 index 5a80c2c73..000000000 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-mxit.h +++ /dev/null @@ -1,75 +0,0 @@ -/* # 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 deleted file mode 100644 index 5b848e200..000000000 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-myspace.c +++ /dev/null @@ -1,46 +0,0 @@ -/* # 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 deleted file mode 100644 index a6785a86f..000000000 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-myspace.h +++ /dev/null @@ -1,75 +0,0 @@ -/* # 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 deleted file mode 100644 index e33593421..000000000 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sametime.c +++ /dev/null @@ -1,46 +0,0 @@ -/* # 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 deleted file mode 100644 index 639ec15e2..000000000 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sametime.h +++ /dev/null @@ -1,75 +0,0 @@ -/* # 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 deleted file mode 100644 index 483f1b3ce..000000000 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sip.c +++ /dev/null @@ -1,46 +0,0 @@ -/* # 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 deleted file mode 100644 index e581f7809..000000000 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-sip.h +++ /dev/null @@ -1,75 +0,0 @@ -/* # 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-widget.c b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-widget.c deleted file mode 100644 index f76eb5cd4..000000000 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-widget.c +++ /dev/null @@ -1,431 +0,0 @@ -/* - * empathy-accounts-plugin-widget.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-widget.h" - -#include - -#include - -#include -#include - -#include - -G_DEFINE_TYPE (EmpathyAccountsPluginWidget, empathy_accounts_plugin_widget, GTK_TYPE_BOX) - -enum -{ - PROP_ACCOUNT = 1, - N_PROPS -}; - -enum -{ - SIG_DONE, - LAST_SIGNAL -}; - -static guint signals[LAST_SIGNAL]; - -struct _EmpathyAccountsPluginWidgetPriv -{ - AgAccount *account; - - EmpathyAccountSettings *settings; - - EmpathyAccountWidget *account_widget; - GtkWidget *done_button; -}; - -static void -empathy_accounts_plugin_widget_get_property (GObject *object, - guint property_id, - GValue *value, - GParamSpec *pspec) -{ - EmpathyAccountsPluginWidget *self = EMPATHY_ACCOUNTS_PLUGIN_WIDGET (object); - - switch (property_id) - { - case PROP_ACCOUNT: - g_value_set_object (value, self->priv->account); - break; - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); - break; - } -} - -static void -empathy_accounts_plugin_widget_set_property (GObject *object, - guint property_id, - const GValue *value, - GParamSpec *pspec) -{ - EmpathyAccountsPluginWidget *self = EMPATHY_ACCOUNTS_PLUGIN_WIDGET (object); - - switch (property_id) - { - case PROP_ACCOUNT: - self->priv->account = g_value_dup_object (value); - break; - default: - G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); - break; - } -} - -static EmpathyAccountSettings * -create_account_settings (AgAccount *account) -{ - AgService *service; - GList *services; - AgAccountService *account_service; - GValue v = G_VALUE_INIT; - gchar *manager = NULL, *protocol = NULL; - EmpathyAccountSettings *settings; - - g_assert (account->id == 0); - - services = ag_account_list_services_by_type (account, "IM"); - g_return_val_if_fail (services != NULL, NULL); - service = (AgService *) services->data; - - account_service = ag_account_service_new (account, service); - - g_value_init (&v, G_TYPE_STRING); - if (ag_account_service_get_value (account_service, - "telepathy/manager", &v) != AG_SETTING_SOURCE_NONE) - manager = g_value_dup_string (&v); - g_value_unset (&v); - - g_value_init (&v, G_TYPE_STRING); - if (ag_account_service_get_value (account_service, - "telepathy/protocol", &v) != AG_SETTING_SOURCE_NONE) - protocol = g_value_dup_string (&v); - g_value_unset (&v); - - g_return_val_if_fail (manager != NULL, NULL); - g_return_val_if_fail (protocol != NULL, NULL); - - settings = empathy_account_settings_new (manager, protocol, NULL, - ag_service_get_display_name (service)); - - empathy_account_settings_set_storage_provider (settings, - EMPATHY_UOA_PROVIDER); - - empathy_account_settings_set_icon_name_async (settings, - ag_service_get_icon_name (service), NULL, NULL); - - g_free (manager); - g_free (protocol); - - return settings; -} - -static void -response_cb (GtkWidget *widget, - gint response, - EmpathyAccountsPluginWidget *self) -{ - if (response == GTK_RESPONSE_OK) - { - empathy_account_widget_apply_and_log_in (self->priv->account_widget); - - /* Rely on account_widget_close_cb to fire the 'done' signal */ - } - else - { - empathy_account_widget_discard_pending_changes ( - self->priv->account_widget); - - g_signal_emit (self, signals[SIG_DONE], 0); - } -} - -static GtkWidget * -create_top_bar (EmpathyAccountsPluginWidget *self) -{ - GtkWidget *bar, *content, *action, *label; - GtkCssProvider *css; - GError *error = NULL; - - bar = gtk_info_bar_new_with_buttons ( - GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, - NULL); - - self->priv->done_button = gtk_info_bar_add_button (GTK_INFO_BAR (bar), - _("Done"), GTK_RESPONSE_OK); - - gtk_widget_set_hexpand (bar, TRUE); - gtk_info_bar_set_message_type (GTK_INFO_BAR (bar), GTK_MESSAGE_QUESTION); - action = gtk_info_bar_get_action_area (GTK_INFO_BAR (bar)); - gtk_orientable_set_orientation (GTK_ORIENTABLE (action), - GTK_ORIENTATION_HORIZONTAL); - gtk_widget_set_name (bar, "authorization-infobar"); - css = gtk_css_provider_new (); - if (gtk_css_provider_load_from_data (css, - "@define-color question_bg_color rgb (222, 222, 222);" - "GtkInfoBar#authorization-infobar" - "{" - " color: @fg_color;" - "}", - -1, &error)) - { - GtkStyleContext *context = gtk_widget_get_style_context (bar); - - gtk_style_context_add_provider (context, (GtkStyleProvider *) css, - GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); - } - else - { - g_warning ("Error processing CSS theme override: %s", error->message); - g_clear_error (&error); - } - g_object_unref (css); - - content = gtk_info_bar_get_content_area (GTK_INFO_BAR (bar)); - - label = gtk_label_new (_("Please enter your account details")); - gtk_container_add (GTK_CONTAINER (content), label); - gtk_widget_show (label); - - g_signal_connect (bar, "response", - G_CALLBACK (response_cb), self); - - return bar; -} - -static void -account_widget_handle_apply_cb (EmpathyAccountWidget *widget, - gboolean valid, - EmpathyAccountsPluginWidget *self) -{ - gtk_widget_set_sensitive (self->priv->done_button, valid); -} - -static void -account_widget_close_cb (EmpathyAccountWidget *widget, - GtkResponseType response, - EmpathyAccountsPluginWidget *self) -{ - g_signal_emit (self, signals[SIG_DONE], 0); -} - -static void -add_account_widget (EmpathyAccountsPluginWidget *self) -{ - GtkWidget *alig; - gboolean simple; - - alig = gtk_alignment_new (0.5, 0, 0, 0); - - gtk_box_pack_start (GTK_BOX (self), alig, TRUE, TRUE, 0); - gtk_widget_show (GTK_WIDGET (alig)); - - /* Use the simple widget only when creating the account */ - simple = (self->priv->account->id == 0); - - self->priv->account_widget = empathy_account_widget_new_for_protocol ( - self->priv->settings, simple); - - empathy_account_widget_hide_buttons (self->priv->account_widget); - - gtk_widget_set_valign (GTK_WIDGET (self->priv->account_widget), - GTK_ALIGN_CENTER); - - gtk_container_add (GTK_CONTAINER (alig), - GTK_WIDGET (self->priv->account_widget)); - gtk_widget_show (GTK_WIDGET (self->priv->account_widget)); - - if (!empathy_account_settings_is_valid (self->priv->settings)) - { - gtk_widget_set_sensitive (self->priv->done_button, FALSE); - } - - g_signal_connect (self->priv->account_widget, "handle-apply", - G_CALLBACK (account_widget_handle_apply_cb), self); - g_signal_connect (self->priv->account_widget, "close", - G_CALLBACK (account_widget_close_cb), self); -} - -static void -maybe_add_account_widget (EmpathyAccountsPluginWidget *self) -{ - g_return_if_fail (self->priv->settings != NULL); - - if (empathy_account_settings_is_ready (self->priv->settings)) - { - add_account_widget (self); - } - else - { - g_signal_connect_swapped (self->priv->settings, "notify::ready", - G_CALLBACK (add_account_widget), self); - } -} - -static void -manager_prepared_cb (GObject *source, - GAsyncResult *result, - gpointer user_data) -{ - TpWeakRef *wr = user_data; - EmpathyAccountsPluginWidget *self = tp_weak_ref_dup_object (wr); - TpAccountManager *manager = (TpAccountManager *) source; - GList *accounts; - GError *error = NULL; - - if (self == NULL) - { - tp_weak_ref_destroy (wr); - return; - } - - if (!tp_proxy_prepare_finish (manager, result, &error)) - { - g_debug ("Error preparing Account Manager: %s", error->message); - g_clear_error (&error); - goto out; - } - - accounts = tp_account_manager_get_valid_accounts (manager); - while (accounts != NULL) - { - TpAccount *account = accounts->data; - const GValue *value; - - value = tp_account_get_storage_identifier (account); - if (G_VALUE_HOLDS_UINT (value) && - g_value_get_uint (value) == self->priv->account->id) - { - self->priv->settings = empathy_account_settings_new_for_account ( - account); - maybe_add_account_widget (self); - break; - } - - accounts = g_list_delete_link (accounts, accounts); - } - g_list_free (accounts); - -out: - tp_weak_ref_destroy (wr); - g_object_unref (self); -} - -static void -empathy_accounts_plugin_widget_constructed (GObject *object) -{ - EmpathyAccountsPluginWidget *self = EMPATHY_ACCOUNTS_PLUGIN_WIDGET (object); - void (*chain_up) (GObject *) = - ((GObjectClass *) empathy_accounts_plugin_widget_parent_class)->constructed; - GtkWidget *top; - - if (chain_up != NULL) - chain_up (object); - - g_return_if_fail (AG_IS_ACCOUNT (self->priv->account)); - - /* Top bar */ - top = create_top_bar (self); - gtk_widget_show (top); - gtk_box_pack_start (GTK_BOX (self), top, FALSE, FALSE, 0); - - if (self->priv->account->id != 0) - { - TpAccountManager *manager; - - /* Prepare tp's account manager to find the TpAccount corresponding to our - * AgAccount */ - manager = tp_account_manager_dup (); - - tp_proxy_prepare_async (manager, NULL, - manager_prepared_cb, tp_weak_ref_new (self, NULL, NULL)); - g_object_unref (manager); - return; - } - - self->priv->settings = create_account_settings (self->priv->account); - maybe_add_account_widget (self); -} - -static void -empathy_accounts_plugin_widget_dispose (GObject *object) -{ - EmpathyAccountsPluginWidget *self = EMPATHY_ACCOUNTS_PLUGIN_WIDGET (object); - void (*chain_up) (GObject *) = - ((GObjectClass *) empathy_accounts_plugin_widget_parent_class)->dispose; - - g_clear_object (&self->priv->account); - g_clear_object (&self->priv->settings); - - if (chain_up != NULL) - chain_up (object); -} - -static void -empathy_accounts_plugin_widget_class_init ( - EmpathyAccountsPluginWidgetClass *klass) -{ - GObjectClass *oclass = G_OBJECT_CLASS (klass); - GParamSpec *spec; - - oclass->get_property = empathy_accounts_plugin_widget_get_property; - oclass->set_property = empathy_accounts_plugin_widget_set_property; - oclass->constructed = empathy_accounts_plugin_widget_constructed; - oclass->dispose = empathy_accounts_plugin_widget_dispose; - - spec = g_param_spec_object ("account", "account", - "AgAccount", - AG_TYPE_ACCOUNT, - G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); - g_object_class_install_property (oclass, PROP_ACCOUNT, spec); - - signals[SIG_DONE] = g_signal_new ("done", - G_OBJECT_CLASS_TYPE (klass), - G_SIGNAL_RUN_LAST, - 0, NULL, NULL, NULL, - G_TYPE_NONE, - 0); - - g_type_class_add_private (klass, sizeof (EmpathyAccountsPluginWidgetPriv)); -} - -static void -empathy_accounts_plugin_widget_init (EmpathyAccountsPluginWidget *self) -{ - self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, - EMPATHY_TYPE_ACCOUNTS_PLUGIN_WIDGET, EmpathyAccountsPluginWidgetPriv); -} - -GtkWidget * -empathy_accounts_plugin_widget_new (AgAccount *account) -{ - return g_object_new (EMPATHY_TYPE_ACCOUNTS_PLUGIN_WIDGET, - "account", account, - "orientation", GTK_ORIENTATION_VERTICAL, - "spacing", 10, - NULL); -} diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-widget.h b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-widget.h deleted file mode 100644 index 17963e656..000000000 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-widget.h +++ /dev/null @@ -1,76 +0,0 @@ -/* - * empathy-accounts-plugin-widget.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_WIDGET_H__ -#define __EMPATHY_ACCOUNTS_PLUGIN_WIDGET_H__ - -#include - -#include - -G_BEGIN_DECLS - -typedef struct _EmpathyAccountsPluginWidget EmpathyAccountsPluginWidget; -typedef struct _EmpathyAccountsPluginWidgetClass EmpathyAccountsPluginWidgetClass; -typedef struct _EmpathyAccountsPluginWidgetPriv EmpathyAccountsPluginWidgetPriv; - -struct _EmpathyAccountsPluginWidgetClass -{ - /**/ - GtkBoxClass parent_class; -}; - -struct _EmpathyAccountsPluginWidget -{ - /**/ - GtkBox parent; - EmpathyAccountsPluginWidgetPriv *priv; -}; - -GType empathy_accounts_plugin_widget_get_type (void); - -/* TYPE MACROS */ -#define EMPATHY_TYPE_ACCOUNTS_PLUGIN_WIDGET \ - (empathy_accounts_plugin_widget_get_type ()) -#define EMPATHY_ACCOUNTS_PLUGIN_WIDGET(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST((obj), \ - EMPATHY_TYPE_ACCOUNTS_PLUGIN_WIDGET, \ - EmpathyAccountsPluginWidget)) -#define EMPATHY_ACCOUNTS_PLUGIN_WIDGET_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST((klass), \ - EMPATHY_TYPE_ACCOUNTS_PLUGIN_WIDGET, \ - EmpathyAccountsPluginWidgetClass)) -#define EMPATHY_IS_ACCOUNTS_PLUGIN_WIDGET(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ - EMPATHY_TYPE_ACCOUNTS_PLUGIN_WIDGET)) -#define EMPATHY_IS_ACCOUNTS_PLUGIN_WIDGET_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_TYPE((klass), \ - EMPATHY_TYPE_ACCOUNTS_PLUGIN_WIDGET)) -#define EMPATHY_ACCOUNTS_PLUGIN_WIDGET_GET_CLASS(obj) \ - (G_TYPE_INSTANCE_GET_CLASS ((obj), \ - EMPATHY_TYPE_ACCOUNTS_PLUGIN_WIDGET, \ - EmpathyAccountsPluginWidgetClass)) - -GtkWidget * empathy_accounts_plugin_widget_new (AgAccount *account); - -G_END_DECLS - -#endif /* #ifndef __EMPATHY_ACCOUNTS_PLUGIN_WIDGET_H__*/ diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoo.c b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoo.c deleted file mode 100644 index 8461bed0b..000000000 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoo.c +++ /dev/null @@ -1,46 +0,0 @@ -/* # 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 deleted file mode 100644 index 2f02c4a30..000000000 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoo.h +++ /dev/null @@ -1,75 +0,0 @@ -/* # 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 deleted file mode 100644 index 12e771b1f..000000000 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoojp.c +++ /dev/null @@ -1,46 +0,0 @@ -/* # 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 deleted file mode 100644 index c57634a75..000000000 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-yahoojp.h +++ /dev/null @@ -1,75 +0,0 @@ -/* # 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 deleted file mode 100644 index e3d0b4ed3..000000000 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-zephyr.c +++ /dev/null @@ -1,46 +0,0 @@ -/* # 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 deleted file mode 100644 index 90bd4c764..000000000 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin-zephyr.h +++ /dev/null @@ -1,75 +0,0 @@ -/* # 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 deleted file mode 100644 index 46e429e43..000000000 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin.c +++ /dev/null @@ -1,125 +0,0 @@ -/* - * empathy-accounts-plugin.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.h" - -#include -#include - -#include "empathy-accounts-plugin-widget.h" - -G_DEFINE_TYPE (EmpathyAccountsPlugin, empathy_accounts_plugin, AP_TYPE_PLUGIN) - -static void -widget_done_cb (EmpathyAccountsPluginWidget *widget, - ApPlugin *plugin) -{ - ap_plugin_emit_finished (plugin); -} - -static GtkWidget * -empathy_accounts_plugin_build_widget (ApPlugin *plugin) -{ - AgAccount *account; - GtkWidget *widget; - - account = ap_plugin_get_account (plugin); - empathy_uoa_manager_set_default (ag_account_get_manager (account)); - - widget = empathy_accounts_plugin_widget_new (account); - - g_signal_connect (widget, "done", - G_CALLBACK (widget_done_cb), plugin); - - return widget; -} - -static void -store_delete_cb (AgAccount *account, - const GError *error, - gpointer user_data) -{ - GSimpleAsyncResult *result = user_data; - - if (error != NULL) - { - g_debug ("Failed to delete account with ID '%u': %s", - account->id, error->message); - - g_simple_async_result_set_from_error (result, error); - } - - g_simple_async_result_complete (result); - g_object_unref (result); -} - -static void -empathy_accounts_plugin_delete_account (ApPlugin *plugin, - GAsyncReadyCallback callback, - gpointer user_data) -{ - AgAccount *account; - GSimpleAsyncResult *result; - - result = g_simple_async_result_new (G_OBJECT (plugin), - callback, user_data, ap_plugin_delete_account); - - account = ap_plugin_get_account (plugin); - - ag_account_delete (account); - ag_account_store (account, store_delete_cb, result); -} - -static void -empathy_accounts_plugin_act_headless (ApPlugin *plugin) -{ -} - -static void -empathy_accounts_plugin_class_init ( - EmpathyAccountsPluginClass *klass) -{ - ApPluginClass *pclass = AP_PLUGIN_CLASS (klass); - - pclass->build_widget = empathy_accounts_plugin_build_widget; - pclass->delete_account = empathy_accounts_plugin_delete_account; - pclass->act_headless = empathy_accounts_plugin_act_headless; -} - -static void -empathy_accounts_plugin_init (EmpathyAccountsPlugin *self) -{ - if (tp_account_manager_can_set_default ()) - { - EmpathyClientFactory *factory; - TpAccountManager *am; - - factory = empathy_client_factory_dup (); - am = tp_account_manager_new_with_factory ( - TP_SIMPLE_CLIENT_FACTORY (factory)); - tp_account_manager_set_default (am); - - g_object_unref (factory); - g_object_unref (am); - } - -} diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin.h b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin.h deleted file mode 100644 index bb259c8a1..000000000 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * empathy-accounts-plugin.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_H__ -#define __EMPATHY_ACCOUNTS_PLUGIN_H__ - -#include - -G_BEGIN_DECLS - -typedef struct _EmpathyAccountsPlugin EmpathyAccountsPlugin; -typedef struct _EmpathyAccountsPluginClass EmpathyAccountsPluginClass; - -struct _EmpathyAccountsPluginClass -{ - /**/ - ApPluginClass parent_class; -}; - -struct _EmpathyAccountsPlugin -{ - /**/ - ApPlugin parent; -}; - -GType empathy_accounts_plugin_get_type (void); - -/* TYPE MACROS */ -#define EMPATHY_TYPE_ACCOUNTS_PLUGIN \ - (empathy_accounts_plugin_get_type ()) -#define EMPATHY_ACCOUNTS_PLUGIN(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST((obj), \ - EMPATHY_TYPE_ACCOUNTS_PLUGIN, \ - EmpathyAccountsPlugin)) -#define EMPATHY_ACCOUNTS_PLUGIN_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST((klass), \ - EMPATHY_TYPE_ACCOUNTS_PLUGIN, \ - EmpathyAccountsPluginClass)) -#define EMPATHY_IS_ACCOUNTS_PLUGIN(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ - EMPATHY_TYPE_ACCOUNTS_PLUGIN)) -#define EMPATHY_IS_ACCOUNTS_PLUGIN_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_TYPE((klass), \ - EMPATHY_TYPE_ACCOUNTS_PLUGIN)) -#define EMPATHY_ACCOUNTS_PLUGIN_GET_CLASS(obj) \ - (G_TYPE_INSTANCE_GET_CLASS ((obj), \ - EMPATHY_TYPE_ACCOUNTS_PLUGIN, \ - EmpathyAccountsPluginClass)) - -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 babe5433c..b3b54f6e2 100755 --- a/ubuntu-online-accounts/cc-plugins/generate-plugins.py +++ b/ubuntu-online-accounts/cc-plugins/generate-plugins.py @@ -25,7 +25,7 @@ class Plugin: self.protocol = protocol self.icon = icon -##### The plugin itself ##### +##### account-plugins/ ##### def magic_replace(text, protocol): p = protocol.replace('-', '_') @@ -42,7 +42,7 @@ def magic_replace(text, protocol): def generate_plugin_header(p): # header - f = open('empathy-accounts-plugin-%s.h' % p.protocol, 'w') + f = open('account-plugins/empathy-accounts-plugin-%s.h' % p.protocol, 'w') tmp = '''/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py * Do NOT edit manually */ @@ -124,7 +124,7 @@ G_END_DECLS def generate_plugin_code(p): # header - f = open('empathy-accounts-plugin-%s.c' % p.protocol, 'w') + f = open('account-plugins/empathy-accounts-plugin-%s.c' % p.protocol, 'w') tmp = '''/* # Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py * Do NOT edit manually */ @@ -175,12 +175,6 @@ ap_module_get_object_type (void) 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('-', '_') @@ -200,24 +194,28 @@ def generate_build_block(p): return output -def generate_makefile_am(plugins): - '''Generate Makefile.am''' + +def generate_account_plugins(plugins): + '''account-plugins/''' libs = [] build_blocks = [] for p in plugins: + # empathy-accounts-plugin-$protocol.[ch]''' + generate_plugin_header(p) + generate_plugin_code(p) + name = ' lib%s.la' % p.protocol libs.append(name) build_blocks.append(generate_build_block(p)) - f = open('Makefile.am', 'w') + # Makefile.am + f = open('account-plugins/Makefile.am', 'w') f.write( '''# Generated using empathy/ubuntu-online-accounts/cc-plugins/generate-plugins.py # Do NOT edit manually -SUBDIRS = providers services app-plugin - plugindir = $(ACCOUNTS_PROVIDER_PLUGIN_DIR) INCLUDES = \\ @@ -236,7 +234,7 @@ plugin_LTLIBRARIES = \\ %s''' % ('\\\n'.join(libs), '\n\n'.join(build_blocks))) -##### Providers ##### +##### providers/ ##### def generate_provider_file(p): f = open('providers/%s.provider' % p.protocol, 'w') @@ -274,7 +272,7 @@ providers_DATA = \\ EXTRA_DIST = $(providers_DATA) ''' % ('\\\n'.join(providers))) -##### Services ##### +##### services/ ##### def generate_service_file(p): f = open('services/%s-im.service' % p.protocol, 'w') @@ -333,8 +331,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_account_plugins(plugins) generate_providers(plugins) generate_services(plugins) -- cgit v1.2.3