summaryrefslogtreecommitdiffstats
path: root/qt-ui/subsurfacewebservices.h
diff options
context:
space:
mode:
authorGravatar Thiago Macieira <thiago@macieira.org>2013-11-14 14:55:49 -0800
committerGravatar Thiago Macieira <thiago@macieira.org>2013-12-03 13:53:00 -0800
commitff96bcb0fc9ef47c94fee8e675431882d20ba9dc (patch)
treeeccfda959b137e31b36e240e11395b3f30e8eca7 /qt-ui/subsurfacewebservices.h
parentb38eac89e4903c91821c949d9d196bb1b8f652e3 (diff)
downloadsubsurface-ff96bcb0fc9ef47c94fee8e675431882d20ba9dc.tar.gz
Make the QNetworkAccessManager a singleton available to all
One of the rules of using QNetworkAccessManager is to share it among all users, since sockets and other state can be shared. Looks like Marble doesn't allow us to set it, though, and it creates multiple instances. I'll prepare an upstream patch to fix that sometime. Signed-off-by: Thiago Macieira <thiago@macieira.org>
Diffstat (limited to 'qt-ui/subsurfacewebservices.h')
-rw-r--r--qt-ui/subsurfacewebservices.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/subsurfacewebservices.h b/qt-ui/subsurfacewebservices.h
index 83aba372b..0400fd503 100644
--- a/qt-ui/subsurfacewebservices.h
+++ b/qt-ui/subsurfacewebservices.h
@@ -17,6 +17,8 @@ public:
void hidePassword();
void hideUpload();
+ static QNetworkAccessManager *manager();
+
private slots:
virtual void startDownload() = 0;
virtual void startUpload() = 0;
@@ -25,7 +27,6 @@ private slots:
protected:
Ui::WebServices ui;
QNetworkReply *reply;
- QNetworkAccessManager *manager;
QByteArray downloadedData;
};