mirror of
https://github.com/wownero/wowlet.git
synced 2026-11-21 15:44:10 +01:00
54 lines
1.4 KiB
C++
54 lines
1.4 KiB
C++
// SPDX-License-Identifier: BSD-3-Clause
|
|
// SPDX-FileCopyrightText: 2020-2023 The Monero Project
|
|
|
|
#ifndef FEATHER_TXCONFADVDIALOG_H
|
|
#define FEATHER_TXCONFADVDIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QMenu>
|
|
#include <QStandardItemModel>
|
|
#include <QTextCharFormat>
|
|
|
|
#include "components.h"
|
|
#include "libwalletqt/PendingTransaction.h"
|
|
#include "libwalletqt/Wallet.h"
|
|
|
|
namespace Ui {
|
|
class TxConfAdvDialog;
|
|
}
|
|
|
|
class TxConfAdvDialog : public WindowModalDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit TxConfAdvDialog(Wallet *wallet, const QString &description, QWidget *parent = nullptr, bool offline = false);
|
|
~TxConfAdvDialog() override;
|
|
|
|
void setTransaction(PendingTransaction *tx, bool isSigned = true); // #TODO: have libwallet return a UnsignedTransaction, this is just dumb
|
|
void setUnsignedTransaction(UnsignedTransaction *utx);
|
|
|
|
private:
|
|
void setupConstructionData(ConstructionInfo *ci);
|
|
void signTransaction();
|
|
void broadcastTransaction();
|
|
void closeDialog();
|
|
void setAmounts(quint64 amount, quint64 fee);
|
|
|
|
void signedCopy();
|
|
void signedSaveFile();
|
|
|
|
void txKeyCopy();
|
|
|
|
QScopedPointer<Ui::TxConfAdvDialog> ui;
|
|
Wallet *m_wallet;
|
|
PendingTransaction *m_tx = nullptr;
|
|
UnsignedTransaction *m_utx = nullptr;
|
|
QMenu *m_exportSignedMenu;
|
|
QMenu *m_exportTxKeyMenu;
|
|
QString m_txid;
|
|
bool m_offline;
|
|
};
|
|
|
|
#endif //FEATHER_TXCONFADVDIALOG_H
|