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.
33 lines
822 B
33 lines
822 B
#pragma once |
|
|
|
#include <QDialog> |
|
#include <QString> |
|
#include <stdint.h> |
|
|
|
class DbManager; |
|
class QComboBox; |
|
class QLineEdit; |
|
class QLabel; |
|
|
|
class ShareInviteDialog : public QDialog { |
|
Q_OBJECT |
|
public: |
|
explicit ShareInviteDialog(const QString& channelId, DbManager* db, QWidget* parent = nullptr); |
|
~ShareInviteDialog(); |
|
|
|
private slots: |
|
void onNodeSelected(int index); |
|
|
|
private: |
|
void requestLink(uint64_t targetNodeId); |
|
void setLink(const QString& link); |
|
void onCandidates(const char* chId, int chIdLen, const uint8_t* data, int len); |
|
void onLinkReady(const char* chId, int chIdLen, uint64_t requestId, const char* link); |
|
|
|
uint64_t m_requestId = 0; |
|
QString m_channelId; |
|
DbManager* m_db; |
|
QComboBox* m_nodeCombo; |
|
QLineEdit* m_linkEdit; |
|
QLabel* m_qrLabel; |
|
};
|
|
|