#include <wallet2_api.h>
Definition at line 348 of file wallet2_api.h.
◆ ~WalletListener()
| Electroneum::WalletListener::~WalletListener |
( |
| ) |
|
|
pure virtual |
◆ etnReceived()
| virtual void Electroneum::WalletListener::etnReceived |
( |
const std::string & |
txId, |
|
|
uint64_t |
amount |
|
) |
| |
|
pure virtual |
etnReceived - called when etn received
- Parameters
-
| txId | - transaction id |
| amount | - amount |
Implemented in MyWalletListener.
◆ etnSpent()
| virtual void Electroneum::WalletListener::etnSpent |
( |
const std::string & |
txId, |
|
|
uint64_t |
amount |
|
) |
| |
|
pure virtual |
etnSpent - called when etn spent
- Parameters
-
| txId | - transaction id |
| amount | - amount |
Implemented in MyWalletListener.
◆ newBlock()
| virtual void Electroneum::WalletListener::newBlock |
( |
uint64_t |
height | ) |
|
|
pure virtual |
newBlock - called when new block received
- Parameters
-
Implemented in MyWalletListener.
◆ onDeviceButtonPressed()
| virtual void Electroneum::WalletListener::onDeviceButtonPressed |
( |
| ) |
|
|
inlinevirtual |
called by device if the button was pressed
Definition at line 397 of file wallet2_api.h.
◆ onDeviceButtonRequest()
| virtual void Electroneum::WalletListener::onDeviceButtonRequest |
( |
uint64_t |
code | ) |
|
|
inlinevirtual |
called by device if the action is required
Definition at line 392 of file wallet2_api.h.
◆ onDevicePassphraseRequest()
| virtual optional<std::string> Electroneum::WalletListener::onDevicePassphraseRequest |
( |
bool |
on_device | ) |
|
|
inlinevirtual |
called by device when passphrase entry is needed
Definition at line 409 of file wallet2_api.h.
410 if (!on_device)
throw std::runtime_error(
"Not supported");
411 return optional<std::string>();
◆ onDevicePinRequest()
| virtual optional<std::string> Electroneum::WalletListener::onDevicePinRequest |
( |
| ) |
|
|
inlinevirtual |
called by device when PIN is needed
Definition at line 402 of file wallet2_api.h.
403 throw std::runtime_error(
"Not supported");
◆ onDeviceProgress()
| virtual void Electroneum::WalletListener::onDeviceProgress |
( |
const DeviceProgress & |
event | ) |
|
|
inlinevirtual |
Signalizes device operation progress.
Definition at line 417 of file wallet2_api.h.
◆ onSetWallet()
| virtual void Electroneum::WalletListener::onSetWallet |
( |
Wallet * |
wallet | ) |
|
|
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.
◆ refreshed()
| virtual void Electroneum::WalletListener::refreshed |
( |
| ) |
|
|
pure virtual |
refreshed - called when wallet refreshed by background thread or explicitly refreshed by calling "refresh" synchronously
Implemented in MyWalletListener.
◆ unconfirmedETNReceived()
| virtual void Electroneum::WalletListener::unconfirmedETNReceived |
( |
const std::string & |
txId, |
|
|
uint64_t |
amount |
|
) |
| |
|
pure virtual |
unconfirmedETNReceived - called when payment arrived in tx pool
- Parameters
-
| txId | - transaction id |
| amount | - amount |
Implemented in MyWalletListener.
◆ updated()
| virtual void Electroneum::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:
- /home/abuild/rpmbuild/BUILD/electroneum-5.0.0.4/src/wallet/api/wallet2_api.h
- /home/abuild/rpmbuild/BUILD/electroneum-5.0.0.4/src/wallet/api/wallet.cpp