mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-27 21:05:59 +00:00
36 lines
804 B
C++
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
|