Commit 8e38cc1c authored by Bastien Nocera's avatar Bastien Nocera Committed by Debarshi Ray
parent 8a79ed2c
......@@ -333,6 +333,26 @@ fi
PKG_CHECK_MODULES(TP, telepathy-glib)
# Pocket
AC_ARG_ENABLE([pocket], [AS_HELP_STRING([--enable-pocket],
[Enable Pocket provider])],
[],
[enable_pocket=no])
AC_ARG_WITH(pocket-client-id,
[AS_HELP_STRING([--with-pocket-client-id],
[Pocket OAuth 2.0 client id])],
[],
[])
if test "$with_pocket_client_id" = ""; then
with_pocket_client_id="16630-40b25246b56e8ad5310b2883"
fi
AC_DEFINE_UNQUOTED(GOA_POCKET_CLIENT_ID,
["$with_pocket_client_id"],
[Pocket OAuth 2.0 client id])
if test "$enable_pocket" != "no"; then
AC_DEFINE(GOA_POCKET_ENABLED, 1, [Enable Pocket data provider])
fi
# Kerberos
AC_ARG_ENABLE([kerberos],
[AS_HELP_STRING([--enable-kerberos],
......@@ -522,6 +542,7 @@ echo "
Facebook provider: ${enable_facebook} (OAuth 2.0, id:${with_facebook_client_id})
Windows Live provider: ${enable_windows_live} (OAuth 2.0, id:${with_windows_live_client_id})
Telepathy provider: ${enable_telepathy}
Pocket provider: ${enable_pocket} (id:${with_pocket_client_id})
Maintainer mode: ${USE_MAINTAINER_MODE}
Building api docs: ${enable_gtk_doc}
......
......@@ -203,6 +203,18 @@
-->
<property name="TicketingDisabled" type="b" access="readwrite"/>
<!-- ReadLaterDisabled:
@since: 3.10.0
If %TRUE, the account will not expose any
#org.gnome.OnlineAccounts.ReadLater interface. If the account does not
provide read-later-like capabilities, this property does nothing.
Note that the #org.gnomeOnlineAccounts.ReadLater interface is added or
removed from the account asynchronously.
-->
<property name="ReadLaterDisabled" type="b" access="readwrite"/>
<!--
Remove:
......@@ -640,4 +652,14 @@
<method name="GetTicket"/>
</interface>
<!--
org.gnome.OnlineAccounts.ReadLater:
@since: 3.10.0
An account object implements this interface if it provides
read-later-like capabilities.
-->
<interface name="org.gnome.OnlineAccounts.ReadLater">
</interface>
</node>
......@@ -7,6 +7,7 @@ icon_DATA = \
goa-account-flickr.png \
goa-account-google.png \
goa-account-owncloud.png \
goa-account-pocket.png \
goa-account-twitter.png \
goa-account-yahoo.png \
$(NULL)
......
......@@ -7,6 +7,7 @@ icon_DATA = \
goa-account-flickr.png \
goa-account-google.png \
goa-account-owncloud.png \
goa-account-pocket.png \
goa-account-twitter.png \
goa-account-yahoo.png \
$(NULL)
......
......@@ -6,6 +6,7 @@ icon_DATA = \
goa-account-facebook.png \
goa-account-google.png \
goa-account-owncloud.png \
goa-account-pocket.png \
goa-account-twitter.png \
goa-account-flickr.png \
goa-account-yahoo.png \
......
......@@ -7,6 +7,7 @@ icon_DATA = \
goa-account-flickr.png \
goa-account-google.png \
goa-account-owncloud.png \
goa-account-pocket.png \
goa-account-twitter.png \
goa-account-yahoo.png \
$(NULL)
......
......@@ -6,6 +6,7 @@ icon_DATA = \
goa-account-facebook.png \
goa-account-google.png \
goa-account-owncloud.png \
goa-account-pocket.png \
goa-account-twitter.png \
goa-account-flickr.png \
goa-account-yahoo.png \
......
......@@ -14,6 +14,7 @@ src/goabackend/goakerberosprovider.c
src/goabackend/goaoauth2provider.c
src/goabackend/goaoauthprovider.c
src/goabackend/goaowncloudprovider.c
src/goabackend/goapocketprovider.c
src/goabackend/goaprovider.c
src/goabackend/goasmtpauth.c
src/goabackend/goatelepathyprovider.c
......
......@@ -80,6 +80,7 @@ libgoa_backend_1_0_la_SOURCES = \
goawindowsliveprovider.h goawindowsliveprovider.c \
goatelepathyfactory.h goatelepathyfactory.c \
goatelepathyprovider.h goatelepathyprovider.c \
goapocketprovider.h goapocketprovider.c \
goautils.h goautils.c \
goaspinnerbutton.h goaspinnerbutton.c \
goawebview.h goawebview.c \
......
......@@ -91,6 +91,7 @@ typedef enum /*< flags >*/
GOA_PROVIDER_FEATURE_PHOTOS = 1 << 7,
GOA_PROVIDER_FEATURE_FILES = 1 << 8,
GOA_PROVIDER_FEATURE_TICKETING = 1 << 9,
GOA_PROVIDER_FEATURE_READ_LATER= 1 << 10,
GOA_PROVIDER_FEATURE_INVALID = 0
} GoaProviderFeatures;
......
This diff is collapsed.
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
/*
* Copyright (C) 2013 Red Hat, Inc.
*
* 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, write to the
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*
* Authors: Bastien Nocera <hadess@hadess.net>
*/
#if !defined (__GOA_BACKEND_INSIDE_GOA_BACKEND_H__) && !defined (GOA_BACKEND_COMPILATION)
#error "Only <goabackend/goabackend.h> can be included directly."
#endif
#ifndef __GOA_POCKET_PROVIDER_H__
#define __GOA_POCKET_PROVIDER_H__
#include <glib-object.h>
G_BEGIN_DECLS
#define GOA_TYPE_POCKET_PROVIDER (goa_pocket_provider_get_type ())
#define GOA_POCKET_PROVIDER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GOA_TYPE_POCKET_PROVIDER, GoaPocketProvider))
#define GOA_IS_POCKET_PROVIDER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOA_TYPE_POCKET_PROVIDER))
typedef struct _GoaPocketProvider GoaPocketProvider;
GType goa_pocket_provider_get_type (void) G_GNUC_CONST;
G_END_DECLS
#endif /* __GOA_POCKET_PROVIDER_H__ */
......@@ -39,6 +39,7 @@
#include "goaflickrprovider.h"
#include "goawindowsliveprovider.h"
#include "goatelepathyfactory.h"
#include "goapocketprovider.h"
#ifdef GOA_KERBEROS_ENABLED
#include "goakerberosprovider.h"
......@@ -788,6 +789,9 @@ ensure_builtins_loaded (void)
#ifdef GOA_WINDOWS_LIVE_ENABLED
type = GOA_TYPE_WINDOWS_LIVE_PROVIDER;
#endif
#ifdef GOA_POCKET_ENABLED
type = GOA_TYPE_POCKET_PROVIDER;
#endif
#ifdef GOA_EXCHANGE_ENABLED
type = GOA_TYPE_EXCHANGE_PROVIDER;
#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