summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/plugins/facebook/facebookconnectwidget.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-09-29 12:45:28 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-09-29 12:45:28 -0700
commit7b8832bc0ba1d287baae247307d3352da1371b55 (patch)
tree4c324aa2014a68b878c6e2b9c5cede3ef1e2f8b7 /desktop-widgets/plugins/facebook/facebookconnectwidget.h
parentc8c9a5dc65c184f0c0acdc19411b4e7efc39fb99 (diff)
downloadsubsurface-7b8832bc0ba1d287baae247307d3352da1371b55.tar.gz
[Facebook] fewer UI freezes while accessing facebook
Use signal / slots on the networkreply instead of freezing the event loop. 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.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/desktop-widgets/plugins/facebook/facebookconnectwidget.h b/desktop-widgets/plugins/facebook/facebookconnectwidget.h
index 1c6e40e07..c47f4be66 100644
--- a/desktop-widgets/plugins/facebook/facebookconnectwidget.h
+++ b/desktop-widgets/plugins/facebook/facebookconnectwidget.h
@@ -3,6 +3,7 @@
#define FACEBOOKCONNECTWIDGET_H
#include <QDialog>
+#include <QUrl>
#ifdef USE_WEBENGINE
class QWebEngineView;
#else
@@ -11,8 +12,8 @@ class QWebView;
class QNetworkReply;
namespace Ui {
- class FacebookConnectWidget;
- class SocialnetworksDialog;
+ class FacebookConnectWidget;
+ class SocialnetworksDialog;
}
class FacebookManager : public QObject
@@ -33,10 +34,14 @@ public slots:
void logout();
void setDesiredAlbumName(const QString& albumName);
void sendDive();
- void uploadFinished();
+ void uploadFinished();
+ void albumListReceived();
+ void createFacebookAlbum();
+ void facebookAlbumCreated();
private:
explicit FacebookManager(QObject *parent = 0);
QString albumName;
+ QUrl albumListUrl;
};