You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
935 B
30 lines
935 B
/* Выбор группы для приглашения фиксированного собеседника в PM. |
|
* Закрытие отменяет ожидающую регистрацию; результат сопоставляется по request_id. */ |
|
#pragma once |
|
|
|
#include <QDialog> |
|
#include <QString> |
|
#include <cstdint> |
|
|
|
class DbManager; |
|
class QComboBox; |
|
class QLabel; |
|
class QPushButton; |
|
|
|
class DmInviteDialog : public QDialog { |
|
Q_OBJECT |
|
public: |
|
DmInviteDialog(DbManager* db, quint64 peer, const QString& name, const QString& source, QWidget* parent = nullptr); |
|
~DmInviteDialog() override; |
|
QString conversationId() const { return m_convId; } |
|
|
|
private: |
|
void sendInvite(); |
|
void onResult(const uint8_t* data, int len); |
|
quint64 m_peer, m_requestId = 0; |
|
QString m_name, m_source, m_convId; |
|
QComboBox* m_groups; |
|
QLabel* m_status; |
|
QPushButton* m_send; |
|
bool m_pending = false; |
|
};
|
|
|