feather/src/dialog/TxProofDialog.h

59 lines
1.2 KiB
C
Raw Normal View History

2021-03-08 20:03:20 +00:00
// SPDX-License-Identifier: BSD-3-Clause
2024-01-01 17:07:58 +00:00
// SPDX-FileCopyrightText: 2020-2024 The Monero Project
2021-03-08 20:03:20 +00:00
#ifndef FEATHER_TXPROOFDIALOG_H
#define FEATHER_TXPROOFDIALOG_H
#include <QDialog>
2021-10-22 17:19:56 +00:00
#include "components.h"
#include "libwalletqt/Wallet.h"
#include "rows/TransactionRow.h"
2021-03-08 20:03:20 +00:00
namespace Ui {
class TxProofDialog;
}
2021-10-22 17:19:56 +00:00
class TxProofDialog : public WindowModalDialog
2021-03-08 20:03:20 +00:00
{
Q_OBJECT
public:
explicit TxProofDialog(QWidget *parent, Wallet *wallet, TransactionRow *txid);
2021-03-08 20:03:20 +00:00
~TxProofDialog() override;
void setTxId(const QString &txid);
2021-07-02 17:35:21 +00:00
void getTxKey();
2021-03-08 20:03:20 +00:00
private slots:
void selectSpendProof();
void selectOutProof();
void selectInProof();
void selectTxProof();
private:
enum Mode {
SpendProof = 0,
OutProof,
InProof
};
void getFormattedProof();
void getSignature();
TxProof getProof();
void resetFrames();
void toggleButtons(bool enabled);
void showWarning(const QString &message);
2021-06-27 14:43:14 +00:00
QScopedPointer<Ui::TxProofDialog> ui;
Wallet *m_wallet;
2021-06-27 14:43:14 +00:00
2021-03-08 20:03:20 +00:00
QStringList m_OutDestinations;
QStringList m_InDestinations;
QString m_txid;
QString m_txKey;
Mode m_mode;
TransactionRow::Direction m_direction;
2021-03-08 20:03:20 +00:00
};
#endif //FEATHER_TXPROOFDIALOG_H