Monero
Loading...
Searching...
No Matches
MyWalletListener Struct Reference
Inheritance diagram for MyWalletListener:
Collaboration diagram for MyWalletListener:

Public Member Functions

 MyWalletListener (Monero::Wallet *wallet)
void reset ()
virtual void moneySpent (const string &txId, uint64_t amount)
virtual void moneyReceived (const string &txId, uint64_t amount)
virtual void unconfirmedMoneyReceived (const string &txId, uint64_t amount)
virtual void newBlock (uint64_t height)
 newBlock - called when new block received
virtual void updated ()
 updated - generic callback, called when any event (sent/received/block reveived/etc) happened with the wallet;
virtual void refreshed ()
 refreshed - called when wallet refreshed by background thread or explicitly refreshed by calling "refresh" synchronously
Public Member Functions inherited from Monero::WalletListener
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 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.

Public Attributes

Monero::Walletwallet
uint64_t total_tx
uint64_t total_rx
boost::mutex mutex
boost::condition_variable cv_send
boost::condition_variable cv_receive
boost::condition_variable cv_update
boost::condition_variable cv_refresh
boost::condition_variable cv_newblock
bool send_triggered
bool receive_triggered
bool newblock_triggered
bool update_triggered
bool refresh_triggered

Constructor & Destructor Documentation

◆ MyWalletListener()

MyWalletListener::MyWalletListener ( Monero::Wallet * wallet)
inline

Member Function Documentation

◆ moneyReceived()

virtual void MyWalletListener::moneyReceived ( const string & txId,
uint64_t amount )
inlinevirtual

◆ moneySpent()

virtual void MyWalletListener::moneySpent ( const string & txId,
uint64_t amount )
inlinevirtual

◆ newBlock()

virtual void MyWalletListener::newBlock ( uint64_t height)
inlinevirtual

newBlock - called when new block received

Parameters
height- block height

Implements Monero::WalletListener.

◆ refreshed()

virtual void MyWalletListener::refreshed ( )
inlinevirtual

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

Implements Monero::WalletListener.

◆ reset()

void MyWalletListener::reset ( )
inline

◆ unconfirmedMoneyReceived()

virtual void MyWalletListener::unconfirmedMoneyReceived ( const string & txId,
uint64_t amount )
inlinevirtual

◆ updated()

virtual void MyWalletListener::updated ( )
inlinevirtual

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

Implements Monero::WalletListener.

Member Data Documentation

◆ cv_newblock

boost::condition_variable MyWalletListener::cv_newblock

◆ cv_receive

boost::condition_variable MyWalletListener::cv_receive

◆ cv_refresh

boost::condition_variable MyWalletListener::cv_refresh

◆ cv_send

boost::condition_variable MyWalletListener::cv_send

◆ cv_update

boost::condition_variable MyWalletListener::cv_update

◆ mutex

boost::mutex MyWalletListener::mutex

◆ newblock_triggered

bool MyWalletListener::newblock_triggered

◆ receive_triggered

bool MyWalletListener::receive_triggered

◆ refresh_triggered

bool MyWalletListener::refresh_triggered

◆ send_triggered

bool MyWalletListener::send_triggered

◆ total_rx

uint64_t MyWalletListener::total_rx

◆ total_tx

uint64_t MyWalletListener::total_tx

◆ update_triggered

bool MyWalletListener::update_triggered

◆ wallet

Monero::Wallet* MyWalletListener::wallet

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