Update CMakeLists.txt - play with openssl
[novacoin.git] / src / qt / multisiginputentry.h
1 #ifndef MULTISIGINPUTENTRY_H
2 #define MULTISIGINPUTENTRY_H
3
4 #include <QFrame>
5
6 #include "uint256.h"
7
8
9 class CTxIn;
10 class WalletModel;
11
12 namespace Ui
13 {
14     class MultisigInputEntry;
15 }
16
17 class MultisigInputEntry : public QFrame
18 {
19     Q_OBJECT;
20
21   public:
22     explicit MultisigInputEntry(QWidget *parent = 0);
23     ~MultisigInputEntry();
24     void setModel(WalletModel *model);
25     bool validate();
26     CTxIn getInput();
27     int64_t getAmount();
28     QString getRedeemScript();
29     void setTransactionId(QString transactionId);
30     void setTransactionOutputIndex(int index);
31
32   public slots:
33     void setRemoveEnabled(bool enabled);
34     void clear();
35
36   signals:
37     void removeEntry(MultisigInputEntry *entry);
38     void updateAmount();
39
40   private:
41     Ui::MultisigInputEntry *ui;
42     WalletModel *model;
43     uint256 txHash;
44
45   private slots:
46     void on_transactionId_textChanged(const QString &transactionId);
47     void on_pasteTransactionIdButton_clicked();
48     void on_deleteButton_clicked();
49     void on_transactionOutput_currentIndexChanged(int index);
50     void on_pasteRedeemScriptButton_clicked();
51 };
52
53 #endif // MULTISIGINPUTENTRY_H