]> Git Repo - VerusCoin.git/blob - src/qt/walletmodeltransaction.h
Remove translation for -help-debug options
[VerusCoin.git] / src / qt / walletmodeltransaction.h
1 // Copyright (c) 2011-2013 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5 #ifndef BITCOIN_QT_WALLETMODELTRANSACTION_H
6 #define BITCOIN_QT_WALLETMODELTRANSACTION_H
7
8 #include "walletmodel.h"
9
10 #include <QObject>
11
12 class SendCoinsRecipient;
13
14 class CReserveKey;
15 class CWallet;
16 class CWalletTx;
17
18 /** Data model for a walletmodel transaction. */
19 class WalletModelTransaction
20 {
21 public:
22     explicit WalletModelTransaction(const QList<SendCoinsRecipient> &recipients);
23     ~WalletModelTransaction();
24
25     QList<SendCoinsRecipient> getRecipients();
26
27     CWalletTx *getTransaction();
28     unsigned int getTransactionSize();
29
30     void setTransactionFee(const CAmount& newFee);
31     CAmount getTransactionFee();
32
33     CAmount getTotalTransactionAmount();
34
35     void newPossibleKeyChange(CWallet *wallet);
36     CReserveKey *getPossibleKeyChange();
37
38     void reassignAmounts(int nChangePosRet); // needed for the subtract-fee-from-amount feature
39
40 private:
41     QList<SendCoinsRecipient> recipients;
42     CWalletTx *walletTransaction;
43     CReserveKey *keyChange;
44     CAmount fee;
45 };
46
47 #endif // BITCOIN_QT_WALLETMODELTRANSACTION_H
This page took 0.026291 seconds and 4 git commands to generate.