#pragma once #include #include enum class UpdateStatus { loadingUpdateDefinitions, installingUpdates, waitingForAppToExit, updatesInstalled, }; class UpdateWorkerThread : public QThread { Q_OBJECT public: UpdateWorkerThread(const boost::filesystem::path& appDir, unsigned parentProcessId); void run() override; public: signals: void progressChanged(UpdateStatus updateStatus, QString info); private: boost::filesystem::path m_appDir; unsigned m_parentProcessId; };