pairingpage.h raw
1 // Copyright (c) 2018 The Limenka developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5 #ifndef LIMENKA_QT_PAIRINGPAGE_H
6 #define LIMENKA_QT_PAIRINGPAGE_H
7
8 #include <QWidget>
9
10 class ClientModel;
11 class QRImageWidget;
12
13 QT_BEGIN_NAMESPACE
14 class QLineEdit;
15 QT_END_NAMESPACE
16
17 class PairingPage : public QWidget
18 {
19 Q_OBJECT
20
21 public:
22 explicit PairingPage(QWidget *parent = nullptr);
23
24 void setClientModel(ClientModel *);
25
26 public Q_SLOTS:
27 void refresh();
28
29 private:
30 ClientModel *m_client_model{nullptr};
31 QLineEdit *m_onion_address{nullptr};
32 QRImageWidget *m_qrcode{nullptr};
33 };
34
35 #endif // LIMENKA_QT_PAIRINGPAGE_H
36