1
0
forked from BRT/arc
arc/services/DeviceScreener.h
slava b1876bc3b9 Refactor includes and add AccountInfoScreener functionality
Updated include paths for consistent structure under the `db` directory. Added `AccountInfoScreener` for parsing card data using Tesseract OCR and enhanced related models. Removed unused code and simplified main workflow.
2025-04-21 23:12:21 +07:00

31 lines
550 B
C++

#pragma once
#include <QObject>
#include <dao/DeviceDAO.h>
#include <db/DeviceInfo.h>
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;
static QList<QPair<QString, QString> > readAdbDevices();
static bool takeScreenshot(const QString &deviceId);
static DeviceInfo readDeviceInfo(const QString &deviceId);
};