1
0
forked from BRT/arc
arc/database/dao/SettingsDAO.h
slava 3d3ed9cbf6 Add SettingsDAO implementation, schema migration, and related updates
Implemented `SettingsDAO` with `get`, `set`, `remove`, and related methods for key-value storage. Added database schema migration for a new `settings` table. Updated `EventDAO` with error handling improvements and `AbstractDAO` with helper utilities. Enhanced Ozon scripts with ad banner detection and handling.
2026-03-09 15:53:35 +07:00

13 lines
381 B
C++

#pragma once
#include <QString>
class SettingsDAO {
public:
static QString get(const QString &key, const QString &defaultValue = {});
static void set(const QString &key, const QString &value);
static void remove(const QString &key);
static qint64 getLong(const QString &key, qint64 defaultValue = 0);
static void setLong(const QString &key, qint64 value);
};