CCEngine/CCEngineLoader/UpdateWorker.h
Peter Sykora ab56776c37 [impl] Ability to start minimized
[impl] Allow only one application instance only
[impl] Automatic start of browser with the right command line argument
[chore] Update dependencies to conan
2018-12-25 20:08:06 +01:00

36 lines
600 B
C++

#pragma once
#include <boost/filesystem.hpp>
#include <QtCore/QThread>
enum class UpdateStatus
{
loadingUpdateDefinitions,
installingUpdates,
waitingForAppToExit,
restartingApp,
done
};
Q_DECLARE_METATYPE(UpdateStatus);
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;
};