Commit aabb43e2 authored by Guido Gunther's avatar Guido Gunther

Add initial Librem One provider

So far we only support imap/smtp.
parent f32f7d51
Pipeline #51026 canceled with stages
......@@ -198,6 +198,11 @@ if enable_kerberos
endif
config_h.set('GOA_KERBEROS_ENABLED', enable_kerberos)
# Librem One
enable_librem_one = get_option('librem-one')
config_h.set_quoted('GOA_LIBREM_ONE_NAME', 'librem_one')
config_h.set('GOA_LIBREM_ONE_ENABLED', enable_librem_one)
# Media Server
config_h.set_quoted('GOA_MEDIA_SERVER_NAME', 'media-server')
......@@ -341,6 +346,7 @@ if enable_lastfm
output += ' (id:@0@ secret:@1@)'.format(lastfm_client_id, lastfm_client_secret)
endif
output += '\n'
output += ' Librem One provider: ' + enable_librem_one.to_string() + '\n'
output += ' Media Server provider: ' + enable_media_server.to_string() + '\n'
output += ' Microsoft Exchange provider: ' + enable_exchange.to_string() + '\n'
output += ' ownCloud provider: ' + enable_owncloud.to_string() + '\n'
......
......@@ -27,6 +27,8 @@ option('lastfm', type: 'boolean', value: false, description: 'Enable Last.fm pro
option('lastfm_client_id', type: 'string', value: '7a2461fe34c9c8124fb28ac750ba12fa', description: 'Last.fm client id')
option('lastfm_client_secret', type: 'string', value: '49ec391644459c417f3afe57ca246c5a', description: 'Last.fm client secret')
option('librem-one', type: 'boolean', value: true, description: 'Enable Librem One provider')
option('media_server', type: 'boolean', value: false, description: 'Enable Media Server provider')
option('owncloud', type: 'boolean', value: true, description: 'Enable ownCloud provider')
......
This diff is collapsed.
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
/*
* Copyright © 2019 Purism SPC
* Copyright © 2011 – 2017 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, 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_LIBREM_ONE_PROVIDER_H__
#define __GOA_LIBREM_ONE_PROVIDER_H__
#include <glib-object.h>
#include "goaprovider-priv.h"
G_BEGIN_DECLS
#define GOA_TYPE_LIBREM_ONE_PROVIDER (goa_librem_one_provider_get_type ())
G_DECLARE_FINAL_TYPE (GoaLibremOneProvider, goa_librem_one_provider, GOA, LIBREM_ONE_PROVIDER, GoaProvider);
G_END_DECLS
#endif /* __GOA_LIBREM_ONE_PROVIDER_H__ */
......@@ -32,6 +32,7 @@
#include "goawindowsliveprovider.h"
#include "goamediaserverprovider.h"
#include "goalastfmprovider.h"
#include "goalibremoneprovider.h"
#ifdef GOA_FEDORA_ENABLED
#include "goafedoraprovider.h"
......@@ -935,6 +936,9 @@ static struct
* important because it affects the order in which they are
* returned by goa_provider_get_all.
*/
#ifdef GOA_LIBREM_ONE_ENABLED
{ GOA_LIBREM_ONE_NAME, goa_librem_one_provider_get_type },
#endif
#ifdef GOA_GOOGLE_ENABLED
{ GOA_GOOGLE_NAME, goa_google_provider_get_type },
#endif
......
......@@ -16,6 +16,7 @@ libgoa_backend_sources = files(
'goaimapauthlogin.c',
'goaimapsmtpprovider.c',
'goalastfmprovider.c',
'goalibremoneprovider.c',
'goamailauth.c',
'goamailclient.c',
'goamediaserverprovider.c',
......
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