diff options
author | Jonas Schnelli <jonas.schnelli@include7.ch> | 2013-08-30 20:04:48 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2013-08-31 12:41:47 +0200 |
commit | 9e8904f6aeb6e98b4781fcf408b0a2bee550051d (patch) | |
tree | 233f2785fa70fcc5f3d7d0661281d7c1d98fe2d0 /src/qt/walletmodeltransaction.h | |
parent | 329de9bb64755fa6fd798a02df0fa6a494864c43 (diff) |
qt: Display txfee in first sendCoinsDialog message box
Signed-off-by: Jonas Schnelli <jonas.schnelli@include7.ch>
Diffstat (limited to 'src/qt/walletmodeltransaction.h')
-rw-r--r-- | src/qt/walletmodeltransaction.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/qt/walletmodeltransaction.h b/src/qt/walletmodeltransaction.h new file mode 100644 index 0000000000..c4848fb12d --- /dev/null +++ b/src/qt/walletmodeltransaction.h @@ -0,0 +1,37 @@ +#ifndef WALLETMODELTRANSACTION_H +#define WALLETMODELTRANSACTION_H + +#include "walletmodel.h" + +class SendCoinsRecipient; + +/** Data model for a walletmodel transaction. */ +class WalletModelTransaction +{ +public: + explicit WalletModelTransaction(const QList<SendCoinsRecipient> &recipients); + ~WalletModelTransaction(); + + QList<SendCoinsRecipient> getRecipients(); + + CWalletTx *getTransaction(); + + void setTransactionFee(qint64 newFee); + qint64 getTransactionFee(); + + qint64 getTotalTransactionAmount(); + + void newPossibleKeyChange(CWallet *wallet); + CReserveKey *getPossibleKeyChange(); + +private: + const QList<SendCoinsRecipient> recipients; + CWalletTx *walletTransaction; + CReserveKey *keyChange; + qint64 fee; + +public slots: + +}; + +#endif // WALLETMODELTRANSACTION_H |