1
0
forked from BRT/arc
arc/database/dao/DeviceDAO.h
slava 4d9889db46 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

15 lines
390 B
C++

#pragma once
#include <DeviceInfo.h>
class DeviceDAO {
public:
[[nodiscard]] static bool upsertDevice(const DeviceInfo &device);
[[nodiscard]] static bool markDevicesOfflineExcept(const QStringList &onlineDeviceIds);
[[nodiscard]] static bool updateImage(const QString &deviceId, const QByteArray &imageData);
[[nodiscard]] static QList<DeviceInfo> getAllDevices();
};