feather/src/dialog/DebugInfoDialog.h

38 lines
782 B
C
Raw Normal View History

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