| 363 | } |
| 364 | |
| 365 | static void NotifyAddressBookChanged(WalletModel *walletmodel, |
| 366 | const CTxDestination &address, const std::string &label, bool isMine, |
| 367 | wallet::AddressPurpose purpose, ChangeType status) |
| 368 | { |
| 369 | QString strAddress = QString::fromStdString(EncodeDestination(address)); |
| 370 | QString strLabel = QString::fromStdString(label); |
| 371 | |
| 372 | qDebug() << "NotifyAddressBookChanged: " + strAddress + " " + strLabel + " isMine=" + QString::number(isMine) + " purpose=" + QString::number(static_cast<uint8_t>(purpose)) + " status=" + QString::number(status); |
| 373 | bool invoked = QMetaObject::invokeMethod(walletmodel, "updateAddressBook", |
| 374 | Q_ARG(QString, strAddress), |
| 375 | Q_ARG(QString, strLabel), |
| 376 | Q_ARG(bool, isMine), |
| 377 | Q_ARG(wallet::AddressPurpose, purpose), |
| 378 | Q_ARG(int, status)); |
| 379 | assert(invoked); |
| 380 | } |
| 381 | |
| 382 | static void NotifyTransactionChanged(WalletModel *walletmodel, const Txid& hash, ChangeType status) |
| 383 | { |
no test coverage detected