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 <QDebug>
|
||||
|
||||
AddressBook::AddressBook(Bitmonero::AddressBook *abImpl,QObject *parent)
|
||||
AddressBook::AddressBook(Monero::AddressBook *abImpl,QObject *parent)
|
||||
: QObject(parent), m_addressBookImpl(abImpl)
|
||||
{
|
||||
qDebug(__FUNCTION__);
|
||||
|
@ -18,7 +18,7 @@ int AddressBook::errorCode() const
|
|||
return m_addressBookImpl->errorCode();
|
||||
}
|
||||
|
||||
QList<Bitmonero::AddressBookRow*> AddressBook::getAll(bool update) const
|
||||
QList<Monero::AddressBookRow*> AddressBook::getAll(bool update) const
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#include <QList>
|
||||
#include <QDateTime>
|
||||
|
||||
namespace Bitmonero {
|
||||
namespace Monero {
|
||||
class AddressBook;
|
||||
}
|
||||
class AddressBookRow;
|
||||
|
@ -15,8 +15,8 @@ class AddressBook : public QObject
|
|||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
Q_INVOKABLE QList<Bitmonero::AddressBookRow*> getAll(bool update = false) const;
|
||||
Q_INVOKABLE Bitmonero::AddressBookRow * getRow(int index) const;
|
||||
Q_INVOKABLE QList<Monero::AddressBookRow*> getAll(bool update = false) 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 deleteRow(int rowId) const;
|
||||
quint64 count() const;
|
||||
|
@ -41,10 +41,10 @@ signals:
|
|||
public slots:
|
||||
|
||||
private:
|
||||
explicit AddressBook(Bitmonero::AddressBook * abImpl, QObject *parent);
|
||||
explicit AddressBook(Monero::AddressBook * abImpl, QObject *parent);
|
||||
friend class Wallet;
|
||||
Bitmonero::AddressBook * m_addressBookImpl;
|
||||
mutable QList<Bitmonero::AddressBookRow*> m_rows;
|
||||
Monero::AddressBook * m_addressBookImpl;
|
||||
mutable QList<Monero::AddressBookRow*> m_rows;
|
||||
};
|
||||
|
||||
#endif // ADDRESSBOOK_H
|
||||
|
|
|
@ -36,7 +36,7 @@ QVariant AddressBookModel::data(const QModelIndex &index, int role) const
|
|||
return QVariant();
|
||||
}
|
||||
|
||||
Bitmonero::AddressBookRow * ar = m_addressBook->getRow(index.row());
|
||||
Monero::AddressBookRow * ar = m_addressBook->getRow(index.row());
|
||||
|
||||
QVariant result = "";
|
||||
switch (role) {
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define ADDRESSBOOKMODEL_H
|
||||
|
||||
#include <QAbstractListModel>
|
||||
//#include "wallet/wallet2_api.h" // we need to have an access to the Bitmonero::Wallet::AddressBook
|
||||
|
||||
class AddressBook;
|
||||
|
||||
|
|
Loading…
Reference in a new issue