Electroneum
tools::wallet_device_callback Class Reference

#include <wallet2.h>

Inheritance diagram for tools::wallet_device_callback:
Collaboration diagram for tools::wallet_device_callback:

Public Member Functions

 wallet_device_callback (wallet2 *wallet)
 
void on_button_request (uint64_t code=0) override
 
void on_button_pressed () override
 
boost::optional< epee::wipeable_stringon_pin_request () override
 
boost::optional< epee::wipeable_stringon_passphrase_request (bool on_device) override
 
void on_progress (const hw::device_progress &event) override
 
- Public Member Functions inherited from hw::i_device_callback
virtual ~i_device_callback ()=default
 

Detailed Description

Definition at line 149 of file wallet2.h.

Constructor & Destructor Documentation

◆ wallet_device_callback()

tools::wallet_device_callback::wallet_device_callback ( wallet2 wallet)
inline

Definition at line 152 of file wallet2.h.

152 : wallet(wallet) {};

Member Function Documentation

◆ on_button_pressed()

void tools::wallet_device_callback::on_button_pressed ( )
overridevirtual

Reimplemented from hw::i_device_callback.

Definition at line 1075 of file wallet2.cpp.

1076 {
1077  if (wallet)
1078  wallet->on_device_button_pressed();
1079 }

◆ on_button_request()

void tools::wallet_device_callback::on_button_request ( uint64_t  code = 0)
overridevirtual

Reimplemented from hw::i_device_callback.

Definition at line 1069 of file wallet2.cpp.

1070 {
1071  if (wallet)
1072  wallet->on_device_button_request(code);
1073 }

◆ on_passphrase_request()

boost::optional< epee::wipeable_string > tools::wallet_device_callback::on_passphrase_request ( bool  on_device)
overridevirtual

Reimplemented from hw::i_device_callback.

Definition at line 1088 of file wallet2.cpp.

1089 {
1090  if (wallet)
1091  return wallet->on_device_passphrase_request(on_device);
1092  return boost::none;
1093 }

◆ on_pin_request()

boost::optional< epee::wipeable_string > tools::wallet_device_callback::on_pin_request ( )
overridevirtual

Reimplemented from hw::i_device_callback.

Definition at line 1081 of file wallet2.cpp.

1082 {
1083  if (wallet)
1084  return wallet->on_device_pin_request();
1085  return boost::none;
1086 }

◆ on_progress()

void tools::wallet_device_callback::on_progress ( const hw::device_progress event)
overridevirtual

Reimplemented from hw::i_device_callback.

Definition at line 1095 of file wallet2.cpp.

1096 {
1097  if (wallet)
1098  wallet->on_device_progress(event);
1099 }

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