aboutsummaryrefslogtreecommitdiffstats
path: root/goa-mc-plugin/mcp-account-manager-goa.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2011-10-27 18:09:59 +0800
committerXavier Claessens <xclaesse@gmail.com>2011-11-04 17:10:19 +0800
commitd3e575fd305487eb8a15a66941651325904ba90b (patch)
tree2aa27a2f1142ba3f9a34bc04263172ccc4494a39 /goa-mc-plugin/mcp-account-manager-goa.c
parentbaeff8af237dd7c4a18d578ed71b3ee87ceb278d (diff)
downloadgsoc2013-empathy-d3e575fd305487eb8a15a66941651325904ba90b.tar
gsoc2013-empathy-d3e575fd305487eb8a15a66941651325904ba90b.tar.gz
gsoc2013-empathy-d3e575fd305487eb8a15a66941651325904ba90b.tar.bz2
gsoc2013-empathy-d3e575fd305487eb8a15a66941651325904ba90b.tar.lz
gsoc2013-empathy-d3e575fd305487eb8a15a66941651325904ba90b.tar.xz
gsoc2013-empathy-d3e575fd305487eb8a15a66941651325904ba90b.tar.zst
gsoc2013-empathy-d3e575fd305487eb8a15a66941651325904ba90b.zip
Import Facebook and windows Live GOA accounts
Implement their auth mechanisms Fixes bug #661068 and #652544
Diffstat (limited to 'goa-mc-plugin/mcp-account-manager-goa.c')
-rw-r--r--goa-mc-plugin/mcp-account-manager-goa.c28
1 files changed, 24 insertions, 4 deletions
diff --git a/goa-mc-plugin/mcp-account-manager-goa.c b/goa-mc-plugin/mcp-account-manager-goa.c
index d81c60816..1185d7ba3 100644
--- a/goa-mc-plugin/mcp-account-manager-goa.c
+++ b/goa-mc-plugin/mcp-account-manager-goa.c
@@ -23,6 +23,8 @@
* Danielle Madeley <danielle.madeley@collabora.co.uk>
*/
+#include "config.h"
+
#include <glib/gi18n.h>
#include <telepathy-glib/util.h>
@@ -40,7 +42,7 @@
#define PLUGIN_NAME "goa"
#define PLUGIN_PRIORITY (MCP_ACCOUNT_STORAGE_PLUGIN_PRIO_KEYRING + 10)
#define PLUGIN_DESCRIPTION "Provide Telepathy Accounts from GOA"
-#define PLUGIN_PROVIDER "org.gnome.OnlineAccounts"
+#define PLUGIN_PROVIDER EMPATHY_GOA_PROVIDER
#define INITIAL_COMMENT "Parameters of GOA Telepathy accounts"
@@ -125,15 +127,33 @@ get_tp_parameters (GoaAccount *account)
PARAM ("param-extra-certificate-identities", "talk.google.com");
PARAM ("param-require-encryption", "true");
}
+ else if (!tp_strdiff (type, "facebook"))
+ {
+ PARAM ("manager", "gabble");
+ PARAM ("protocol", "jabber");
+ PARAM ("Icon", "im-facebook");
+ PARAM ("Service", "facebook");
+
+ PARAM ("param-account", "chat.facebook.com");
+ PARAM ("param-require-encryption", "true");
+ }
+ else if (!tp_strdiff (type, "windows_live"))
+ {
+ PARAM ("manager", "gabble");
+ PARAM ("protocol", "jabber");
+ PARAM ("Icon", "im-msn");
+ PARAM ("Service", "windows-live");
+
+ PARAM ("param-account", "messenger.live.com");
+ PARAM ("param-require-encryption", "true");
+ }
else
{
- /* unknown account type */
+ DEBUG ("Unknown account type %s", type);
g_hash_table_destroy (params);
return NULL;
}
- /* TODO: add Facebook support */
-
/* generic properties */
PARAM ("DisplayName", goa_account_get_presentation_identity (account));