Fabcoin Core  0.16.2
P2P Digital Currency
walletmodeltransaction.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2014 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 FABCOIN_QT_WALLETMODELTRANSACTION_H
6 #define FABCOIN_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 
20 {
21 public:
22  explicit WalletModelTransaction(const QList<SendCoinsRecipient> &recipients);
24 
25  QList<SendCoinsRecipient> getRecipients();
26 
28  unsigned int getTransactionSize();
29 
30  void setTransactionFee(const CAmount& newFee);
32 
34 
35  void newPossibleKeyChange(CWallet *wallet);
37 
38  void reassignAmounts(int nChangePosRet); // needed for the subtract-fee-from-amount feature
39 
40 private:
41  QList<SendCoinsRecipient> recipients;
45 };
46 
47 #endif // FABCOIN_QT_WALLETMODELTRANSACTION_H
void newPossibleKeyChange(CWallet *wallet)
void setTransactionFee(const CAmount &newFee)
int64_t CAmount
Amount in lius (Can be negative)
Definition: amount.h:15
WalletModelTransaction(const QList< SendCoinsRecipient > &recipients)
QList< SendCoinsRecipient > getRecipients()
void reassignAmounts(int nChangePosRet)
A transaction with a bunch of additional info that only the owner cares about.
Definition: wallet.h:287
A key allocated from the key pool.
Definition: wallet.h:1209
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances...
Definition: wallet.h:672
Data model for a walletmodel transaction.
QList< SendCoinsRecipient > recipients