feather/src/dialog/DebugInfoDialog.h
2024-01-01 18:07:58 +01:00

37 lines
782 B
C++

// SPDX-License-Identifier: BSD-3-Clause
// SPDX-FileCopyrightText: 2020-2024 The Monero Project
#ifndef FEATHER_DEBUGINFODIALOG_H
#define FEATHER_DEBUGINFODIALOG_H
#include <QDialog>
#include "components.h"
#include "libwalletqt/Wallet.h"
#include "utils/nodes.h"
namespace Ui {
class DebugInfoDialog;
}
class DebugInfoDialog : public WindowModalDialog
{
Q_OBJECT
public:
explicit DebugInfoDialog(Wallet *wallet, Nodes *nodes, QWidget *parent = nullptr);
~DebugInfoDialog() override;
private:
QString statusToString(Wallet::ConnectionStatus status);
void copyToClipboard();
void updateInfo();
QScopedPointer<Ui::DebugInfoDialog> ui;
Wallet *m_wallet;
Nodes *m_nodes;
QTimer m_updateTimer;
};
#endif //FEATHER_DEBUGINFODIALOG_H