Added a background worker using QThread for device screening and integrated Tesseract OCR for text recognition from images. Refactored project structure, updated CMakeLists for Tesseract support, and adjusted .gitignore for build files.
19 lines
324 B
C++
19 lines
324 B
C++
#pragma once
|
|
#include <QObject>
|
|
|
|
class DeviceScreener final : public QObject {
|
|
Q_OBJECT
|
|
public:
|
|
explicit DeviceScreener(QObject* parent = nullptr);
|
|
~DeviceScreener() override;
|
|
|
|
public slots:
|
|
void start();
|
|
void stop();
|
|
|
|
signals:
|
|
void finished();
|
|
|
|
private:
|
|
bool m_running = true;
|
|
}; |