2020-10-07 10:36:04 +00:00
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
2024-01-01 17:07:58 +00:00
|
|
|
// SPDX-FileCopyrightText: 2020-2024 The Monero Project
|
2020-10-07 10:36:04 +00:00
|
|
|
|
|
|
|
#ifndef FEATHER_DEBUGINFODIALOG_H
|
|
|
|
#define FEATHER_DEBUGINFODIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
2021-06-27 14:33:18 +00:00
|
|
|
|
2021-10-22 17:19:56 +00:00
|
|
|
#include "components.h"
|
2020-10-07 10:36:04 +00:00
|
|
|
#include "libwalletqt/Wallet.h"
|
2023-03-01 02:05:56 +00:00
|
|
|
#include "utils/nodes.h"
|
2020-10-07 10:36:04 +00:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class DebugInfoDialog;
|
|
|
|
}
|
|
|
|
|
2021-10-22 17:19:56 +00:00
|
|
|
class DebugInfoDialog : public WindowModalDialog
|
2020-10-07 10:36:04 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2023-03-01 02:05:56 +00:00
|
|
|
explicit DebugInfoDialog(Wallet *wallet, Nodes *nodes, QWidget *parent = nullptr);
|
2020-10-07 10:36:04 +00:00
|
|
|
~DebugInfoDialog() override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
QString statusToString(Wallet::ConnectionStatus status);
|
2023-01-09 02:17:25 +00:00
|
|
|
void copyToClipboard();
|
2020-11-23 16:57:38 +00:00
|
|
|
void updateInfo();
|
|
|
|
|
2021-06-27 12:13:05 +00:00
|
|
|
QScopedPointer<Ui::DebugInfoDialog> ui;
|
2023-03-01 02:05:56 +00:00
|
|
|
Wallet *m_wallet;
|
|
|
|
Nodes *m_nodes;
|
2020-10-07 10:36:04 +00:00
|
|
|
|
2021-05-10 13:20:33 +00:00
|
|
|
QTimer m_updateTimer;
|
2020-10-07 10:36:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //FEATHER_DEBUGINFODIALOG_H
|