1
0
forked from BRT/arc
arc/services/DeviceScreener.h
trnsmkot 9fb9cf0005 Refactor UI and database logic for device management
Replaced `MyWindow` with `MainWindow` featuring dynamic device widgets. Introduced `DeviceInfo`, `DeviceDAO`, and improved database interaction. Added flow layout and refactored image handling for better performance.
2025-04-18 16:39:13 +07:00

31 lines
547 B
C++

#pragma once
#include <QObject>
#include <dao/DeviceDAO.h>
#include <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);
};