Files
Spherebot-Host-GUI/Spherebot_UI/txthread.h
Alex 16138b065c checksum
added checksum support and removed a bug with the settings save of
curdir
2014-11-09 18:09:04 +01:00

38 lines
653 B
C++

#ifndef TXTHREAD_H
#define TXTHREAD_H
#include <QThread>
#include <QString>
#include "spherebot.h"
#include <QMessageBox>
#include <QTimer>
#include <QString>
#include <string.h>
class txThread : public QThread
{
Q_OBJECT
public:
txThread();
void set(QString textfile,spherebot &bot);
void run();
~txThread();
int getLineCounter();
signals:
void progressChanged(int);
void layerTransmitted();
void fileTransmitted();
public slots:
void sendNext();
void resetState();
private:
QString textfile;
int lineCounter;
int lineMax;
bool ignoreFirstM01;
spherebot *bot;
};
#endif // TXTHREAD_H