mirror of
https://github.com/feather-wallet/feather.git
synced 2025-03-16 16:42:15 +00:00
40 lines
788 B
C++
40 lines
788 B
C++
// SPDX-License-Identifier: BSD-3-Clause
|
|
// Copyright (c) 2020-2021, The Monero Project.
|
|
|
|
#ifndef FEATHER_TXIMPORTDIALOG_H
|
|
#define FEATHER_TXIMPORTDIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include "appcontext.h"
|
|
#include "utils/daemonrpc.h"
|
|
|
|
namespace Ui {
|
|
class TxImportDialog;
|
|
}
|
|
|
|
class TxImportDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit TxImportDialog(QWidget *parent, QSharedPointer<AppContext> ctx);
|
|
~TxImportDialog() override;
|
|
|
|
private slots:
|
|
void loadTx();
|
|
void onImport();
|
|
void onApiResponse(const DaemonRpc::DaemonResponse &resp);
|
|
|
|
private:
|
|
Ui::TxImportDialog *ui;
|
|
QSharedPointer<AppContext> m_ctx;
|
|
|
|
UtilsNetworking *m_network;
|
|
DaemonRpc *m_rpc;
|
|
QTimer *m_loadTimer;
|
|
|
|
QJsonObject m_transaction;
|
|
};
|
|
|
|
|
|
#endif //FEATHER_TXIMPORTDIALOG_H
|