Changeset View
Changeset View
Standalone View
Standalone View
src/qt/walletcontroller.h
// Copyright (c) 2019 The Bitcoin Core developers | // Copyright (c) 2019 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_QT_WALLETCONTROLLER_H | #ifndef BITCOIN_QT_WALLETCONTROLLER_H | ||||
#define BITCOIN_QT_WALLETCONTROLLER_H | #define BITCOIN_QT_WALLETCONTROLLER_H | ||||
#include <interfaces/wallet.h> | |||||
#include <qt/sendcoinsrecipient.h> | #include <qt/sendcoinsrecipient.h> | ||||
#include <qt/walletmodel.h> | #include <qt/walletmodel.h> | ||||
#include <support/allocators/secure.h> | #include <support/allocators/secure.h> | ||||
#include <sync.h> | #include <sync.h> | ||||
#include <QMutex> | #include <QMutex> | ||||
#include <map> | #include <map> | ||||
▲ Show 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | public: | ||||
std::map<std::string, bool> listWalletDir() const; | std::map<std::string, bool> listWalletDir() const; | ||||
void closeWallet(WalletModel *wallet_model, QWidget *parent = nullptr); | void closeWallet(WalletModel *wallet_model, QWidget *parent = nullptr); | ||||
Q_SIGNALS: | Q_SIGNALS: | ||||
void walletAdded(WalletModel *wallet_model); | void walletAdded(WalletModel *wallet_model); | ||||
void walletRemoved(WalletModel *wallet_model); | void walletRemoved(WalletModel *wallet_model); | ||||
void coinsSent(WalletModel *wallet_model, SendCoinsRecipient recipient, | void coinsSent(interfaces::Wallet &wallet, SendCoinsRecipient recipient, | ||||
QByteArray transaction); | QByteArray transaction); | ||||
private: | private: | ||||
QThread *const m_activity_thread; | QThread *const m_activity_thread; | ||||
QObject *const m_activity_worker; | QObject *const m_activity_worker; | ||||
interfaces::Node &m_node; | interfaces::Node &m_node; | ||||
const PlatformStyle *const m_platform_style; | const PlatformStyle *const m_platform_style; | ||||
OptionsModel *const m_options_model; | OptionsModel *const m_options_model; | ||||
▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines |