-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e8e4d83
commit 3acd6cd
Showing
10 changed files
with
399 additions
and
412 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include "controller.h" | ||
Controller::Controller(QObject *parent) : QObject(parent) | ||
{ | ||
workerThread = new WorkerThread(3, true, "folderPath", "directoryPath"); | ||
connect(workerThread, &WorkerThread::finished, this, &Controller::onWorkerThreadFinished); | ||
} | ||
void Controller::startWorkerThread() | ||
{ | ||
workerThread->start(); | ||
} | ||
|
||
void Controller::stopWorkerThread() | ||
{ | ||
workerThread->quit(); | ||
} | ||
|
||
void Controller::onWorkerThreadFinished() | ||
{ | ||
// Handle worker thread finished event | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#ifndef CONTROLLER_H | ||
#define CONTROLLER_H | ||
#include <QObject> | ||
#include "worker.h" | ||
class Controller : public QObject | ||
{ | ||
Q_OBJECT | ||
public: | ||
explicit Controller(QObject *parent = nullptr); | ||
void startWorkerThread(); | ||
void stopWorkerThread(); | ||
|
||
private slots: | ||
void onWorkerThreadFinished(); | ||
|
||
private: | ||
WorkerThread *workerThread; | ||
}; | ||
#endif |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
output.h | ||
data.json | ||
file_info.json |
This file was deleted.
Oops, something went wrong.