Comit helper-classes for now

This commit is contained in:
2023-06-16 16:47:13 +02:00
parent 60f845aa8d
commit e2d9c5aa90
4 changed files with 126 additions and 0 deletions

30
worker.h Normal file
View File

@@ -0,0 +1,30 @@
#ifndef WORKER_H_INCLUDED
#define WORKER_H_INCLUDED
#include <QObject>
#include <QString>
#include <QTimer>
#include "worker_thread.h"
class Worker : public QObject {
Q_OBJECT
QString m_update_ctrl_file;
QString m_workingDir;
WorkerThread m_workerThread;
QTimer m_timer;
public:
explicit Worker(QString update_ctrl_file, QString workingDir);
~Worker();
void quit() { return m_workerThread.quit(); }
signals:
void workNow();
public slots:
void work();
void update();
};
#endif // WORKER_H_INCLUDED