CCEngine/CCEngineLoader/UpdateWorker.h

33 lines
552 B
C++

#pragma once
#include <boost/filesystem.hpp>
#include <QThread>
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;
};