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 <qt/walletmodel.h> | #include <qt/walletmodel.h> | ||||
#include <sync.h> | #include <sync.h> | ||||
#include <QMutex> | #include <QMutex> | ||||
#include <list> | #include <map> | ||||
#include <memory> | #include <memory> | ||||
#include <vector> | #include <vector> | ||||
#include <QMessageBox> | #include <QMessageBox> | ||||
#include <QThread> | #include <QThread> | ||||
class OptionsModel; | class OptionsModel; | ||||
class PlatformStyle; | class PlatformStyle; | ||||
Show All 16 Lines | |||||
public: | public: | ||||
WalletController(interfaces::Node &node, | WalletController(interfaces::Node &node, | ||||
const PlatformStyle *platform_style, | const PlatformStyle *platform_style, | ||||
OptionsModel *options_model, QObject *parent); | OptionsModel *options_model, QObject *parent); | ||||
~WalletController(); | ~WalletController(); | ||||
std::vector<WalletModel *> getWallets() const; | std::vector<WalletModel *> getWallets() const; | ||||
std::vector<std::string> getWalletsAvailableToOpen() const; | |||||
//! Returns all wallet names in the wallet dir mapped to whether the wallet | |||||
//! is loaded. | |||||
std::map<std::string, bool> listWalletDir() const; | |||||
OpenWalletActivity *openWallet(const CChainParams ¶ms, | OpenWalletActivity *openWallet(const CChainParams ¶ms, | ||||
const std::string &name, | const std::string &name, | ||||
QWidget *parent = nullptr); | QWidget *parent = nullptr); | ||||
void closeWallet(WalletModel *wallet_model, QWidget *parent = nullptr); | void closeWallet(WalletModel *wallet_model, QWidget *parent = nullptr); | ||||
private Q_SLOTS: | private Q_SLOTS: | ||||
void addWallet(WalletModel *wallet_model); | void addWallet(WalletModel *wallet_model); | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |