mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-22 19:49:28 +00:00
37 lines
782 B
C++
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
|