Bitcoin Core  0.18.99
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
WalletModelTransaction Class Reference

Data model for a walletmodel transaction. More...

#include <walletmodeltransaction.h>

Public Member Functions

 WalletModelTransaction (const QList< SendCoinsRecipient > &recipients)
 
QList< SendCoinsRecipientgetRecipients () const
 
std::unique_ptr< interfaces::PendingWalletTx > & getWtx ()
 
unsigned int getTransactionSize ()
 
void setTransactionFee (const CAmount &newFee)
 
CAmount getTransactionFee () const
 
CAmount getTotalTransactionAmount () const
 
void reassignAmounts (int nChangePosRet)
 

Private Attributes

QList< SendCoinsRecipientrecipients
 
std::unique_ptr< interfaces::PendingWalletTxwtx
 
CAmount fee
 

Detailed Description

Data model for a walletmodel transaction.

Definition at line 23 of file walletmodeltransaction.h.

Constructor & Destructor Documentation

◆ WalletModelTransaction()

WalletModelTransaction::WalletModelTransaction ( const QList< SendCoinsRecipient > &  recipients)
explicit

Definition at line 14 of file walletmodeltransaction.cpp.

Member Function Documentation

◆ getRecipients()

QList< SendCoinsRecipient > WalletModelTransaction::getRecipients ( ) const

Definition at line 20 of file walletmodeltransaction.cpp.

Here is the caller graph for this function:

◆ getTotalTransactionAmount()

CAmount WalletModelTransaction::getTotalTransactionAmount ( ) const

Definition at line 80 of file walletmodeltransaction.cpp.

◆ getTransactionFee()

CAmount WalletModelTransaction::getTransactionFee ( ) const

Definition at line 35 of file walletmodeltransaction.cpp.

◆ getTransactionSize()

unsigned int WalletModelTransaction::getTransactionSize ( )

Definition at line 30 of file walletmodeltransaction.cpp.

Here is the call graph for this function:

◆ getWtx()

std::unique_ptr< interfaces::PendingWalletTx > & WalletModelTransaction::getWtx ( )

Definition at line 25 of file walletmodeltransaction.cpp.

Here is the caller graph for this function:

◆ reassignAmounts()

void WalletModelTransaction::reassignAmounts ( int  nChangePosRet)

Definition at line 45 of file walletmodeltransaction.cpp.

Here is the caller graph for this function:

◆ setTransactionFee()

void WalletModelTransaction::setTransactionFee ( const CAmount newFee)

Definition at line 40 of file walletmodeltransaction.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ fee

CAmount WalletModelTransaction::fee
private

Definition at line 43 of file walletmodeltransaction.h.

◆ recipients

QList<SendCoinsRecipient> WalletModelTransaction::recipients
private

Definition at line 41 of file walletmodeltransaction.h.

◆ wtx

std::unique_ptr<interfaces::PendingWalletTx> WalletModelTransaction::wtx
private

Definition at line 42 of file walletmodeltransaction.h.


The documentation for this class was generated from the following files: