mirror of
https://github.com/thunderbug1/Spherebot-Host-GUI.git
synced 2026-03-03 08:33:59 +01:00
35 lines
592 B
C++
35 lines
592 B
C++
#ifndef TXTHREAD_H
|
|
#define TXTHREAD_H
|
|
#include <QThread>
|
|
#include <QString>
|
|
#include "spherebot.h"
|
|
#include <QMessageBox>
|
|
#include <QTimer>
|
|
|
|
class txThread : public QThread
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
txThread();
|
|
void set(QString textfile,spherebot &bot);
|
|
void run();
|
|
~txThread();
|
|
int getLineCounter();
|
|
QTimer *watchdogTimer;
|
|
|
|
signals:
|
|
void progressChanged(int);
|
|
void fileTransmitted();
|
|
|
|
public slots:
|
|
void sendNext();
|
|
void watchdogTimeout();
|
|
private:
|
|
QString textfile;
|
|
int lineCounter;
|
|
int lineMax;
|
|
spherebot *bot;
|
|
};
|
|
|
|
#endif // TXTHREAD_H
|