![]() |
Anoncoin
0.9.4
P2P Digital Currency
|
UI model for a transaction. More...
#include <transactionrecord.h>
Public Types | |
enum | Type { Other, Generated, SendToAddress, SendToOther, RecvWithAddress, RecvFromOther, SendToSelf } |
Public Member Functions | |
TransactionRecord () | |
TransactionRecord (uint256 hash, qint64 time) | |
TransactionRecord (uint256 hash, qint64 time, Type type, const std::string &address, qint64 debit, qint64 credit) | |
QString | getTxID () const |
Return the unique identifier for this transaction (part) More... | |
void | updateStatus (const CWalletTx &wtx) |
Update status from core wallet tx. More... | |
bool | statusUpdateNeeded () |
Return whether a status update is needed. More... | |
Static Public Member Functions | |
static bool | showTransaction (const CWalletTx &wtx) |
Decompose CWallet transaction to model transaction records. More... | |
static QList< TransactionRecord > | decomposeTransaction (const CWallet *wallet, const CWalletTx &wtx) |
static QString | formatSubTxId (const uint256 &hash, int vout) |
Format subtransaction id. More... | |
Public Attributes | |
int | idx |
Subtransaction index, for sort key. More... | |
TransactionStatus | status |
Status: can change with block chain update. More... | |
bool | involvesWatchAddress |
Whether the transaction was sent/received with a watch-only address. More... | |
Immutable transaction attributes | |
uint256 | hash |
qint64 | time |
Type | type |
std::string | address |
qint64 | debit |
qint64 | credit |
Static Public Attributes | |
static const int | RecommendedNumConfirmations = 6 |
Number of confirmation recommended for accepting a transaction. More... | |
UI model for a transaction.
A core transaction can be represented by multiple UI transactions if it has multiple outputs.
Definition at line 68 of file transactionrecord.h.
Enumerator | |
---|---|
Other | |
Generated | |
SendToAddress | |
SendToOther | |
RecvWithAddress | |
RecvFromOther | |
SendToSelf |
Definition at line 71 of file transactionrecord.h.
|
inline |
|
inline |
Definition at line 90 of file transactionrecord.h.
|
inline |
Definition at line 96 of file transactionrecord.h.
|
static |
Definition at line 31 of file transactionrecord.cpp.
|
static |
Format subtransaction id.
Definition at line 262 of file transactionrecord.cpp.
QString TransactionRecord::getTxID | ( | ) | const |
Return the unique identifier for this transaction (part)
Definition at line 257 of file transactionrecord.cpp.
|
static |
Decompose CWallet transaction to model transaction records.
Definition at line 15 of file transactionrecord.cpp.
bool TransactionRecord::statusUpdateNeeded | ( | ) |
Return whether a status update is needed.
Definition at line 251 of file transactionrecord.cpp.
void TransactionRecord::updateStatus | ( | const CWalletTx & | wtx | ) |
Update status from core wallet tx.
Definition at line 166 of file transactionrecord.cpp.
std::string TransactionRecord::address |
Definition at line 114 of file transactionrecord.h.
qint64 TransactionRecord::credit |
Definition at line 116 of file transactionrecord.h.
qint64 TransactionRecord::debit |
Definition at line 115 of file transactionrecord.h.
uint256 TransactionRecord::hash |
Definition at line 111 of file transactionrecord.h.
int TransactionRecord::idx |
Subtransaction index, for sort key.
Definition at line 120 of file transactionrecord.h.
bool TransactionRecord::involvesWatchAddress |
Whether the transaction was sent/received with a watch-only address.
Definition at line 126 of file transactionrecord.h.
|
static |
Number of confirmation recommended for accepting a transaction.
Definition at line 83 of file transactionrecord.h.
TransactionStatus TransactionRecord::status |
Status: can change with block chain update.
Definition at line 123 of file transactionrecord.h.
qint64 TransactionRecord::time |
Definition at line 112 of file transactionrecord.h.
Type TransactionRecord::type |
Definition at line 113 of file transactionrecord.h.