Files
Corwin Perren b300c76103 Added old firmware and pcb design files
These are all design documents that I thought I had lost. It's may make
me cringe, but it's still cool to use it to see how far I've come.
2016-05-12 20:04:43 -07:00

32 lines
533 B
C++

#ifndef COUNTINGTHREAD_H
#define COUNTINGTHREAD_H
#include <QObject>
#include <QThread>
class CountingThread : public QObject
{
Q_OBJECT
public:
explicit CountingThread(QObject *parent = 0);
void SetupCounterThread(QThread *cThread);
void run();
void SetPause();
void ClrPause();
int PercentComplete();
void StartThread();
signals:
void NumberChanged(int);
public slots:
void onStart();
private:
QThread *thread;
bool Paused;
long CurrentCount;
};
#endif // COUNTINGTHREAD_H