Added handling for event types (Balance, Phone) and respective processing logic in EventHandler. Introduced support for tracking and updating event statuses both locally and through network APIs. Enhanced data integrity and clarity by expanding the EventInfo model and associated database management.
30 lines
882 B
C++
30 lines
882 B
C++
#pragma once
|
|
|
|
#include "db/ApplicationInfo.h"
|
|
|
|
class ApplicationDAO {
|
|
public:
|
|
[[nodiscard]] static bool upsertApplication(const ApplicationInfo &info);
|
|
|
|
[[nodiscard]] static bool updatePinCode(const QString &appId, const QString &pinCode);
|
|
|
|
[[nodiscard]] static bool update(
|
|
const int &appId,
|
|
const QString &pinCode,
|
|
const QString &comment,
|
|
const QString &status
|
|
);
|
|
|
|
[[nodiscard]] static bool updatePinCodeStatus(
|
|
const int &appId,
|
|
const QString &pinCodeStatus,
|
|
const QString &comment
|
|
);
|
|
|
|
[[nodiscard]] static ApplicationInfo getApplication(const QString &deviceId, const QString &appCode);
|
|
|
|
[[nodiscard]] static QList<ApplicationInfo> getApplicationsByDeviceId(const QString &deviceId);
|
|
|
|
[[nodiscard]] static bool checkInstalledApps(const QString &deviceId, const QSet<QString> &apps);
|
|
};
|