MCPcopy Create free account
hub / github.com/ElementsProject/elements / WalletModel

Method WalletModel

src/qt/walletmodel.cpp:58–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56#define SendCoinsRecipient SendAssetsRecipient
57
58WalletModel::WalletModel(std::unique_ptr<interfaces::Wallet> wallet, ClientModel& client_model, const PlatformStyle *platformStyle, QObject *parent) :
59 QObject(parent),
60 m_wallet(std::move(wallet)),
61 m_client_model(&client_model),
62 m_node(client_model.node()),
63 optionsModel(client_model.getOptionsModel()),
64 addressTableModel(nullptr),
65 transactionTableModel(nullptr),
66 recentRequestsTableModel(nullptr),
67 cachedEncryptionStatus(Unencrypted),
68 timer(new QTimer(this))
69{
70 fHaveWatchOnly = m_wallet->haveWatchOnly();
71 addressTableModel = new AddressTableModel(this);
72 transactionTableModel = new TransactionTableModel(platformStyle, this);
73 recentRequestsTableModel = new RecentRequestsTableModel(this);
74
75 subscribeToCoreSignals();
76}
77
78WalletModel::~WalletModel()
79{

Callers

nothing calls this directly

Calls 2

haveWatchOnlyMethod · 0.80
getOptionsModelMethod · 0.45

Tested by

no test coverage detected