facebook: remove the featute from the code base

Remove from:
- unit tests
- desktop widgets
- preferences
- core intergration
- cmakefiles
- build scripts
- icons
- docs

Also remove the plugins and social network integration.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
Lubomir I. Ivanov 2019-02-01 04:11:25 +02:00 committed by Dirk Hohndel
parent 0c07b02974
commit a1ffe115cf
41 changed files with 2 additions and 1671 deletions

View file

@ -5,7 +5,6 @@
#include "qPrefDisplay.h"
#include "qPrefDiveComputer.h"
#include "qPrefDivePlanner.h"
#include "qPrefFacebook.h"
#include "qPrefGeneral.h"
#include "qPrefGeocoding.h"
#include "qPrefLanguage.h"
@ -51,7 +50,6 @@ void qPref::loadSync(bool doSync)
qPrefDisplay::loadSync(doSync);
qPrefDiveComputer::loadSync(doSync);
qPrefDivePlanner::loadSync(doSync);
qPrefFacebook::loadSync(doSync);
qPrefGeneral::loadSync(doSync);
qPrefGeocoding::loadSync(doSync);
qPrefLanguage::loadSync(doSync);
@ -76,7 +74,6 @@ void qPref::registerQML(QQmlEngine *engine)
ct->setContextProperty("PrefDisplay", qPrefDisplay::instance());
ct->setContextProperty("PrefDiveComputer", qPrefDiveComputer::instance());
ct->setContextProperty("PrefDivePlanner", qPrefDivePlanner::instance());
ct->setContextProperty("PrefFacebook", qPrefFacebook::instance());
ct->setContextProperty("PrefGeneral", qPrefGeneral::instance());
ct->setContextProperty("PrefGeocoding", qPrefGeocoding::instance());
ct->setContextProperty("PrefLanguage", qPrefLanguage::instance());

View file

@ -1,44 +0,0 @@
// SPDX-License-Identifier: GPL-2.0
#include "qPrefFacebook.h"
#include "qPrefPrivate.h"
static const QString group = QStringLiteral("WebApps/Facebook");
qPrefFacebook::qPrefFacebook(QObject *parent) : QObject(parent)
{
}
qPrefFacebook*qPrefFacebook::instance()
{
static qPrefFacebook *self = new qPrefFacebook;
return self;
}
void qPrefFacebook::loadSync(bool doSync)
{
// Empty, because FB probs are not loaded/synced to disk
}
void qPrefFacebook::set_access_token(const QString &value)
{
if (value != prefs.facebook.access_token) {
qPrefPrivate::copy_txt(&prefs.facebook.access_token, value);
emit instance()->access_tokenChanged(value);
}
}
void qPrefFacebook::set_album_id(const QString &value)
{
if (value != prefs.facebook.album_id) {
qPrefPrivate::copy_txt(&prefs.facebook.album_id, value);
emit instance()->album_idChanged(value);
}
}
void qPrefFacebook::set_user_id(const QString &value)
{
if (value != prefs.facebook.user_id) {
qPrefPrivate::copy_txt(&prefs.facebook.user_id, value);
emit instance()->user_idChanged(value);
}
}

View file

@ -1,45 +0,0 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef QPREFSFACEBOOK_H
#define QPREFSFACEBOOK_H
#include "core/pref.h"
#include <QObject>
class qPrefFacebook : public QObject {
Q_OBJECT
Q_PROPERTY(QString access_token READ access_token WRITE set_access_token NOTIFY access_tokenChanged);
Q_PROPERTY(QString album_id READ album_id WRITE set_album_id NOTIFY album_idChanged);
Q_PROPERTY(QString user_id READ user_id WRITE set_user_id NOTIFY user_idChanged);
public:
qPrefFacebook(QObject *parent = NULL);
static qPrefFacebook *instance();
// Load/Sync local settings (disk) and struct preference
static void loadSync(bool doSync);
static void load() {loadSync(false); }
static void sync() {loadSync(true); }
public:
static QString access_token() { return prefs.facebook.access_token; }
static QString album_id() { return prefs.facebook.album_id; }
static QString user_id() { return prefs.facebook.user_id; }
public slots:
static void set_access_token(const QString& value);
static void set_album_id(const QString& value);
static void set_user_id(const QString& value);
signals:
void access_tokenChanged(const QString& value);
void album_idChanged(const QString& value);
void user_idChanged(const QString& value);
private:
static void disk_access_token(bool doSync);
static void disk_album_id(bool doSync);
static void disk_user_id(bool doSync);
};
#endif