summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/plugins/facebook/facebookconnectwidget.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2017-09-29 11:54:12 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-09-29 12:57:28 -0700
commit475dfe1194d63ce4c081987a13076198bfcdd820 (patch)
treefed87589549bdb491c057819672fce69c8cca62f /desktop-widgets/plugins/facebook/facebookconnectwidget.h
parent7b8832bc0ba1d287baae247307d3352da1371b55 (diff)
downloadsubsurface-475dfe1194d63ce4c081987a13076198bfcdd820.tar.gz
[Facebook] Use only one Network Manager
Fixes quite a few memory leaks. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/plugins/facebook/facebookconnectwidget.h')
-rw-r--r--desktop-widgets/plugins/facebook/facebookconnectwidget.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/desktop-widgets/plugins/facebook/facebookconnectwidget.h b/desktop-widgets/plugins/facebook/facebookconnectwidget.h
index c47f4be66..e39286832 100644
--- a/desktop-widgets/plugins/facebook/facebookconnectwidget.h
+++ b/desktop-widgets/plugins/facebook/facebookconnectwidget.h
@@ -10,6 +10,7 @@ class QWebEngineView;
class QWebView;
#endif
class QNetworkReply;
+class QNetworkAccessManager;
namespace Ui {
class FacebookConnectWidget;
@@ -24,6 +25,7 @@ public:
void requestAlbumId();
void requestUserId();
QUrl connectUrl();
+ QUrl albumListUrl();
bool loggedIn();
signals:
void justLoggedIn(bool triggererd);
@@ -41,12 +43,12 @@ public slots:
private:
explicit FacebookManager(QObject *parent = 0);
QString albumName;
- QUrl albumListUrl;
+ QNetworkAccessManager *manager;
};
class FacebookConnectWidget : public QDialog {
- Q_OBJECT
+ Q_OBJECT
public:
explicit FacebookConnectWidget(QWidget* parent = 0);
void facebookLoggedIn();