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.
34 lines
1013 B
C++
34 lines
1013 B
C++
/* Диалог приглашения узла по его utun:// ссылке в текущий канал; ждёт результата ядра через bridge. */
|
|
#pragma once
|
|
|
|
#include <QDialog>
|
|
#include <QString>
|
|
#include <QLineEdit>
|
|
#include <QLabel>
|
|
#include <QPushButton>
|
|
|
|
class UtunNode;
|
|
|
|
class InviteByLinkDialog : public QDialog {
|
|
Q_OBJECT
|
|
public:
|
|
explicit InviteByLinkDialog(const QString& channelId, UtunNode* node, QWidget* parent = nullptr);
|
|
~InviteByLinkDialog() override;
|
|
|
|
private slots:
|
|
void onInviteLinkTextChanged();
|
|
void onSendInvite();
|
|
void onConnectResult(uint64_t nodeId, uint64_t channelId, int result);
|
|
|
|
private:
|
|
void setInviteStatus(const QString& text, bool isError = false);
|
|
|
|
QString m_channelId;
|
|
UtunNode* m_node;
|
|
QLineEdit* m_inviteLinkEdit = nullptr;
|
|
QLabel* m_inviteStatusLabel = nullptr;
|
|
QPushButton* m_inviteSendBtn = nullptr;
|
|
bool m_inviteSending = false;
|
|
uint64_t m_inviteTargetNodeId = 0;
|
|
};
|