2013-11-04 16:20:43 +01:00
|
|
|
// Copyright (c) 2011-2013 The Bitcoin developers
|
|
|
|
// Distributed under the MIT/X11 software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
2014-11-03 16:16:40 +01:00
|
|
|
#ifndef BITCOIN_QT_SIGNVERIFYMESSAGEDIALOG_H
|
|
|
|
#define BITCOIN_QT_SIGNVERIFYMESSAGEDIALOG_H
|
2012-06-15 09:48:26 +02:00
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
2013-04-13 07:13:08 +02:00
|
|
|
class WalletModel;
|
|
|
|
|
2012-06-15 09:48:26 +02:00
|
|
|
namespace Ui {
|
|
|
|
class SignVerifyMessageDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class SignVerifyMessageDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2013-11-14 19:47:45 +01:00
|
|
|
explicit SignVerifyMessageDialog(QWidget *parent);
|
2012-06-15 09:48:26 +02:00
|
|
|
~SignVerifyMessageDialog();
|
|
|
|
|
|
|
|
void setModel(WalletModel *model);
|
2013-01-10 14:04:32 +01:00
|
|
|
void setAddress_SM(const QString &address);
|
|
|
|
void setAddress_VM(const QString &address);
|
2012-06-15 09:48:26 +02:00
|
|
|
|
|
|
|
void showTab_SM(bool fShow);
|
|
|
|
void showTab_VM(bool fShow);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
bool eventFilter(QObject *object, QEvent *event);
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::SignVerifyMessageDialog *ui;
|
|
|
|
WalletModel *model;
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
/* sign message */
|
|
|
|
void on_addressBookButton_SM_clicked();
|
|
|
|
void on_pasteButton_SM_clicked();
|
|
|
|
void on_signMessageButton_SM_clicked();
|
|
|
|
void on_copySignatureButton_SM_clicked();
|
|
|
|
void on_clearButton_SM_clicked();
|
|
|
|
/* verify message */
|
|
|
|
void on_addressBookButton_VM_clicked();
|
|
|
|
void on_verifyMessageButton_VM_clicked();
|
|
|
|
void on_clearButton_VM_clicked();
|
|
|
|
};
|
|
|
|
|
2014-11-03 16:16:40 +01:00
|
|
|
#endif // BITCOIN_QT_SIGNVERIFYMESSAGEDIALOG_H
|