mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-17 08:17:59 +00:00
Addressbook: updated references to bitmonero
This commit is contained in:
parent
a344f17cd1
commit
0e5329ab6c
4 changed files with 10 additions and 11 deletions
|
@ -1,7 +1,7 @@
|
||||||
#include "AddressBook.h"
|
#include "AddressBook.h"
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
AddressBook::AddressBook(Bitmonero::AddressBook *abImpl,QObject *parent)
|
AddressBook::AddressBook(Monero::AddressBook *abImpl,QObject *parent)
|
||||||
: QObject(parent), m_addressBookImpl(abImpl)
|
: QObject(parent), m_addressBookImpl(abImpl)
|
||||||
{
|
{
|
||||||
qDebug(__FUNCTION__);
|
qDebug(__FUNCTION__);
|
||||||
|
@ -18,7 +18,7 @@ int AddressBook::errorCode() const
|
||||||
return m_addressBookImpl->errorCode();
|
return m_addressBookImpl->errorCode();
|
||||||
}
|
}
|
||||||
|
|
||||||
QList<Bitmonero::AddressBookRow*> AddressBook::getAll(bool update) const
|
QList<Monero::AddressBookRow*> AddressBook::getAll(bool update) const
|
||||||
{
|
{
|
||||||
qDebug(__FUNCTION__);
|
qDebug(__FUNCTION__);
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ QList<Bitmonero::AddressBookRow*> AddressBook::getAll(bool update) const
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Bitmonero::AddressBookRow * AddressBook::getRow(int index) const
|
Monero::AddressBookRow * AddressBook::getRow(int index) const
|
||||||
{
|
{
|
||||||
return m_rows.at(index);
|
return m_rows.at(index);
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
#include <QList>
|
#include <QList>
|
||||||
#include <QDateTime>
|
#include <QDateTime>
|
||||||
|
|
||||||
namespace Bitmonero {
|
namespace Monero {
|
||||||
class AddressBook;
|
class AddressBook;
|
||||||
}
|
}
|
||||||
class AddressBookRow;
|
class AddressBookRow;
|
||||||
|
@ -15,8 +15,8 @@ class AddressBook : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
Q_INVOKABLE QList<Bitmonero::AddressBookRow*> getAll(bool update = false) const;
|
Q_INVOKABLE QList<Monero::AddressBookRow*> getAll(bool update = false) const;
|
||||||
Q_INVOKABLE Bitmonero::AddressBookRow * getRow(int index) const;
|
Q_INVOKABLE Monero::AddressBookRow * getRow(int index) const;
|
||||||
Q_INVOKABLE bool addRow(const QString &address, const QString &payment_id, const QString &description) const;
|
Q_INVOKABLE bool addRow(const QString &address, const QString &payment_id, const QString &description) const;
|
||||||
Q_INVOKABLE bool deleteRow(int rowId) const;
|
Q_INVOKABLE bool deleteRow(int rowId) const;
|
||||||
quint64 count() const;
|
quint64 count() const;
|
||||||
|
@ -41,10 +41,10 @@ signals:
|
||||||
public slots:
|
public slots:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
explicit AddressBook(Bitmonero::AddressBook * abImpl, QObject *parent);
|
explicit AddressBook(Monero::AddressBook * abImpl, QObject *parent);
|
||||||
friend class Wallet;
|
friend class Wallet;
|
||||||
Bitmonero::AddressBook * m_addressBookImpl;
|
Monero::AddressBook * m_addressBookImpl;
|
||||||
mutable QList<Bitmonero::AddressBookRow*> m_rows;
|
mutable QList<Monero::AddressBookRow*> m_rows;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // ADDRESSBOOK_H
|
#endif // ADDRESSBOOK_H
|
||||||
|
|
|
@ -36,7 +36,7 @@ QVariant AddressBookModel::data(const QModelIndex &index, int role) const
|
||||||
return QVariant();
|
return QVariant();
|
||||||
}
|
}
|
||||||
|
|
||||||
Bitmonero::AddressBookRow * ar = m_addressBook->getRow(index.row());
|
Monero::AddressBookRow * ar = m_addressBook->getRow(index.row());
|
||||||
|
|
||||||
QVariant result = "";
|
QVariant result = "";
|
||||||
switch (role) {
|
switch (role) {
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
#define ADDRESSBOOKMODEL_H
|
#define ADDRESSBOOKMODEL_H
|
||||||
|
|
||||||
#include <QAbstractListModel>
|
#include <QAbstractListModel>
|
||||||
//#include "wallet/wallet2_api.h" // we need to have an access to the Bitmonero::Wallet::AddressBook
|
|
||||||
|
|
||||||
class AddressBook;
|
class AddressBook;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue