Changeset View
Changeset View
Standalone View
Standalone View
src/qt/walletframe.h
// Copyright (c) 2011-2016 The Bitcoin Core developers | // Copyright (c) 2011-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_WALLETFRAME_H | #ifndef BITCOIN_QT_WALLETFRAME_H | ||||
#define BITCOIN_QT_WALLETFRAME_H | #define BITCOIN_QT_WALLETFRAME_H | ||||
#include <QFrame> | #include <QFrame> | ||||
#include <QMap> | #include <QMap> | ||||
Show All 22 Lines | |||||
public: | public: | ||||
explicit WalletFrame(const PlatformStyle *platformStyle, | explicit WalletFrame(const PlatformStyle *platformStyle, | ||||
BitcoinGUI *_gui = nullptr); | BitcoinGUI *_gui = nullptr); | ||||
~WalletFrame(); | ~WalletFrame(); | ||||
void setClientModel(ClientModel *clientModel); | void setClientModel(ClientModel *clientModel); | ||||
bool addWallet(WalletModel *walletModel); | bool addWallet(WalletModel *walletModel); | ||||
bool setCurrentWallet(const QString &name); | bool setCurrentWallet(WalletModel *wallet_model); | ||||
bool removeWallet(const QString &name); | bool removeWallet(WalletModel *wallet_model); | ||||
void removeAllWallets(); | void removeAllWallets(); | ||||
bool handlePaymentRequest(const SendCoinsRecipient &recipient); | bool handlePaymentRequest(const SendCoinsRecipient &recipient); | ||||
void showOutOfSyncWarning(bool fShow); | void showOutOfSyncWarning(bool fShow); | ||||
Q_SIGNALS: | Q_SIGNALS: | ||||
/** Notify that the user has requested more information about the | /** Notify that the user has requested more information about the | ||||
* out-of-sync warning */ | * out-of-sync warning */ | ||||
void requestedSyncWarningInfo(); | void requestedSyncWarningInfo(); | ||||
private: | private: | ||||
QStackedWidget *walletStack; | QStackedWidget *walletStack; | ||||
BitcoinGUI *gui; | BitcoinGUI *gui; | ||||
ClientModel *clientModel; | ClientModel *clientModel; | ||||
QMap<QString, WalletView *> mapWalletViews; | QMap<WalletModel *, WalletView *> mapWalletViews; | ||||
bool bOutOfSync; | bool bOutOfSync; | ||||
const PlatformStyle *platformStyle; | const PlatformStyle *platformStyle; | ||||
public: | public: | ||||
WalletView *currentWalletView(); | WalletView *currentWalletView(); | ||||
Show All 33 Lines |