feather/src/dialog/TxProofDialog.h

57 lines
1.2 KiB
C
Raw Normal View History

2021-03-08 20:03:20 +00:00
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2020-2021, The Monero Project.
#ifndef FEATHER_TXPROOFDIALOG_H
#define FEATHER_TXPROOFDIALOG_H
#include <QDialog>
2021-05-18 15:59:18 +00:00
#include "appcontext.h"
2021-06-27 14:33:18 +00:00
#include "libwalletqt/TransactionInfo.h"
2021-03-08 20:03:20 +00:00
namespace Ui {
class TxProofDialog;
}
class TxProofDialog : public QDialog
{
Q_OBJECT
public:
2021-05-18 15:59:18 +00:00
explicit TxProofDialog(QWidget *parent, QSharedPointer<AppContext> ctx, TransactionInfo *txid);
2021-03-08 20:03:20 +00:00
~TxProofDialog() override;
void setTxId(const QString &txid);
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;
QSharedPointer<AppContext> m_ctx;
2021-03-08 20:03:20 +00:00
QStringList m_OutDestinations;
QStringList m_InDestinations;
QString m_txid;
QString m_txKey;
Mode m_mode;
TransactionInfo::Direction m_direction;
};
#endif //FEATHER_TXPROOFDIALOG_H