|
|
|
@ -36,19 +36,15 @@ SubaddressAccount::SubaddressAccount(Monero::SubaddressAccount *subaddressAccoun
|
|
|
|
|
getAll();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QList<Monero::SubaddressAccountRow*> SubaddressAccount::getAll(bool update) const
|
|
|
|
|
QList<Monero::SubaddressAccountRow *> SubaddressAccount::getAll() const
|
|
|
|
|
{
|
|
|
|
|
qDebug(__FUNCTION__);
|
|
|
|
|
|
|
|
|
|
emit refreshStarted();
|
|
|
|
|
|
|
|
|
|
if(update)
|
|
|
|
|
m_rows.clear();
|
|
|
|
|
|
|
|
|
|
if (m_rows.empty()){
|
|
|
|
|
for (auto &row: m_subaddressAccountImpl->getAll()) {
|
|
|
|
|
m_rows.append(row);
|
|
|
|
|
}
|
|
|
|
|
m_rows.clear();
|
|
|
|
|
for (auto &row: m_subaddressAccountImpl->getAll()) {
|
|
|
|
|
m_rows.append(row);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
emit refreshFinished();
|
|
|
|
@ -63,19 +59,19 @@ Monero::SubaddressAccountRow * SubaddressAccount::getRow(int index) const
|
|
|
|
|
void SubaddressAccount::addRow(const QString &label) const
|
|
|
|
|
{
|
|
|
|
|
m_subaddressAccountImpl->addRow(label.toStdString());
|
|
|
|
|
getAll(true);
|
|
|
|
|
getAll();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void SubaddressAccount::setLabel(quint32 accountIndex, const QString &label) const
|
|
|
|
|
{
|
|
|
|
|
m_subaddressAccountImpl->setLabel(accountIndex, label.toStdString());
|
|
|
|
|
getAll(true);
|
|
|
|
|
getAll();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void SubaddressAccount::refresh() const
|
|
|
|
|
{
|
|
|
|
|
m_subaddressAccountImpl->refresh();
|
|
|
|
|
getAll(true);
|
|
|
|
|
getAll();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
quint64 SubaddressAccount::count() const
|
|
|
|
|