mirror of
https://github.com/feather-wallet/feather.git
synced 2025-03-21 22:48:44 +00:00
AddressBook: remove lookupPaymentID
This commit is contained in:
parent
0ba485c9de
commit
029200840a
4 changed files with 3 additions and 17 deletions
|
@ -116,13 +116,6 @@ quint64 AddressBook::count() const
|
||||||
return m_rows.size();
|
return m_rows.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
int AddressBook::lookupPaymentID(const QString &payment_id) const
|
|
||||||
{
|
|
||||||
QReadLocker locker(&m_lock);
|
|
||||||
|
|
||||||
return m_addressBookImpl->lookupPaymentID(payment_id.toStdString());
|
|
||||||
}
|
|
||||||
|
|
||||||
QString AddressBook::getDescription(const QString &address) const
|
QString AddressBook::getDescription(const QString &address) const
|
||||||
{
|
{
|
||||||
QReadLocker locker(&m_lock);
|
QReadLocker locker(&m_lock);
|
||||||
|
|
|
@ -28,7 +28,6 @@ public:
|
||||||
quint64 count() const;
|
quint64 count() const;
|
||||||
Q_INVOKABLE QString errorString() const;
|
Q_INVOKABLE QString errorString() const;
|
||||||
Q_INVOKABLE int errorCode() const;
|
Q_INVOKABLE int errorCode() const;
|
||||||
Q_INVOKABLE int lookupPaymentID(const QString &payment_id) const;
|
|
||||||
Q_INVOKABLE QString getDescription(const QString &address) const;
|
Q_INVOKABLE QString getDescription(const QString &address) const;
|
||||||
|
|
||||||
enum ErrorCode {
|
enum ErrorCode {
|
||||||
|
|
|
@ -8,9 +8,9 @@
|
||||||
#include "utils/Icons.h"
|
#include "utils/Icons.h"
|
||||||
|
|
||||||
AddressBookModel::AddressBookModel(QObject *parent, AddressBook *addressBook)
|
AddressBookModel::AddressBookModel(QObject *parent, AddressBook *addressBook)
|
||||||
: QAbstractTableModel(parent),
|
: QAbstractTableModel(parent)
|
||||||
m_addressBook(addressBook),
|
, m_addressBook(addressBook)
|
||||||
m_showFullAddresses(false)
|
, m_showFullAddresses(false)
|
||||||
{
|
{
|
||||||
connect(m_addressBook, &AddressBook::refreshStarted, this, &AddressBookModel::startReset);
|
connect(m_addressBook, &AddressBook::refreshStarted, this, &AddressBookModel::startReset);
|
||||||
connect(m_addressBook, &AddressBook::refreshFinished, this, &AddressBookModel::endReset);
|
connect(m_addressBook, &AddressBook::refreshFinished, this, &AddressBookModel::endReset);
|
||||||
|
@ -150,11 +150,6 @@ bool AddressBookModel::deleteRow(int row)
|
||||||
return m_addressBook->deleteRow(row);
|
return m_addressBook->deleteRow(row);
|
||||||
}
|
}
|
||||||
|
|
||||||
int AddressBookModel::lookupPaymentID(const QString &payment_id) const
|
|
||||||
{
|
|
||||||
return m_addressBook->lookupPaymentID(payment_id);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool AddressBookModel::writeCSV(const QString &path) {
|
bool AddressBookModel::writeCSV(const QString &path) {
|
||||||
QString csv = "";
|
QString csv = "";
|
||||||
for(int i = 0; i < this->rowCount(); i++) {
|
for(int i = 0; i < this->rowCount(); i++) {
|
||||||
|
|
|
@ -31,7 +31,6 @@ public:
|
||||||
bool setData(const QModelIndex &index, const QVariant &value, int role) override;
|
bool setData(const QModelIndex &index, const QVariant &value, int role) override;
|
||||||
|
|
||||||
Q_INVOKABLE bool deleteRow(int row);
|
Q_INVOKABLE bool deleteRow(int row);
|
||||||
Q_INVOKABLE int lookupPaymentID(const QString &payment_id) const;
|
|
||||||
|
|
||||||
bool isShowFullAddresses() const;
|
bool isShowFullAddresses() const;
|
||||||
void setShowFullAddresses(bool show);
|
void setShowFullAddresses(bool show);
|
||||||
|
|
Loading…
Reference in a new issue