Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

WalletModelTransaction Class Reference

Data model for a walletmodel transaction. More...

#include <walletmodeltransaction.h>

+ Collaboration diagram for WalletModelTransaction:

Public Member Functions

 WalletModelTransaction (const QList< SendCoinsRecipient > &recipients)
 
 ~WalletModelTransaction ()
 
QList< SendCoinsRecipientgetRecipients () const
 
CWalletTxgetTransaction () const
 
unsigned int getTransactionSize ()
 
void setTransactionFee (const CAmount &newFee)
 
CAmount getTransactionFee () const
 
CAmount getTotalTransactionAmount () const
 
void newPossibleKeyChange (CWallet *wallet)
 
CReserveKeygetPossibleKeyChange ()
 
void reassignAmounts ()
 

Private Attributes

QList< SendCoinsRecipientrecipients
 
CWalletTxwalletTransaction
 
std::unique_ptr< CReserveKeykeyChange
 
CAmount fee
 

Detailed Description

Data model for a walletmodel transaction.

Definition at line 21 of file walletmodeltransaction.h.

Constructor & Destructor Documentation

◆ WalletModelTransaction()

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

Definition at line 9 of file walletmodeltransaction.cpp.

References walletTransaction.

◆ ~WalletModelTransaction()

WalletModelTransaction::~WalletModelTransaction ( )

Definition at line 17 of file walletmodeltransaction.cpp.

References walletTransaction.

Member Function Documentation

◆ getPossibleKeyChange()

CReserveKey * WalletModelTransaction::getPossibleKeyChange ( )

Definition at line 101 of file walletmodeltransaction.cpp.

References keyChange.

Referenced by WalletModel::prepareTransaction(), and WalletModel::sendCoins().

◆ getRecipients()

QList< SendCoinsRecipient > WalletModelTransaction::getRecipients ( ) const

◆ getTotalTransactionAmount()

CAmount WalletModelTransaction::getTotalTransactionAmount ( ) const

Definition at line 86 of file walletmodeltransaction.cpp.

References recipients.

Referenced by SendCoinsDialog::send().

◆ getTransaction()

CWalletTx * WalletModelTransaction::getTransaction ( ) const

◆ getTransactionFee()

CAmount WalletModelTransaction::getTransactionFee ( ) const

Definition at line 37 of file walletmodeltransaction.cpp.

References fee.

Referenced by SendCoinsDialog::send().

◆ getTransactionSize()

unsigned int WalletModelTransaction::getTransactionSize ( )

◆ newPossibleKeyChange()

void WalletModelTransaction::newPossibleKeyChange ( CWallet wallet)

Definition at line 96 of file walletmodeltransaction.cpp.

References keyChange.

Referenced by WalletModel::prepareTransaction().

◆ reassignAmounts()

◆ setTransactionFee()

void WalletModelTransaction::setTransactionFee ( const CAmount newFee)

Definition at line 42 of file walletmodeltransaction.cpp.

References fee.

Referenced by WalletModel::prepareTransaction().

Member Data Documentation

◆ fee

CAmount WalletModelTransaction::fee
private

Definition at line 46 of file walletmodeltransaction.h.

Referenced by getTransactionFee(), and setTransactionFee().

◆ keyChange

std::unique_ptr<CReserveKey> WalletModelTransaction::keyChange
private

Definition at line 45 of file walletmodeltransaction.h.

Referenced by getPossibleKeyChange(), and newPossibleKeyChange().

◆ recipients

QList<SendCoinsRecipient> WalletModelTransaction::recipients
private

◆ walletTransaction

CWalletTx* WalletModelTransaction::walletTransaction
private

The documentation for this class was generated from the following files:
Released under the MIT license