aboutsummaryrefslogtreecommitdiffstats
path: root/src/m_ver_check/VersionCheckTask.h
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-12-01 21:13:50 +0000
committersaturneric <[email protected]>2024-12-01 21:13:50 +0000
commit2dc2f2e04888fcc7391ee544ee8ae3e3d042a297 (patch)
tree9e80f3ad89dc88f2afd90be02f2bb0d059b43147 /src/m_ver_check/VersionCheckTask.h
parentfeat: all users should know the meanings of update (diff)
downloadModules-2dc2f2e04888fcc7391ee544ee8ae3e3d042a297.tar.gz
Modules-2dc2f2e04888fcc7391ee544ee8ae3e3d042a297.zip
feat: check commit hash by current version
Diffstat (limited to 'src/m_ver_check/VersionCheckTask.h')
-rw-r--r--src/m_ver_check/VersionCheckTask.h27
1 files changed, 19 insertions, 8 deletions
diff --git a/src/m_ver_check/VersionCheckTask.h b/src/m_ver_check/VersionCheckTask.h
index 3d9c6b6..764c46e 100644
--- a/src/m_ver_check/VersionCheckTask.h
+++ b/src/m_ver_check/VersionCheckTask.h
@@ -70,26 +70,37 @@ class VersionCheckTask : public QObject {
* @brief
*
*/
- void slot_parse_latest_version_info();
+ void slot_parse_reply(QNetworkReply* reply);
/**
* @brief
*
+ * @param reply
*/
- void slot_parse_current_version_info();
+ void slot_parse_latest_version_info(QNetworkReply* reply);
/**
* @brief
*
+ * @param reply
+ */
+ void slot_parse_current_version_info(QNetworkReply* reply);
+
+ /**
+ * @brief
+ *
+ * @param reply
+ */
+ void slot_parse_current_tag_info(QNetworkReply* reply);
+ /**
+ * @brief
+ *
*/
void slot_fill_grt_with_version_info(const SoftwareVersion&);
private:
- QByteArray latest_reply_bytes_; ///<
- QByteArray current_reply_bytes_; ///<
- QNetworkReply* latest_reply_ = nullptr; ///< latest version info reply
- QNetworkReply* current_reply_ = nullptr; ///< current version info reply
+ QList<QNetworkReply*> replies_; ///<
QNetworkAccessManager* network_manager_; ///<
- QString current_version_;
- SoftwareVersion version_;
+ QString current_version_; ///<
+ SoftwareVersion version_meta_data_;
};