#pragma once #ifndef UPDATE_CHECKER_H #define UPDATE_CHECKER_H #include #include #include "tcommon.h" #include #include #include #include #undef DVAPI #undef DVVAR #ifdef TOONZQT_EXPORTS #define DVAPI DV_EXPORT_API #define DVVAR DV_EXPORT_VAR #else #define DVAPI DV_IMPORT_API #define DVVAR DV_IMPORT_VAR #endif class DVAPI UpdateChecker final : public QObject { Q_OBJECT QSharedPointer manager_; QString m_latestVersion; public: UpdateChecker(QUrl const& updateUrl); QString getLatestVersion() const { return m_latestVersion; } protected slots: void httpRequestFinished(QNetworkReply*); signals: void done(bool error); }; #endif // UPDATE_CHECKER_H