2020-11-14 10:26:37 +00:00
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
2020-12-26 19:56:06 +00:00
|
|
|
// Copyright (c) 2020-2021, The Monero Project.
|
2020-11-14 10:26:37 +00:00
|
|
|
|
2020-11-10 11:38:37 +00:00
|
|
|
#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:
|
2021-05-18 15:59:18 +00:00
|
|
|
explicit TxImportDialog(QWidget *parent, QSharedPointer<AppContext> ctx);
|
2020-11-10 11:38:37 +00:00
|
|
|
~TxImportDialog() override;
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void loadTx();
|
|
|
|
void onImport();
|
|
|
|
void onApiResponse(const DaemonRpc::DaemonResponse &resp);
|
|
|
|
|
|
|
|
private:
|
2021-06-27 12:13:05 +00:00
|
|
|
QScopedPointer<Ui::TxImportDialog> ui;
|
2021-05-18 15:59:18 +00:00
|
|
|
QSharedPointer<AppContext> m_ctx;
|
2021-05-10 13:20:33 +00:00
|
|
|
|
|
|
|
UtilsNetworking *m_network;
|
2020-11-10 11:38:37 +00:00
|
|
|
DaemonRpc *m_rpc;
|
|
|
|
QTimer *m_loadTimer;
|
|
|
|
|
|
|
|
QJsonObject m_transaction;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif //FEATHER_TXIMPORTDIALOG_H
|