Program Listing for File devicethreadcontroller.h¶
↰ Return to documentation for file (src/controller/devicethreadcontroller.h
)
#ifndef SERIALDEVICETHREAD_H
#define SERIALDEVICETHREAD_H
#include <QByteArray>
#include <QThread>
#include "devicecontroller.h"
namespace PixelMaestroStudio {
class DeviceThreadController : public QThread {
Q_OBJECT
public:
DeviceThreadController(DeviceController& device, const char* out, int size);
void run() override;
signals:
void progress_changed(int progress);
private:
const uint8_t CHUNK_SIZE = 64;
const uint8_t SLEEP_INTERVAL = 0;
DeviceController& device_;
QByteArray output_;
};
}
#endif // SERIALDEVICETHREAD_H