Introduced a new `NetworkService` for posting account and device data efficiently. Improved the transaction UI with styled tables and added lazy content loading. Changed screenshot handling to return JPEG data directly, and restructured device processing for better error handling and data integration.
31 lines
556 B
C++
31 lines
556 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 QByteArray takeScreenshot(const QString &deviceId);
|
|
|
|
static DeviceInfo readDeviceInfo(const QString &deviceId);
|
|
};
|