feather/src/dialog/TxBroadcastDialog.h
2023-01-02 20:31:22 +01:00

36 lines
804 B
C++

// SPDX-License-Identifier: BSD-3-Clause
// SPDX-FileCopyrightText: 2020-2023 The Monero Project
#ifndef FEATHER_TXBROADCASTDIALOG_H
#define FEATHER_TXBROADCASTDIALOG_H
#include <QDialog>
#include "appcontext.h"
#include "components.h"
#include "utils/daemonrpc.h"
namespace Ui {
class TxBroadcastDialog;
}
class TxBroadcastDialog : public WindowModalDialog
{
Q_OBJECT
public:
explicit TxBroadcastDialog(QWidget *parent, QSharedPointer<AppContext> ctx, const QString &transactionHex = "");
~TxBroadcastDialog() override;
private slots:
void broadcastTx();
void onApiResponse(const DaemonRpc::DaemonResponse &resp);
private:
QScopedPointer<Ui::TxBroadcastDialog> ui;
QSharedPointer<AppContext> m_ctx;
DaemonRpc *m_rpc;
};
#endif //FEATHER_TXBROADCASTDIALOG_H