Changeset View
Changeset View
Standalone View
Standalone View
src/qt/walletmodel.h
Show First 20 Lines • Show All 138 Lines • ▼ Show 20 Lines | enum EncryptionStatus { | ||||
Unlocked | Unlocked | ||||
}; | }; | ||||
OptionsModel *getOptionsModel(); | OptionsModel *getOptionsModel(); | ||||
AddressTableModel *getAddressTableModel(); | AddressTableModel *getAddressTableModel(); | ||||
TransactionTableModel *getTransactionTableModel(); | TransactionTableModel *getTransactionTableModel(); | ||||
RecentRequestsTableModel *getRecentRequestsTableModel(); | RecentRequestsTableModel *getRecentRequestsTableModel(); | ||||
CWallet *getWallet() const { return wallet; }; | |||||
Amount getBalance(const CCoinControl *coinControl = nullptr) const; | Amount getBalance(const CCoinControl *coinControl = nullptr) const; | ||||
Amount getUnconfirmedBalance() const; | Amount getUnconfirmedBalance() const; | ||||
Amount getImmatureBalance() const; | Amount getImmatureBalance() const; | ||||
bool haveWatchOnly() const; | bool haveWatchOnly() const; | ||||
Amount getWatchBalance() const; | Amount getWatchBalance() const; | ||||
Amount getWatchUnconfirmedBalance() const; | Amount getWatchUnconfirmedBalance() const; | ||||
Amount getWatchImmatureBalance() const; | Amount getWatchImmatureBalance() const; | ||||
EncryptionStatus getEncryptionStatus() const; | EncryptionStatus getEncryptionStatus() const; | ||||
▲ Show 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | public: | ||||
static bool isWalletEnabled(); | static bool isWalletEnabled(); | ||||
bool hdEnabled() const; | bool hdEnabled() const; | ||||
int getDefaultConfirmTarget() const; | int getDefaultConfirmTarget() const; | ||||
const CChainParams &getChainParams() const; | const CChainParams &getChainParams() const; | ||||
QString getWalletName() const; | |||||
static bool isMultiwallet(); | |||||
private: | private: | ||||
CWallet *wallet; | CWallet *wallet; | ||||
bool fHaveWatchOnly; | bool fHaveWatchOnly; | ||||
bool fForceCheckBalanceChanged; | bool fForceCheckBalanceChanged; | ||||
// Wallet has an options model for wallet-specific options (transaction fee, | // Wallet has an options model for wallet-specific options (transaction fee, | ||||
// for example) | // for example) | ||||
OptionsModel *optionsModel; | OptionsModel *optionsModel; | ||||
Show All 22 Lines | Q_SIGNALS: | ||||
// Signal that balance in wallet changed | // Signal that balance in wallet changed | ||||
void balanceChanged(const Amount balance, const Amount unconfirmedBalance, | void balanceChanged(const Amount balance, const Amount unconfirmedBalance, | ||||
const Amount immatureBalance, | const Amount immatureBalance, | ||||
const Amount watchOnlyBalance, | const Amount watchOnlyBalance, | ||||
const Amount watchUnconfBalance, | const Amount watchUnconfBalance, | ||||
const Amount watchImmatureBalance); | const Amount watchImmatureBalance); | ||||
// Encryption status of wallet changed | // Encryption status of wallet changed | ||||
void encryptionStatusChanged(int status); | void encryptionStatusChanged(); | ||||
// Signal emitted when wallet needs to be unlocked | // Signal emitted when wallet needs to be unlocked | ||||
// It is valid behaviour for listeners to keep the wallet locked after this | // It is valid behaviour for listeners to keep the wallet locked after this | ||||
// signal; this means that the unlocking failed or was cancelled. | // signal; this means that the unlocking failed or was cancelled. | ||||
void requireUnlock(); | void requireUnlock(); | ||||
// Fired when a message should be reported to the user | // Fired when a message should be reported to the user | ||||
void message(const QString &title, const QString &message, | void message(const QString &title, const QString &message, | ||||
Show All 30 Lines |