aboutsummaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/coreSQLiteStudio/services/updatemanager.h
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2015-05-12 16:19:47 -0400
committerLibravatarUnit 193 <unit193@ubuntu.com>2015-05-12 16:19:47 -0400
commit6ce5ee411d1e6093b68b1b4eca5dc6c12b927a96 (patch)
tree1a98416041b39765c1c42ffbeab6da9fd40e181b /SQLiteStudio3/coreSQLiteStudio/services/updatemanager.h
parent1fc9d1a4a1af320e39810cee21bed1201e2bddfd (diff)
parent9618f0ebbf4b88045247c01ce8c8f58203508ebf (diff)
Merge tag 'upstream/3.0.6'
Upstream version 3.0.6 # gpg: Signature made Tue 12 May 2015 04:19:45 PM EDT using RSA key ID EBE9BD91 # gpg: Good signature from "Unit 193 <unit193@gmail.com>" # gpg: aka "Unit 193 <unit193@ninthfloor.org>" # gpg: aka "Unit 193 <unit193@ubuntu.com>" # gpg: aka "Unit 193 <unit193@ninthfloor.com>"
Diffstat (limited to 'SQLiteStudio3/coreSQLiteStudio/services/updatemanager.h')
-rw-r--r--SQLiteStudio3/coreSQLiteStudio/services/updatemanager.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/SQLiteStudio3/coreSQLiteStudio/services/updatemanager.h b/SQLiteStudio3/coreSQLiteStudio/services/updatemanager.h
index b8e6006..bb33487 100644
--- a/SQLiteStudio3/coreSQLiteStudio/services/updatemanager.h
+++ b/SQLiteStudio3/coreSQLiteStudio/services/updatemanager.h
@@ -1,6 +1,8 @@
#ifndef UPDATEMANAGER_H
#define UPDATEMANAGER_H
+#ifdef PORTABLE_CONFIG
+
#include "common/global.h"
#include "sqlitestudio.h"
#include <QObject>
@@ -28,7 +30,7 @@ class API_EXPORT UpdateManager : public QObject
explicit UpdateManager(QObject *parent = 0);
~UpdateManager();
- void checkForUpdates();
+ void checkForUpdates(bool force = false);
void update();
bool isPlatformEligibleForUpdate() const;
static bool executeFinalStep(const QString& tempDir, const QString& backupDir, const QString& appDir);
@@ -54,7 +56,7 @@ class API_EXPORT UpdateManager : public QObject
QString getCurrentVersions() const;
void handleAvailableUpdatesReply(QNetworkReply* reply);
void handleDownloadReply(QNetworkReply* reply);
- void getUpdatesMetadata(QNetworkReply*& replyStoragePointer);
+ void getUpdatesMetadata(QNetworkReply*& replyStoragePointer, bool force = false);
void handleUpdatesMetadata(QNetworkReply* reply);
QList<UpdateEntry> readMetadata(const QJsonDocument& doc);
void downloadUpdates();
@@ -134,4 +136,5 @@ class API_EXPORT UpdateManager : public QObject
#define UPDATES SQLITESTUDIO->getUpdateManager()
+#endif // PORTABLE_CONFIG
#endif // UPDATEMANAGER_H