| 405 | } |
| 406 | |
| 407 | static void NotifyAddressBookChanged(WalletModel *walletmodel, |
| 408 | const CTxDestination &address, const std::string &label, bool isMine, |
| 409 | const std::string &purpose, ChangeType status) |
| 410 | { |
| 411 | QString strAddress = QString::fromStdString(EncodeDestination(address)); |
| 412 | QString strLabel = QString::fromStdString(label); |
| 413 | QString strPurpose = QString::fromStdString(purpose); |
| 414 | |
| 415 | qDebug() << "NotifyAddressBookChanged: " + strAddress + " " + strLabel + " isMine=" + QString::number(isMine) + " purpose=" + strPurpose + " status=" + QString::number(status); |
| 416 | bool invoked = QMetaObject::invokeMethod(walletmodel, "updateAddressBook", Qt::QueuedConnection, |
| 417 | Q_ARG(QString, strAddress), |
| 418 | Q_ARG(QString, strLabel), |
| 419 | Q_ARG(bool, isMine), |
| 420 | Q_ARG(QString, strPurpose), |
| 421 | Q_ARG(int, status)); |
| 422 | assert(invoked); |
| 423 | } |
| 424 | |
| 425 | static void NotifyTransactionChanged(WalletModel *walletmodel, const uint256 &hash, ChangeType status) |
| 426 | { |
no test coverage detected