// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2020, The Monero Project.

#ifndef FEATHER_BROADCASTTXDIALOG_H
#define FEATHER_BROADCASTTXDIALOG_H

#include <QDialog>
#include "appcontext.h"
#include "utils/daemonrpc.h"

namespace Ui {
    class BroadcastTxDialog;
}

class BroadcastTxDialog : public QDialog
{
    Q_OBJECT

public:
    explicit BroadcastTxDialog(QWidget *parent, AppContext *ctx);
    ~BroadcastTxDialog() override;

private slots:
    void broadcastTx();
    void onApiResponse(const DaemonRpc::DaemonResponse &resp);

private:
    Ui::BroadcastTxDialog *ui;
    UtilsNetworking *m_network;
    AppContext *m_ctx;
    DaemonRpc *m_rpc;
};


#endif //FEATHER_BROADCASTTXDIALOG_H
