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.
15 lines
390 B
C++
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();
|
|
};
|