feather/src/dialog/DebugInfoDialog.h

37 lines
778 B
C
Raw Normal View History

// SPDX-License-Identifier: BSD-3-Clause
2023-01-02 19:30:11 +00:00
// SPDX-FileCopyrightText: 2020-2023 The Monero Project
#ifndef FEATHER_DEBUGINFODIALOG_H
#define FEATHER_DEBUGINFODIALOG_H
#include <QDialog>
2021-06-27 14:33:18 +00:00
#include "appcontext.h"
2021-10-22 17:19:56 +00:00
#include "components.h"
#include "libwalletqt/Wallet.h"
namespace Ui {
class DebugInfoDialog;
}
2021-10-22 17:19:56 +00:00
class DebugInfoDialog : public WindowModalDialog
{
Q_OBJECT
public:
2021-05-18 15:59:18 +00:00
explicit DebugInfoDialog(QSharedPointer<AppContext> ctx, QWidget *parent = nullptr);
~DebugInfoDialog() override;
private:
QString statusToString(Wallet::ConnectionStatus status);
void copyToClipboad();
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;
2021-05-10 13:20:33 +00:00
QTimer m_updateTimer;
};
#endif //FEATHER_DEBUGINFODIALOG_H