Files
utun2/tools/chatgui/src/storagesettingspage.h
T
evgeny a97e8bcc1f docs: update file inventory and module header contracts
Refresh both AGENTS guides and clarify module purpose, usage, ownership, threading, return values and wire formats in headers. Remove the unused timeout_heap freed_count field and unimplemented getter.
2026-10-04 13:10:01 +02:00

29 lines
835 B
C++

/* Настройки media-хранилища: автозагрузка, лимит файла и общий размер.
* applyAndSave сохраняет значения и передаёт их chat_setting через uasync. */
#pragma once
#include <QWidget>
class DbManager;
class QCheckBox;
class QSpinBox;
void postChatSetting(const QString& configPath, const char* name, int val);
class StorageSettingsPage : public QWidget {
Q_OBJECT
public:
explicit StorageSettingsPage(DbManager* db, QWidget* parent = nullptr);
void setConfigPath(const QString& path) { m_configPath = path; }
void loadFromDb();
void applyAndSave();
private:
DbManager* m_db = nullptr;
QString m_configPath;
QCheckBox* m_autoloadCheck;
QSpinBox* m_autoloadMaxSize;
QSpinBox* m_maxStorageSize;
};