Commit ac96507c authored by Damián Nohales's avatar Damián Nohales Committed by Debarshi Ray
parent 94f956cf
......@@ -26,6 +26,12 @@ Flickr
OAuth 1.0: http://www.flickr.com/services/api/auth.oauth.html
Foursquare
----------
OAuth 2.0: https://developer.foursquare.com/overview/auth
Google
------
......
......@@ -185,6 +185,28 @@ if test "$enable_flickr" != "no"; then
AC_DEFINE(GOA_FLICKR_ENABLED, 1, [Enable Flickr data provider])
fi
# Foursquare
AC_DEFINE(GOA_FOURSQUARE_NAME, ["foursquare"], [ProviderType and extension point name])
AC_ARG_ENABLE([foursquare],
[AS_HELP_STRING([--enable-foursquare],
[Enable Foursquare provider])],
[],
[enable_foursquare=no])
AC_ARG_WITH(foursquare-client-id,
[AS_HELP_STRING([--with-foursquare-client-id],
[Foursquare OAuth 2.0 client id])],
[],
[])
if test "$with_foursquare_client_id" = ""; then
with_foursquare_client_id="MBNU2NES5HASNDQJ25YPFGG2UGRZHPI3IYTNJGE0KIWT2HCF"
fi
AC_DEFINE_UNQUOTED(GOA_FOURSQUARE_CLIENT_ID,
["$with_foursquare_client_id"],
[Foursquare OAuth 2.0 client id])
if test "$enable_foursquare" != "no"; then
AC_DEFINE(GOA_FOURSQUARE_ENABLED, 1, [Enable Foursquare data provider])
fi
# Google
AC_DEFINE(GOA_GOOGLE_NAME, ["google"], [ProviderType and extension point name])
AC_ARG_ENABLE([google], [AS_HELP_STRING([--enable-google], [Enable Google provider])], [], [enable_google=yes])
......@@ -530,6 +552,7 @@ echo "
introspection: ${found_introspection}
Flickr provider: ${enable_flickr} (OAuth 1.0, key:${with_flickr_consumer_key} secret:${with_flickr_consumer_secret})
Foursquare provider: ${enable_foursquare} (id:${with_foursquare_client_id})
Google provider: ${enable_google} (OAuth 2.0, id:${with_google_client_id} secret:${with_google_client_secret})
IMAP/SMTP provider: ${enable_imap_smtp}
Media Server provider: ${enable_media_server}
......
......@@ -8,6 +8,7 @@ icon_DATA = \
goa-account-google.png \
goa-account-owncloud.png \
goa-account-pocket.png \
goa-account-foursquare.png \
goa-account-yahoo.png \
$(NULL)
......
......@@ -8,6 +8,7 @@ icon_DATA = \
goa-account-google.png \
goa-account-owncloud.png \
goa-account-pocket.png \
goa-account-foursquare.png \
goa-account-yahoo.png \
$(NULL)
......
......@@ -7,6 +7,7 @@ icon_DATA = \
goa-account-google.png \
goa-account-owncloud.png \
goa-account-pocket.png \
goa-account-foursquare.png \
goa-account-flickr.png \
goa-account-yahoo.png \
$(NULL)
......
......@@ -8,6 +8,7 @@ icon_DATA = \
goa-account-google.png \
goa-account-owncloud.png \
goa-account-pocket.png \
goa-account-foursquare.png \
goa-account-yahoo.png \
$(NULL)
......
......@@ -8,6 +8,7 @@ icon_DATA = \
goa-account-owncloud.png \
goa-account-pocket.png \
goa-account-flickr.png \
goa-account-foursquare.png \
goa-account-yahoo.png \
$(NULL)
......
......@@ -179,6 +179,7 @@
<xi:include href="xml/goafacebookprovider.xml"/>
<xi:include href="xml/goayahooprovider.xml"/>
<xi:include href="xml/goaflickrprovider.xml"/>
<xi:include href="xml/goafoursquareprovider.xml"/>
<xi:include href="xml/goatelepathyfactory.xml"/>
<xi:include href="xml/goatelepathyprovider.xml"/>
</chapter>
......
......@@ -605,6 +605,16 @@ GOA_TYPE_FLICKR_PROVIDER
goa_flickr_provider_get_type
</SECTION>
<SECTION>
<FILE>goafoursquareprovider</FILE>
GoaFoursquareProvider
<SUBSECTION Standard>
GOA_FOURSQUARE_PROVIDER
GOA_IS_FOURSQUARE_PROVIDER
GOA_TYPE_FOURSQUARE_PROVIDER
goa_foursquare_provider_get_type
</SECTION>
<SECTION>
<FILE>goatelepathyfactory</FILE>
GoaTelepathyFactory
......
......@@ -59,4 +59,5 @@ goa_facebook_provider_get_type
goa_media_server_provider_get_type
goa_yahoo_provider_get_type
goa_flickr_provider_get_type
goa_foursquare_provider_get_type
goa_windows_live_provider_get_type
......@@ -15,7 +15,8 @@
GNOME Online Accounts provides interfaces so that applications and
libraries in GNOME can access the user's online accounts. It has
providers for Google, ownCloud, Facebook, Flickr, Windows Live,
Pocket, Microsoft Exchange, IMAP/SMTP, Jabber, SIP and Kerberos.
Pocket, Foursquare, Microsoft Exchange, IMAP/SMTP, Jabber, SIP and
Kerberos.
</description>
<homepage rdf:resource="https://wiki.gnome.org/Projects/GnomeOnlineAccounts" />
......
......@@ -7,6 +7,7 @@ src/goabackend/goaewsclient.c
src/goabackend/goaexchangeprovider.c
src/goabackend/goafacebookprovider.c
src/goabackend/goaflickrprovider.c
src/goabackend/goafoursquareprovider.c
src/goabackend/goagoogleprovider.c
src/goabackend/goahttpclient.c
src/goabackend/goaimapauthlogin.c
......
......@@ -88,6 +88,7 @@ libgoa_backend_1_0_la_SOURCES = \
goaowncloudprovider.h goaowncloudprovider.c \
goayahooprovider.h goayahooprovider.c \
goaflickrprovider.h goaflickrprovider.c \
goafoursquareprovider.h goafoursquareprovider.c \
goawindowsliveprovider.h goawindowsliveprovider.c \
goatelepathyfactory.h goatelepathyfactory.c \
goatelepathyprovider.h goatelepathyprovider.c \
......
This diff is collapsed.
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
/*
* Copyright (C) 2014 Damián Nohales
*
* 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 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, see <http://www.gnu.org/licenses/>.
*/
#if !defined (__GOA_BACKEND_INSIDE_GOA_BACKEND_H__) && !defined (GOA_BACKEND_COMPILATION)
#error "Only <goabackend/goabackend.h> can be included directly."
#endif
#ifndef __GOA_FOURSQUARE_PROVIDER_H__
#define __GOA_FOURSQUARE_PROVIDER_H__
#include <glib-object.h>
G_BEGIN_DECLS
#define GOA_TYPE_FOURSQUARE_PROVIDER (goa_foursquare_provider_get_type ())
#define GOA_FOURSQUARE_PROVIDER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GOA_TYPE_FOURSQUARE_PROVIDER, GoaFoursquareProvider))
#define GOA_IS_FOURSQUARE_PROVIDER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOA_TYPE_FOURSQUARE_PROVIDER))
typedef struct _GoaFoursquareProvider GoaFoursquareProvider;
GType goa_foursquare_provider_get_type (void) G_GNUC_CONST;
G_END_DECLS
#endif /* __GOA_FOURSQUARE_PROVIDER_H__ */
......@@ -30,6 +30,7 @@
#include "goaowncloudprovider.h"
#include "goayahooprovider.h"
#include "goaflickrprovider.h"
#include "goafoursquareprovider.h"
#include "goawindowsliveprovider.h"
#include "goatelepathyfactory.h"
#include "goapocketprovider.h"
......@@ -781,6 +782,9 @@ static struct
#ifdef GOA_POCKET_ENABLED
{ GOA_POCKET_NAME, goa_pocket_provider_get_type },
#endif
#ifdef GOA_FOURSQUARE_ENABLED
{ GOA_FOURSQUARE_NAME, goa_foursquare_provider_get_type },
#endif
#ifdef GOA_EXCHANGE_ENABLED
{ GOA_EXCHANGE_NAME, goa_exchange_provider_get_type },
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment