summaryrefslogtreecommitdiffstats
path: root/core/settings/qPrefFacebook.h
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2019-02-01 04:11:25 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-02-01 17:16:43 -0800
commita1ffe115cfb27bd0dd57bf5266c7d37d9ce64dab (patch)
tree6589e06ecce1d0c461900fd2537bf5125afadf9d /core/settings/qPrefFacebook.h
parent0c07b02974a65608d7d71ef150d322678ec1170b (diff)
downloadsubsurface-a1ffe115cfb27bd0dd57bf5266c7d37d9ce64dab.tar.gz
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>
Diffstat (limited to 'core/settings/qPrefFacebook.h')
-rw-r--r--core/settings/qPrefFacebook.h45
1 files changed, 0 insertions, 45 deletions
diff --git a/core/settings/qPrefFacebook.h b/core/settings/qPrefFacebook.h
deleted file mode 100644
index fcd8f1f7c..000000000
--- a/core/settings/qPrefFacebook.h
+++ /dev/null
@@ -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