///////////////////////////////////////////////////////////////////////////////
// Simple x264 Launcher
-// Copyright (C) 2004-2019 LoRd_MuldeR <MuldeR2@GMX.de>
+// Copyright (C) 2004-2022 LoRd_MuldeR <MuldeR2@GMX.de>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
#pragma once
-#include <QThread>
+#include "thread_startup.h"
+
+//Qt
#include <QMutex>
class QLibrary;
class SysinfoModel;
class QFile;
-class BinariesCheckThread : public QThread
+class BinariesCheckThread : public StarupThread
{
Q_OBJECT
protected:
BinariesCheckThread(const SysinfoModel *const sysinfo);
~BinariesCheckThread(void);
-
- int getSuccess(void) { return m_success; }
- bool getException(void) { return m_exception; }
const QString& getFailedPath(void) { return m_failedPath; }
-private slots:
- void start(Priority priority = InheritPriority) { QThread::start(priority); }
-
private:
- volatile bool m_exception, m_success;
QString m_failedPath;
const SysinfoModel *const m_sysinfo;
//Entry point
virtual void run(void);
- //Functions
- static void checkBinaries1(volatile bool &success, QString &failedPath, const SysinfoModel *const sysinfo, volatile bool *exception);
- static void checkBinaries2(volatile bool &success, QString &failedPath, const SysinfoModel *const sysinfo, volatile bool *exception);
- static void checkBinaries3(volatile bool &success, QString &failedPath, const SysinfoModel *const sysinfo);
+ //Thread main
+ virtual int threadMain(void);
};