#pragma once #include #include class AutoUpdateChecker : public QObject { Q_OBJECT public: explicit AutoUpdateChecker(QObject *parent = nullptr); Q_INVOKABLE void start(); signals: void onUpdateAvailable(QString url); private slots: void handleUpdateCheckRequestFinished(QNetworkReply* reply); private: void parseStringToVersionQuad(QString& string, QVector& version); QVector m_CurrentVersionQuad; QNetworkAccessManager m_Nam; };