X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fqt%2Fwalletmodel.h;h=f00ce70225b3d43c07dc26247fdeffa3b2f6e52b;hb=48564f02c4769f26295bedfc04b796246ad0d0bc;hp=caeeb97d12ffcd2882572391498a06ae4d5423d2;hpb=91c0b9419a644cb6f72d05711fcfec5aeb348f3f;p=novacoin.git diff --git a/src/qt/walletmodel.h b/src/qt/walletmodel.h index caeeb97..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; @@ -102,8 +103,8 @@ public: bool dumpWallet(const QString &filename); bool importWallet(const QString &filename); - void getStakeWeight(quint64& nMinWeight, quint64& nMaxWeight, quint64& nWeight); - void getStakeWeightFromValue(const qint64& nTime, const qint64& nValue, quint64& nWeight); + void getStakeStats(float &nKernelsRate, float &nCoinDaysRate); + void getStakeWeightFromValue(const int64_t& nTime, const int64_t& nValue, uint64_t& nWeight); // RAI object for unlocking wallet, returned by requestUnlock() class UnlockContext @@ -134,9 +135,12 @@ public: void lockCoin(COutPoint& output); void unlockCoin(COutPoint& output); void listLockedCoins(std::vector& vOutpts); + void clearOrphans(); + CWallet* getWallet(); private: CWallet *wallet; + bool fHaveWatchOnly; // Wallet has an options model for wallet-specific options // (transaction fee, for example) @@ -161,7 +165,6 @@ private: void unsubscribeFromCoreSignals(); void checkBalanceChanged(); - public slots: /* Wallet status might have changed */ void updateStatus(); @@ -169,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(); @@ -189,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); };