|
Electroneum
|


Public Member Functions | |
| MyWalletListener (Electroneum::Wallet *wallet) | |
| void | reset () |
| virtual void | etnSpent (const string &txId, uint64_t amount) |
| etnSpent - called when etn spent More... | |
| virtual void | etnReceived (const string &txId, uint64_t amount) |
| etnReceived - called when etn received More... | |
| virtual void | unconfirmedETNReceived (const string &txId, uint64_t amount) |
| unconfirmedETNReceived - called when payment arrived in tx pool More... | |
| virtual void | newBlock (uint64_t height) |
| newBlock - called when new block received More... | |
| virtual void | updated () |
| updated - generic callback, called when any event (sent/received/block reveived/etc) happened with the wallet; More... | |
| virtual void | refreshed () |
| refreshed - called when wallet refreshed by background thread or explicitly refreshed by calling "refresh" synchronously More... | |
Public Member Functions inherited from Electroneum::WalletListener | |
| virtual | ~WalletListener ()=0 |
| virtual void | onDeviceButtonRequest (uint64_t code) |
| called by device if the action is required More... | |
| virtual void | onDeviceButtonPressed () |
| called by device if the button was pressed More... | |
| virtual optional< std::string > | onDevicePinRequest () |
| called by device when PIN is needed More... | |
| virtual optional< std::string > | onDevicePassphraseRequest (bool on_device) |
| called by device when passphrase entry is needed More... | |
| virtual void | onDeviceProgress (const DeviceProgress &event) |
| Signalizes device operation progress. More... | |
| virtual void | onSetWallet (Wallet *wallet) |
| If the listener is created before the wallet this enables to set created wallet object. More... | |
Public Attributes | |
| Electroneum::Wallet * | wallet |
| 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 |
|
inline |
|
inlinevirtual |
etnReceived - called when etn received
| txId | - transaction id |
| amount | - amount |
Implements Electroneum::WalletListener.
Definition at line 832 of file main.cpp.

|
inlinevirtual |
etnSpent - called when etn spent
| txId | - transaction id |
| amount | - amount |
Implements Electroneum::WalletListener.
Definition at line 823 of file main.cpp.

|
inlinevirtual |
newBlock - called when new block received
| height | - block height |
Implements Electroneum::WalletListener.
Definition at line 851 of file main.cpp.

|
inlinevirtual |
refreshed - called when wallet refreshed by background thread or explicitly refreshed by calling "refresh" synchronously
Implements Electroneum::WalletListener.
Definition at line 870 of file main.cpp.
|
inline |
Definition at line 818 of file main.cpp.
|
inlinevirtual |
unconfirmedETNReceived - called when payment arrived in tx pool
| txId | - transaction id |
| amount | - amount |
Implements Electroneum::WalletListener.
Definition at line 841 of file main.cpp.

|
inlinevirtual |
updated - generic callback, called when any event (sent/received/block reveived/etc) happened with the wallet;
Implements Electroneum::WalletListener.
Definition at line 863 of file main.cpp.
| Electroneum::Wallet* MyWalletListener::wallet |