summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/plugins/facebook/facebookconnectwidget.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 /desktop-widgets/plugins/facebook/facebookconnectwidget.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 'desktop-widgets/plugins/facebook/facebookconnectwidget.h')
-rw-r--r--desktop-widgets/plugins/facebook/facebookconnectwidget.h99
1 files changed, 0 insertions, 99 deletions
diff --git a/desktop-widgets/plugins/facebook/facebookconnectwidget.h b/desktop-widgets/plugins/facebook/facebookconnectwidget.h
deleted file mode 100644
index ebaded04b..000000000
--- a/desktop-widgets/plugins/facebook/facebookconnectwidget.h
+++ /dev/null
@@ -1,99 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-#ifndef FACEBOOKCONNECTWIDGET_H
-#define FACEBOOKCONNECTWIDGET_H
-
-#include <QDialog>
-#include <QUrl>
-#ifdef USE_WEBENGINE
-class QWebEngineView;
-#else
-class QWebView;
-#endif
-class QNetworkReply;
-class QNetworkAccessManager;
-
-namespace Ui {
- class FacebookConnectWidget;
- class SocialnetworksDialog;
-}
-
-struct FacebookInfo {
- enum Size {SMALL, MEDIUM, BIG};
-
- QString bodyText;
- QString albumId;
- QString albumName;
- Size profileSize;
- QPixmap profileData;
-};
-
-class FacebookManager : public QObject
-{
- Q_OBJECT
-public:
- static FacebookManager *instance();
- void requestAlbumId();
- void requestUserId();
- QUrl connectUrl();
- QUrl albumListUrl();
- bool loggedIn();
- QPixmap grabProfilePixmap();
-
-signals:
- void justLoggedIn(bool triggererd);
- void justLoggedOut(bool triggered);
- void albumIdReceived(const QString& albumId);
- void sendDiveFinished();
- void sendMessage(const QString& message);
-
-public slots:
- void tryLogin(const QUrl& loginResponse);
- void logout();
- void sendDiveInit();
- void sendDiveToAlbum(const QString& album);
-
- void uploadFinished();
- void albumListReceived();
- void userIdReceived();
- void createFacebookAlbum();
- void facebookAlbumCreated();
-private:
- explicit FacebookManager(QObject *parent = 0);
- FacebookInfo fbInfo;
- QNetworkAccessManager *manager;
-};
-
-
-class FacebookConnectWidget : public QDialog {
- Q_OBJECT
-public:
- explicit FacebookConnectWidget(QWidget* parent = 0);
- void facebookLoggedIn();
- void facebookDisconnect();
- void showEvent(QShowEvent *event);
-private:
- Ui::FacebookConnectWidget *ui;
-#ifdef USE_WEBENGINE
- QWebEngineView *facebookWebView;
-#else
- QWebView *facebookWebView;
-#endif
-};
-
-class SocialNetworkDialog : public QDialog {
- Q_OBJECT
-public:
-
- SocialNetworkDialog(QWidget *parent = 0);
- QString text() const;
- QString album() const;
- FacebookInfo::Size profileSize() const;
-
-public slots:
- void selectionChanged();
- void albumChanged();
-private:
- Ui::SocialnetworksDialog *ui;
-};
-
-#endif