Changeset View
Changeset View
Standalone View
Standalone View
src/qt/walletmodel.h
Show First 20 Lines • Show All 265 Lines • ▼ Show 20 Lines | private: | ||||
TransactionTableModel *transactionTableModel; | TransactionTableModel *transactionTableModel; | ||||
RecentRequestsTableModel *recentRequestsTableModel; | RecentRequestsTableModel *recentRequestsTableModel; | ||||
// Cache some values to be able to detect changes | // Cache some values to be able to detect changes | ||||
interfaces::WalletBalances m_cached_balances; | interfaces::WalletBalances m_cached_balances; | ||||
EncryptionStatus cachedEncryptionStatus; | EncryptionStatus cachedEncryptionStatus; | ||||
int cachedNumBlocks; | int cachedNumBlocks; | ||||
QTimer *pollTimer; | |||||
void subscribeToCoreSignals(); | void subscribeToCoreSignals(); | ||||
void unsubscribeFromCoreSignals(); | void unsubscribeFromCoreSignals(); | ||||
void checkBalanceChanged(const interfaces::WalletBalances &new_balances); | void checkBalanceChanged(const interfaces::WalletBalances &new_balances); | ||||
Q_SIGNALS: | Q_SIGNALS: | ||||
// Signal that balance in wallet changed | // Signal that balance in wallet changed | ||||
void balanceChanged(const interfaces::WalletBalances &balances); | void balanceChanged(const interfaces::WalletBalances &balances); | ||||
Show All 21 Lines | Q_SIGNALS: | ||||
// Signal that wallet is about to be removed | // Signal that wallet is about to be removed | ||||
void unload(); | void unload(); | ||||
// Notify that there are now keys in the keypool | // Notify that there are now keys in the keypool | ||||
void canGetAddressesChanged(); | void canGetAddressesChanged(); | ||||
public Q_SLOTS: | public Q_SLOTS: | ||||
/** Wallet status might have changed. */ | /* Starts a timer to periodically update the balance */ | ||||
void startPollBalance(); | |||||
/* Wallet status might have changed */ | |||||
void updateStatus(); | void updateStatus(); | ||||
/** New transaction, or transaction changed status. */ | /** New transaction, or transaction changed status. */ | ||||
void updateTransaction(); | void updateTransaction(); | ||||
/** New, updated or removed address book entry. */ | /** New, updated or removed address book entry. */ | ||||
void updateAddressBook(const QString &address, const QString &label, | void updateAddressBook(const QString &address, const QString &label, | ||||
bool isMine, const QString &purpose, int status); | bool isMine, const QString &purpose, int status); | ||||
/** Watch-only added. */ | /** Watch-only added. */ | ||||
void updateWatchOnlyFlag(bool fHaveWatchonly); | void updateWatchOnlyFlag(bool fHaveWatchonly); | ||||
/** | /** | ||||
* Current, immature or unconfirmed balance might have changed - emit | * Current, immature or unconfirmed balance might have changed - emit | ||||
* 'balanceChanged' if so. | * 'balanceChanged' if so. | ||||
*/ | */ | ||||
void pollBalanceChanged(); | void pollBalanceChanged(); | ||||
}; | }; | ||||
#endif // BITCOIN_QT_WALLETMODEL_H | #endif // BITCOIN_QT_WALLETMODEL_H |