diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-11-18 17:57:13 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-11-18 17:57:13 -0800 |
commit | d70f85ce35c95115438fecd26c70dc08ae4a3dbb (patch) | |
tree | 41abbe296ebb6f566aa116fc30ca3a4d9ea64fd0 /desktop-widgets/updatemanager.cpp | |
parent | d9ded26b86e9df8a87f92a5d7ad21f7fbce6edb6 (diff) | |
download | subsurface-d70f85ce35c95115438fecd26c70dc08ae4a3dbb.tar.gz |
Cloud storage: modify protocol for checking cloud connectivity
In order to allow the backend to match account in multi user mode, it
needs to know if the requests are coming from the same instance of
Subsurface. Since I had to change the backend to add the ability to
retrieve a location service userid I added this capability at the same
time.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/updatemanager.cpp')
-rw-r--r-- | desktop-widgets/updatemanager.cpp | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/desktop-widgets/updatemanager.cpp b/desktop-widgets/updatemanager.cpp index 0760d6407..2ab92b3a5 100644 --- a/desktop-widgets/updatemanager.cpp +++ b/desktop-widgets/updatemanager.cpp @@ -1,5 +1,6 @@ #include "updatemanager.h" #include "helpers.h" +#include "qthelper.h" #include <QtNetwork> #include <QMessageBox> #include <QUuid> @@ -60,22 +61,6 @@ void UpdateManager::checkForUpdates(bool automatic) connect(SubsurfaceWebServices::manager()->get(request), SIGNAL(finished()), this, SLOT(requestReceived()), Qt::UniqueConnection); } -QString UpdateManager::getUUID() -{ - QString uuidString; - QSettings settings; - settings.beginGroup("UpdateManager"); - if (settings.contains("UUID")) { - uuidString = settings.value("UUID").toString(); - } else { - QUuid uuid = QUuid::createUuid(); - uuidString = uuid.toString(); - settings.setValue("UUID", uuidString); - } - uuidString.replace("{", "").replace("}", ""); - return uuidString; -} - void UpdateManager::requestReceived() { bool haveNewVersion = false; |