Added AccountWindow to display account tables linked to devices and TransactionWindow for viewing account details. Enhanced DeviceDAO and AccountDAO to support additional filtering and data retrieval functionalities.
15 lines
404 B
C++
15 lines
404 B
C++
#pragma once
|
|
|
|
#include <db/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(bool online);
|
|
};
|