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 1076 of file wallet2.cpp.

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

◆ 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 1070 of file wallet2.cpp.

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

◆ 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 1089 of file wallet2.cpp.

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

◆ 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 1082 of file wallet2.cpp.

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

◆ on_progress()

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

Reimplemented from hw::i_device_callback.

Definition at line 1096 of file wallet2.cpp.

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

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