2020-10-07 10:36:04 +00:00
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
2020-12-26 19:56:06 +00:00
|
|
|
// Copyright (c) 2020-2021, 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
|
|
|
|
2020-10-07 10:36:04 +00:00
|
|
|
#include "appcontext.h"
|
|
|
|
#include "libwalletqt/Wallet.h"
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class DebugInfoDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class DebugInfoDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2021-05-18 15:59:18 +00:00
|
|
|
explicit DebugInfoDialog(QSharedPointer<AppContext> ctx, QWidget *parent = nullptr);
|
2020-10-07 10:36:04 +00:00
|
|
|
~DebugInfoDialog() override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
QString statusToString(Wallet::ConnectionStatus status);
|
|
|
|
void copyToClipboad();
|
2020-11-23 16:57:38 +00:00
|
|
|
void updateInfo();
|
|
|
|
|
2021-06-27 12:13:05 +00:00
|
|
|
QScopedPointer<Ui::DebugInfoDialog> ui;
|
2021-05-18 15:59:18 +00:00
|
|
|
QSharedPointer<AppContext> m_ctx;
|
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
|