Refactored code to improve account and transaction data parsing and management, introducing support for additional fields like card numbers and account statuses. Added new utilities for database connections, device-specific screenshot handling, and XML parsing for enriched account and transaction details.
17 lines
481 B
C++
17 lines
481 B
C++
#pragma once
|
|
|
|
#include <db/DeviceInfo.h>
|
|
|
|
class DeviceDAO {
|
|
public:
|
|
[[nodiscard]] static DeviceInfo getDeviceById(const QString &deviceId);
|
|
|
|
[[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);
|
|
};
|