diff options
author | Jaquee <jaquee.monero@gmail.com> | 2016-12-12 00:42:46 +0100 |
---|---|---|
committer | Jaquee <jaquee.monero@gmail.com> | 2016-12-12 00:43:02 +0100 |
commit | 5df92877c7c97ad24c4f61e38bc82beb875a7b42 (patch) | |
tree | 57d112b1cb05e3bd48bfd7154c91545c9f497287 /src/wallet/api/wallet.h | |
parent | Merge pull request #1422 (diff) | |
download | monero-5df92877c7c97ad24c4f61e38bc82beb875a7b42.tar.xz |
GUI address book
Diffstat (limited to 'src/wallet/api/wallet.h')
-rw-r--r-- | src/wallet/api/wallet.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wallet/api/wallet.h b/src/wallet/api/wallet.h index 5e4a64ff8..6fbb0da90 100644 --- a/src/wallet/api/wallet.h +++ b/src/wallet/api/wallet.h @@ -43,6 +43,7 @@ namespace Bitmonero { class TransactionHistoryImpl; class PendingTransactionImpl; +class AddressBookImpl; struct Wallet2CallbackImpl; class WalletImpl : public Wallet @@ -97,13 +98,13 @@ public: virtual void disposeTransaction(PendingTransaction * t); virtual TransactionHistory * history() const; + virtual AddressBook * addressBook() const; virtual void setListener(WalletListener * l); virtual uint32_t defaultMixin() const; virtual void setDefaultMixin(uint32_t arg); virtual bool setUserNote(const std::string &txid, const std::string ¬e); virtual std::string getUserNote(const std::string &txid) const; virtual std::string getTxKey(const std::string &txid) const; - virtual std::string signMessage(const std::string &message); virtual bool verifySignedMessage(const std::string &message, const std::string &address, const std::string &signature) const; @@ -121,6 +122,7 @@ private: friend class PendingTransactionImpl; friend class TransactionHistoryImpl; friend class Wallet2CallbackImpl; + friend class AddressBookImpl; tools::wallet2 * m_wallet; mutable std::atomic<int> m_status; @@ -130,6 +132,7 @@ private: bool m_trustedDaemon; WalletListener * m_walletListener; Wallet2CallbackImpl * m_wallet2Callback; + AddressBookImpl * m_addressBook; // multi-threaded refresh stuff std::atomic<bool> m_refreshEnabled; |