qt/LedOK/program/sendprogthread.h

28 lines
497 B
C
Raw Normal View History

2022-08-25 18:37:24 +08:00
#ifndef SENDPROGTHREAD_H
#define SENDPROGTHREAD_H
#include <QThread>
class SendProgThread : public QThread {
Q_OBJECT
public:
SendProgThread(const QString &progDir, const QString &ip, int port = 3333);
protected:
void run();
signals:
void emErr(QString);
void emProgress(int);
public slots:
void stop() {
stoped = true;
}
private:
QString prog_dir;
QString ip;
int port = 3333;
2024-06-06 21:55:36 +08:00
std::atomic_bool stoped = false;
2022-08-25 18:37:24 +08:00
};
#endif // SENDPROGTHREAD_H