X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fqt%2Fwalletmodel.h;h=f00ce70225b3d43c07dc26247fdeffa3b2f6e52b;hp=99648d1f62277b7a182c35a9fe0aacf3305d86d3;hb=48564f02c4769f26295bedfc04b796246ad0d0bc;hpb=e1b880f73f13657d82309aa550697336dfcb7ec9 diff --git a/src/qt/walletmodel.h b/src/qt/walletmodel.h index 99648d1..f00ce70 100644 --- a/src/qt/walletmodel.h +++ b/src/qt/walletmodel.h @@ -65,6 +65,7 @@ public: MintingTableModel *getMintingTableModel(); TransactionTableModel *getTransactionTableModel(); + bool haveWatchOnly() const; qint64 getBalance() const; qint64 getBalanceWatchOnly() const; qint64 getStake() const; @@ -139,6 +140,7 @@ public: private: CWallet *wallet; + bool fHaveWatchOnly; // Wallet has an options model for wallet-specific options // (transaction fee, for example) @@ -163,7 +165,6 @@ private: void unsubscribeFromCoreSignals(); void checkBalanceChanged(); - public slots: /* Wallet status might have changed */ void updateStatus(); @@ -171,6 +172,8 @@ public slots: void updateTransaction(const QString &hash, int status); /* New, updated or removed address book entry */ void updateAddressBook(const QString &address, const QString &label, bool isMine, int status); + /* Watchonly added */ + void updateWatchOnlyFlag(bool fHaveWatchonly); /* Current, immature or unconfirmed balance might have changed - emit 'balanceChanged' if so */ void pollBalanceChanged(); @@ -191,6 +194,9 @@ signals: // Asynchronous error notification void error(const QString &title, const QString &message, bool modal); + + // Watch-only address added + void notifyWatchonlyChanged(bool fHaveWatchonly); };