forked from GTRONICK/QPickit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
worker.h
31 lines (25 loc) · 818 Bytes
/
worker.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef WORKER_H
#define WORKER_H
#include "programmer.h"
#include <QObject>
#include <QProcess>
class Worker : public QObject {
Q_OBJECT
public:
explicit Worker( QObject *parent = nullptr, Programmer *programmer = nullptr );
signals:
void worker_signal_processOutput( QString output );
void worker_signal_pickitInfo( QString info );
void worker_signal_prepareCommandExecution();
void worker_signal_taskCompleted( bool abExitStatus, QString asExitString );
public slots:
void worker_slot_executeCommand( QStringList aobArguments );
void worker_slot_pickitInfo();
void worker_slot_pickitNewID( QString newID );
void worker_slot_internalProcessOutputCapture();
private:
int giInfoFlag;
QProcess *gobProcess;
Programmer *programmer;
};
#endif // WORKER_H