mirror of
https://git.wownero.com/wowlet/wowlet.git
synced 2024-08-15 01:03:14 +00:00
5a08bc353e
- connecting to nodes is much faster and more reliable now - reduced the amount of spaghetti in libwalletqt and greatly simplified the logic in nodes.cpp - Settings -> Node dialog should feel slightly more responsive - during synchronization the status bar will now display the amount of data downloaded - fixed some edge cases that could cause unreasonably long hangs - Help -> Debug Info screen now auto-updates every 5 seconds - Don't use SSL over Tor
44 lines
1.3 KiB
C++
44 lines
1.3 KiB
C++
// SPDX-License-Identifier: BSD-3-Clause
|
|
// Copyright (c) 2014-2020, The Monero Project.
|
|
|
|
#ifndef MONERO_GUI_WALLETLISTENERIMPL_H
|
|
#define MONERO_GUI_WALLETLISTENERIMPL_H
|
|
|
|
#include "wallet/api/wallet2_api.h"
|
|
#include "PassphraseHelper.h"
|
|
|
|
class Wallet;
|
|
|
|
class WalletListenerImpl : public Monero::WalletListener, public PassphraseReceiver
|
|
{
|
|
public:
|
|
WalletListenerImpl(Wallet * w);
|
|
|
|
virtual void moneySpent(const std::string &txId, uint64_t amount) override;
|
|
|
|
virtual void moneyReceived(const std::string &txId, uint64_t amount) override;
|
|
|
|
virtual void unconfirmedMoneyReceived(const std::string &txId, uint64_t amount) override;
|
|
|
|
virtual void newBlock(uint64_t height) override;
|
|
|
|
virtual void updated() override;
|
|
|
|
// called when wallet refreshed by background thread or explicitly
|
|
virtual void refreshed(bool success) override;
|
|
|
|
virtual void onDeviceButtonRequest(uint64_t code) override;
|
|
|
|
virtual void onDeviceButtonPressed() override;
|
|
|
|
virtual void onPassphraseEntered(const QString &passphrase, bool enter_on_device, bool entry_abort) override;
|
|
|
|
virtual Monero::optional<std::string> onDevicePassphraseRequest(bool & on_device) override;
|
|
|
|
private:
|
|
Wallet * m_wallet;
|
|
PassphraseHelper m_phelper;
|
|
};
|
|
|
|
#endif //MONERO_GUI_WALLETLISTENERIMPL_H
|