[impl] Allow only one application instance only [impl] Automatic start of browser with the right command line argument [chore] Update dependencies to conan
36 lines
600 B
C++
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;
|
|
|
|
};
|
|
|