summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--desktop-widgets/diveshareexportdialog.cpp3
-rw-r--r--desktop-widgets/preferences/preferences_network.cpp1
-rw-r--r--desktop-widgets/subsurfacewebservices.h2
-rw-r--r--desktop-widgets/updatemanager.cpp3
4 files changed, 5 insertions, 4 deletions
diff --git a/desktop-widgets/diveshareexportdialog.cpp b/desktop-widgets/diveshareexportdialog.cpp
index 435f5366e..c6a7771d8 100644
--- a/desktop-widgets/diveshareexportdialog.cpp
+++ b/desktop-widgets/diveshareexportdialog.cpp
@@ -4,6 +4,7 @@
#include "save-html.h"
#include "subsurfacewebservices.h"
#include "helpers.h"
+#include "subsurface-core/cloudstorage.h"
#include <QDesktopServices>
#include <QSettings>
@@ -135,7 +136,7 @@ void DiveShareExportDialog::doUpload()
if (ui->txtUID->text().length() != 0)
request.setRawHeader("X-UID", ui->txtUID->text().toUtf8());
- reply = WebServices::manager()->put(request, json_data);
+ reply = manager()->put(request, json_data);
QObject::connect(reply, SIGNAL(finished()), this, SLOT(finishedSlot()));
}
diff --git a/desktop-widgets/preferences/preferences_network.cpp b/desktop-widgets/preferences/preferences_network.cpp
index cbdeebe8b..818a16f1b 100644
--- a/desktop-widgets/preferences/preferences_network.cpp
+++ b/desktop-widgets/preferences/preferences_network.cpp
@@ -3,6 +3,7 @@
#include "dive.h"
#include "subsurfacewebservices.h"
#include "subsurface-core/prefs-macros.h"
+#include "subsurface-core/cloudstorage.h"
#include <QNetworkProxy>
#include <QSettings>
diff --git a/desktop-widgets/subsurfacewebservices.h b/desktop-widgets/subsurfacewebservices.h
index 7b629db13..c00b6f63f 100644
--- a/desktop-widgets/subsurfacewebservices.h
+++ b/desktop-widgets/subsurfacewebservices.h
@@ -20,8 +20,6 @@ public:
void hideUpload();
void hideDownload();
- static QNetworkAccessManager *manager();
-
private
slots:
virtual void startDownload() = 0;
diff --git a/desktop-widgets/updatemanager.cpp b/desktop-widgets/updatemanager.cpp
index 2ab92b3a5..daa65e007 100644
--- a/desktop-widgets/updatemanager.cpp
+++ b/desktop-widgets/updatemanager.cpp
@@ -7,6 +7,7 @@
#include "subsurfacewebservices.h"
#include "version.h"
#include "mainwindow.h"
+#include "subsurface-core/cloudstorage.h"
UpdateManager::UpdateManager(QObject *parent) :
QObject(parent),
@@ -58,7 +59,7 @@ void UpdateManager::checkForUpdates(bool automatic)
request.setRawHeader("Accept", "text/xml");
QString userAgent = getUserAgent();
request.setRawHeader("User-Agent", userAgent.toUtf8());
- connect(SubsurfaceWebServices::manager()->get(request), SIGNAL(finished()), this, SLOT(requestReceived()), Qt::UniqueConnection);
+ connect(manager()->get(request), SIGNAL(finished()), this, SLOT(requestReceived()), Qt::UniqueConnection);
}
void UpdateManager::requestReceived()