Monero
Loading...
Searching...
No Matches
Monero::WalletListener Struct Referenceabstract

#include <wallet2_api.h>

Inheritance diagram for Monero::WalletListener:

Public Member Functions

virtual ~WalletListener ()=0
virtual void moneySpent (const std::string &txId, uint64_t amount)=0
 moneySpent - called when money spent
virtual void moneyReceived (const std::string &txId, uint64_t amount)=0
 moneyReceived - called when money received
virtual void unconfirmedMoneyReceived (const std::string &txId, uint64_t amount)=0
 unconfirmedMoneyReceived - called when payment arrived in tx pool
virtual void newBlock (uint64_t height)=0
 newBlock - called when new block received
virtual void updated ()=0
 updated - generic callback, called when any event (sent/received/block reveived/etc) happened with the wallet;
virtual void refreshed ()=0
 refreshed - called when wallet refreshed by background thread or explicitly refreshed by calling "refresh" synchronously
virtual void onDeviceButtonRequest (uint64_t code)
 called by device if the action is required
virtual void onDeviceButtonPressed ()
 called by device if the button was pressed
virtual optional< std::string > onDevicePinRequest ()
 called by device when PIN is needed
virtual optional< std::string > onDevicePassphraseRequest (bool &on_device)
 called by device when passphrase entry is needed
virtual void onDeviceProgress (const DeviceProgress &event)
 Signalizes device operation progress.
virtual void onSetWallet (Wallet *wallet)
 If the listener is created before the wallet this enables to set created wallet object.

Constructor & Destructor Documentation

◆ ~WalletListener()

Monero::WalletListener::~WalletListener ( )
pure virtual

Member Function Documentation

◆ moneyReceived()

virtual void Monero::WalletListener::moneyReceived ( const std::string & txId,
uint64_t amount )
pure virtual

moneyReceived - called when money received

Parameters
txId- transaction id
amount- amount

◆ moneySpent()

virtual void Monero::WalletListener::moneySpent ( const std::string & txId,
uint64_t amount )
pure virtual

moneySpent - called when money spent

Parameters
txId- transaction id
amount- amount

◆ newBlock()

virtual void Monero::WalletListener::newBlock ( uint64_t height)
pure virtual

newBlock - called when new block received

Parameters
height- block height

Implemented in MyWalletListener.

◆ onDeviceButtonPressed()

virtual void Monero::WalletListener::onDeviceButtonPressed ( )
inlinevirtual

called by device if the button was pressed

◆ onDeviceButtonRequest()

virtual void Monero::WalletListener::onDeviceButtonRequest ( uint64_t code)
inlinevirtual

called by device if the action is required

◆ onDevicePassphraseRequest()

virtual optional< std::string > Monero::WalletListener::onDevicePassphraseRequest ( bool & on_device)
inlinevirtual

called by device when passphrase entry is needed

◆ onDevicePinRequest()

virtual optional< std::string > Monero::WalletListener::onDevicePinRequest ( )
inlinevirtual

called by device when PIN is needed

◆ onDeviceProgress()

virtual void Monero::WalletListener::onDeviceProgress ( const DeviceProgress & event)
inlinevirtual

Signalizes device operation progress.

◆ onSetWallet()

virtual void Monero::WalletListener::onSetWallet ( Wallet * wallet)
inlinevirtual

If the listener is created before the wallet this enables to set created wallet object.

◆ refreshed()

virtual void Monero::WalletListener::refreshed ( )
pure virtual

refreshed - called when wallet refreshed by background thread or explicitly refreshed by calling "refresh" synchronously

Implemented in MyWalletListener.

◆ unconfirmedMoneyReceived()

virtual void Monero::WalletListener::unconfirmedMoneyReceived ( const std::string & txId,
uint64_t amount )
pure virtual

unconfirmedMoneyReceived - called when payment arrived in tx pool

Parameters
txId- transaction id
amount- amount

◆ updated()

virtual void Monero::WalletListener::updated ( )
pure virtual

updated - generic callback, called when any event (sent/received/block reveived/etc) happened with the wallet;

Implemented in MyWalletListener.


The documentation for this struct was generated from the following files: