diff options
author | Saturneric <[email protected]> | 2022-01-03 22:10:04 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2022-01-03 22:10:04 +0000 |
commit | 2f64e4300b77f74cc4a7f0f50dbfe87862b72b95 (patch) | |
tree | 0d56d21ed78b5b1377681338619ac79c32386335 /src/ui/function/VersionCheckThread.h | |
parent | <fix, feature>(core, ui): key package import. (diff) | |
download | GpgFrontend-2f64e4300b77f74cc4a7f0f50dbfe87862b72b95.tar.gz GpgFrontend-2f64e4300b77f74cc4a7f0f50dbfe87862b72b95.zip |
<fix, feature>(core, ui): version system upgrade.
1. can notice user withdraw version now.
2. fix software not restart when signal caught.
3. improve ui.
Diffstat (limited to 'src/ui/function/VersionCheckThread.h')
-rw-r--r-- | src/ui/function/VersionCheckThread.h | 8 |
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 |