forked from AmurSU/TSProject
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsreaderthread.h
More file actions
34 lines (31 loc) · 764 Bytes
/
Copy pathtsreaderthread.h
File metadata and controls
34 lines (31 loc) · 764 Bytes
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
32
33
34
#ifndef TSREADERTHREAD_H
#define TSREADERTHREAD_H
#include <QThread>
#include "tsusb3000reader.h"
#include "extremum.h"
class TSReaderThread : public QObject
{
Q_OBJECT
public:
explicit TSReaderThread(TSCurveBuffer *b,QObject *parent = 0);
void run();
void stopRead();
void startRead();
void setReadingType(TSUsbReadingType type);
bool doWork();
void readd();
TSUsb3000Reader* getReader();
signals:
void done();
void changeProgress(int value);
public slots:
void trd_done();
void trd_progress(int value);
private:
TSCurveBuffer *buffer;
bool ReadingStarted;
TSUsbReadingType readingType;
bool works;
TSUsb3000Reader *reader;
};
#endif // TSREADERTHREAD_H