1
0
forked from BRT/arc
arc/services/DeviceScreener.h
2025-07-27 14:28:35 +05:00

35 lines
683 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;
QString m_urlAppUpdate;
QString m_token;
static QList<QPair<QString, QString> > readAdbDevices();
static QByteArray takeScreenshot(const QString &deviceId);
static DeviceInfo readDeviceInfo(const QString &deviceId, bool isChecked);
void postDevicesData(const QList<DeviceInfo> &devices);
};