Dogecoin Core  1.14.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 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 
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 // BITCOIN_QT_WALLETMODELTRANSACTION_H
int64_t CAmount
Amount in satoshis (Can be negative)
Definition: amount.h:15
A key allocated from the key pool.
Definition: wallet.h:928
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances,...
Definition: wallet.h:493
A transaction with a bunch of additional info that only the owner cares about.
Definition: wallet.h:177
Data model for a walletmodel transaction.
void setTransactionFee(const CAmount &newFee)
void reassignAmounts(int nChangePosRet)
QList< SendCoinsRecipient > getRecipients()
QList< SendCoinsRecipient > recipients
WalletModelTransaction(const QList< SendCoinsRecipient > &recipients)
void newPossibleKeyChange(CWallet *wallet)