Monero
Loading...
Searching...
No Matches
Monero::AddressBook Struct Referenceabstract

The AddressBook - interface for Book. More...

#include <wallet2_api.h>

Inheritance diagram for Monero::AddressBook:

Public Types

enum  ErrorCode { Status_Ok , General_Error , Invalid_Address , Invalid_Payment_Id }

Public Member Functions

virtual ~AddressBook ()=0
virtual std::vector< AddressBookRow * > getAll () const =0
virtual bool addRow (const std::string &dst_addr, const std::string &payment_id, const std::string &description)=0
virtual bool deleteRow (std::size_t rowId)=0
virtual bool setDescription (std::size_t index, const std::string &description)=0
virtual void refresh ()=0
virtual std::string errorString () const =0
virtual int errorCode () const =0
virtual int lookupPaymentID (const std::string &payment_id) const =0

Detailed Description

The AddressBook - interface for Book.

Member Enumeration Documentation

◆ ErrorCode

Enumerator
Status_Ok 
General_Error 
Invalid_Address 
Invalid_Payment_Id 

Constructor & Destructor Documentation

◆ ~AddressBook()

Monero::AddressBook::~AddressBook ( )
pure virtual

Member Function Documentation

◆ addRow()

virtual bool Monero::AddressBook::addRow ( const std::string & dst_addr,
const std::string & payment_id,
const std::string & description )
pure virtual

Implemented in Monero::AddressBookImpl.

◆ deleteRow()

virtual bool Monero::AddressBook::deleteRow ( std::size_t rowId)
pure virtual

Implemented in Monero::AddressBookImpl.

◆ errorCode()

virtual int Monero::AddressBook::errorCode ( ) const
pure virtual

Implemented in Monero::AddressBookImpl.

◆ errorString()

virtual std::string Monero::AddressBook::errorString ( ) const
pure virtual

Implemented in Monero::AddressBookImpl.

◆ getAll()

virtual std::vector< AddressBookRow * > Monero::AddressBook::getAll ( ) const
pure virtual

Implemented in Monero::AddressBookImpl.

◆ lookupPaymentID()

virtual int Monero::AddressBook::lookupPaymentID ( const std::string & payment_id) const
pure virtual

Implemented in Monero::AddressBookImpl.

◆ refresh()

virtual void Monero::AddressBook::refresh ( )
pure virtual

Implemented in Monero::AddressBookImpl.

◆ setDescription()

virtual bool Monero::AddressBook::setDescription ( std::size_t index,
const std::string & description )
pure virtual

Implemented in Monero::AddressBookImpl.


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