Changeset View
Changeset View
Standalone View
Standalone View
src/qt/walletmodeltransaction.h
Show All 16 Lines | |||||
/** Data model for a walletmodel transaction. */ | /** Data model for a walletmodel transaction. */ | ||||
class WalletModelTransaction { | class WalletModelTransaction { | ||||
public: | public: | ||||
explicit WalletModelTransaction( | explicit WalletModelTransaction( | ||||
const QList<SendCoinsRecipient> &recipients); | const QList<SendCoinsRecipient> &recipients); | ||||
~WalletModelTransaction(); | ~WalletModelTransaction(); | ||||
QList<SendCoinsRecipient> getRecipients(); | QList<SendCoinsRecipient> getRecipients() const; | ||||
CWalletTx *getTransaction(); | CWalletTx *getTransaction() const; | ||||
unsigned int getTransactionSize(); | unsigned int getTransactionSize(); | ||||
void setTransactionFee(const Amount newFee); | void setTransactionFee(const Amount newFee); | ||||
Amount getTransactionFee(); | Amount getTransactionFee() const; | ||||
Amount getTotalTransactionAmount(); | Amount getTotalTransactionAmount() const; | ||||
void newPossibleKeyChange(CWallet *wallet); | void newPossibleKeyChange(CWallet *wallet); | ||||
CReserveKey *getPossibleKeyChange(); | CReserveKey *getPossibleKeyChange(); | ||||
// needed for the subtract-fee-from-amount feature | // needed for the subtract-fee-from-amount feature | ||||
void reassignAmounts(int nChangePosRet); | void reassignAmounts(int nChangePosRet); | ||||
private: | private: | ||||
QList<SendCoinsRecipient> recipients; | QList<SendCoinsRecipient> recipients; | ||||
CWalletTx *walletTransaction; | CWalletTx *walletTransaction; | ||||
CReserveKey *keyChange; | CReserveKey *keyChange; | ||||
Amount fee; | Amount fee; | ||||
}; | }; | ||||
#endif // BITCOIN_QT_WALLETMODELTRANSACTION_H | #endif // BITCOIN_QT_WALLETMODELTRANSACTION_H |