Changeset View
Changeset View
Standalone View
Standalone View
src/qt/walletmodel.cpp
Show First 20 Lines • Show All 431 Lines • ▼ Show 20 Lines | static void NotifyAddressBookChanged(WalletModel *walletmodel, CWallet *wallet, | ||||
const std::string &label, bool isMine, | const std::string &label, bool isMine, | ||||
const std::string &purpose, | const std::string &purpose, | ||||
ChangeType status) { | ChangeType status) { | ||||
QString strAddress = QString::fromStdString(EncodeDestination(address)); | QString strAddress = QString::fromStdString(EncodeDestination(address)); | ||||
QString strLabel = QString::fromStdString(label); | QString strLabel = QString::fromStdString(label); | ||||
QString strPurpose = QString::fromStdString(purpose); | QString strPurpose = QString::fromStdString(purpose); | ||||
qDebug() << "NotifyAddressBookChanged: " + strAddress + " " + strLabel + | qDebug() << "NotifyAddressBookChanged: " + strAddress + " " + strLabel + | ||||
" isMine=" + QString::number(isMine) + " purpose=" + | " isMine=" + QString::number(isMine) + | ||||
strPurpose + " status=" + QString::number(status); | " purpose=" + strPurpose + | ||||
" status=" + QString::number(status); | |||||
QMetaObject::invokeMethod(walletmodel, "updateAddressBook", | QMetaObject::invokeMethod(walletmodel, "updateAddressBook", | ||||
Qt::QueuedConnection, Q_ARG(QString, strAddress), | Qt::QueuedConnection, Q_ARG(QString, strAddress), | ||||
Q_ARG(QString, strLabel), Q_ARG(bool, isMine), | Q_ARG(QString, strLabel), Q_ARG(bool, isMine), | ||||
Q_ARG(QString, strPurpose), Q_ARG(int, status)); | Q_ARG(QString, strPurpose), Q_ARG(int, status)); | ||||
} | } | ||||
static void NotifyTransactionChanged(WalletModel *walletmodel, CWallet *wallet, | static void NotifyTransactionChanged(WalletModel *walletmodel, CWallet *wallet, | ||||
const uint256 &hash, ChangeType status) { | const uint256 &hash, ChangeType status) { | ||||
▲ Show 20 Lines • Show All 231 Lines • Show Last 20 Lines |