aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/function/VersionCheckThread.h
diff options
context:
space:
mode:
authorSaturn&Eric <[email protected]>2022-01-05 20:02:19 +0000
committerGitHub <[email protected]>2022-01-05 20:02:19 +0000
commita3ca1bf1d4404327d68d3d49127085638c272152 (patch)
treedeb10c33977e5002fa6e9b434f2b07d2719a4e31 /src/ui/function/VersionCheckThread.h
parentMerge pull request #37 from saturneric/document (diff)
parent<doc>(navbar): take repository and GitHub apart. (diff)
downloadGpgFrontend-a3ca1bf1d4404327d68d3d49127085638c272152.tar.gz
GpgFrontend-a3ca1bf1d4404327d68d3d49127085638c272152.zip
Merge pull request #36 from saturneric/developv2.0.4
v2.0.4
Diffstat (limited to '')
-rw-r--r--src/ui/function/VersionCheckThread.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/function/VersionCheckThread.h b/src/ui/function/VersionCheckThread.h
index 181ee947..0db9770c 100644
--- a/src/ui/function/VersionCheckThread.h
+++ b/src/ui/function/VersionCheckThread.h
@@ -26,6 +26,7 @@
#define GPGFRONTEND_VERSIONCHECKTHREAD_H
#include "ui/GpgFrontendUI.h"
+#include "ui/data_struct/SoftwareVersion.h"
namespace GpgFrontend::UI {
@@ -33,18 +34,17 @@ class VersionCheckThread : public QThread {
Q_OBJECT
public:
- explicit VersionCheckThread(QNetworkReply* networkReply);
+ explicit VersionCheckThread();
signals:
- void upgradeVersion(const QString& currentVersion,
- const QString& latestVersion);
+ void upgradeVersion(SoftwareVersion version);
protected:
void run() override;
private:
- QNetworkReply* mNetworkReply;
+ QByteArray latest_reply_bytes_, current_reply_bytes_;
};
} // namespace GpgFrontend::UI