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.
29 lines
835 B
C++
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;
|
|
};
|