2020-10-07 10:36:04 +00:00
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
2023-01-02 19:30:11 +00:00
|
|
|
// SPDX-FileCopyrightText: 2020-2023 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"
|
2021-10-22 17:19:56 +00:00
|
|
|
#include "components.h"
|
2020-10-07 10:36:04 +00:00
|
|
|
#include "libwalletqt/Wallet.h"
|
|
|
|
|
|
|
|
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:
|
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
|