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.
41 lines
1.1 KiB
C++
41 lines
1.1 KiB
C++
/* Диалог имени и прав участника канала; сохранение подписанных изменений и передача admin-ключа через ядро. */
|
|
#pragma once
|
|
|
|
#include <QDialog>
|
|
#include <QCheckBox>
|
|
#include <QLineEdit>
|
|
#include <QPushButton>
|
|
#include <QString>
|
|
#include <stdint.h>
|
|
|
|
class DbManager;
|
|
|
|
class MemberPropsDialog : public QDialog {
|
|
Q_OBJECT
|
|
public:
|
|
explicit MemberPropsDialog(DbManager* db, const QString& channelId,
|
|
uint64_t nodeId, const QString& memberName,
|
|
uint8_t flags, QWidget* parent = nullptr);
|
|
|
|
private slots:
|
|
void onSave();
|
|
void onTransferAdmin();
|
|
|
|
private:
|
|
DbManager* m_db;
|
|
QString m_channelId;
|
|
uint64_t m_nodeId;
|
|
QByteArray m_edPrivkey;
|
|
uint8_t m_flags;
|
|
int m_currentVer;
|
|
QString m_memberName;
|
|
|
|
QLineEdit* m_nickEdit;
|
|
QCheckBox* m_adminCb;
|
|
QCheckBox* m_superCb;
|
|
QCheckBox* m_storageCb;
|
|
QCheckBox* m_verifiedCb;
|
|
QCheckBox* m_deletedCb;
|
|
QPushButton* m_transferBtn;
|
|
};
|