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.
13 lines
381 B
C++
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);
|
|
};
|