|
Electroneum
|
#include <wallet2_api.h>

Public Member Functions | |
| virtual | ~WalletListener ()=0 |
| virtual void | etnSpent (const std::string &txId, uint64_t amount)=0 |
| etnSpent - called when etn spent | |
| virtual void | etnReceived (const std::string &txId, uint64_t amount)=0 |
| etnReceived - called when etn received | |
| virtual void | unconfirmedETNReceived (const std::string &txId, uint64_t amount)=0 |
| unconfirmedETNReceived - 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. | |
Definition at line 348 of file wallet2_api.h.
|
pure virtual |
Definition at line 296 of file wallet.cpp.
|
pure virtual |
etnReceived - called when etn received
| txId | - transaction id |
| amount | - amount |
Implemented in MyWalletListener.
|
pure virtual |
etnSpent - called when etn spent
| txId | - transaction id |
| amount | - amount |
Implemented in MyWalletListener.
|
pure virtual |
newBlock - called when new block received
| height | - block height |
Implemented in MyWalletListener.
|
inlinevirtual |
|
inlinevirtual |
called by device if the action is required
Definition at line 392 of file wallet2_api.h.
|
inlinevirtual |
called by device when passphrase entry is needed
Definition at line 409 of file wallet2_api.h.
|
inlinevirtual |
called by device when PIN is needed
Definition at line 402 of file wallet2_api.h.
|
inlinevirtual |
Signalizes device operation progress.
Definition at line 417 of file wallet2_api.h.
|
inlinevirtual |
If the listener is created before the wallet this enables to set created wallet object.
Definition at line 422 of file wallet2_api.h.

|
pure virtual |
refreshed - called when wallet refreshed by background thread or explicitly refreshed by calling "refresh" synchronously
Implemented in MyWalletListener.
|
pure virtual |
unconfirmedETNReceived - called when payment arrived in tx pool
| txId | - transaction id |
| amount | - amount |
Implemented in MyWalletListener.
|
pure virtual |
updated - generic callback, called when any event (sent/received/block reveived/etc) happened with the wallet;
Implemented in MyWalletListener.