Changeset View
Changeset View
Standalone View
Standalone View
src/qt/transactionrecord.h
Show First 20 Lines • Show All 101 Lines • ▼ Show 20 Lines | TransactionRecord() | ||||
: hash(), time(0), type(Other), address(""), debit(0), credit(0), | : hash(), time(0), type(Other), address(""), debit(0), credit(0), | ||||
idx(0) {} | idx(0) {} | ||||
TransactionRecord(uint256 _hash, qint64 _time) | TransactionRecord(uint256 _hash, qint64 _time) | ||||
: hash(_hash), time(_time), type(Other), address(""), debit(0), | : hash(_hash), time(_time), type(Other), address(""), debit(0), | ||||
credit(0), idx(0) {} | credit(0), idx(0) {} | ||||
TransactionRecord(uint256 _hash, qint64 _time, Type _type, | TransactionRecord(uint256 _hash, qint64 _time, Type _type, | ||||
const std::string &_address, const CAmount &_debit, | const std::string &_address, const Amount _debit, | ||||
const CAmount &_credit) | const Amount _credit) | ||||
: hash(_hash), time(_time), type(_type), address(_address), | : hash(_hash), time(_time), type(_type), address(_address), | ||||
debit(_debit), credit(_credit), idx(0) {} | debit(_debit), credit(_credit), idx(0) {} | ||||
/** Decompose CWallet transaction to model transaction records. | /** Decompose CWallet transaction to model transaction records. | ||||
*/ | */ | ||||
static bool showTransaction(const CWalletTx &wtx); | static bool showTransaction(const CWalletTx &wtx); | ||||
static QList<TransactionRecord> decomposeTransaction(const CWallet *wallet, | static QList<TransactionRecord> decomposeTransaction(const CWallet *wallet, | ||||
const CWalletTx &wtx); | const CWalletTx &wtx); | ||||
/** @name Immutable transaction attributes | /** @name Immutable transaction attributes | ||||
@{*/ | @{*/ | ||||
uint256 hash; | uint256 hash; | ||||
qint64 time; | qint64 time; | ||||
Type type; | Type type; | ||||
std::string address; | std::string address; | ||||
CAmount debit; | Amount debit; | ||||
CAmount credit; | Amount credit; | ||||
/**@}*/ | /**@}*/ | ||||
/** Subtransaction index, for sort key */ | /** Subtransaction index, for sort key */ | ||||
int idx; | int idx; | ||||
/** Status: can change with block chain update */ | /** Status: can change with block chain update */ | ||||
TransactionStatus status; | TransactionStatus status; | ||||
Show All 19 Lines |