Bitcoin
Public Slots | Signals | Public Member Functions | Private Attributes | List of all members
WalletFrame Class Reference

#include <walletframe.h>

Inheritance diagram for WalletFrame:

Public Slots

void gotoOverviewPage ()
 
void gotoHistoryPage ()
 
void gotoReceiveCoinsPage ()
 
void gotoSendCoinsPage (QString addr="")
 
void gotoSignMessageTab (QString addr="")
 
void gotoVerifyMessageTab (QString addr="")
 
void encryptWallet (bool status)
 
void backupWallet ()
 
void changePassphrase ()
 
void unlockWallet ()
 
void usedSendingAddresses ()
 
void usedReceivingAddresses ()
 
void outOfSyncWarningClicked ()
 

Signals

void requestedSyncWarningInfo ()
 

Public Member Functions

 WalletFrame (const PlatformStyle *platformStyle, BitcoinGUI *_gui=nullptr)
 
 ~WalletFrame ()
 
void setClientModel (ClientModel *clientModel)
 
void addWallet (WalletModel *walletModel)
 
void setCurrentWallet (WalletModel *wallet_model)
 
void removeWallet (WalletModel *wallet_model)
 
void removeAllWallets ()
 
bool handlePaymentRequest (const SendCoinsRecipient &recipient)
 
void showOutOfSyncWarning (bool fShow)
 
WalletViewcurrentWalletView () const
 
WalletModelcurrentWalletModel () const
 

Private Attributes

QStackedWidget * walletStack
 
BitcoinGUIgui
 
ClientModelclientModel
 
QMap< WalletModel *, WalletView * > mapWalletViews
 
bool bOutOfSync
 
const PlatformStyleplatformStyle
 

Detailed Description

A container for embedding all wallet-related controls into BitcoinGUI. The purpose of this class is to allow future refinements of the wallet controls with minimal need for further modifications to BitcoinGUI, thus greatly simplifying merges while reducing the risk of breaking top-level stuff.

Constructor & Destructor Documentation

◆ WalletFrame()

WalletFrame::WalletFrame ( const PlatformStyle platformStyle,
BitcoinGUI _gui = nullptr 
)
explicit

◆ ~WalletFrame()

WalletFrame::~WalletFrame ( )

Member Function Documentation

◆ addWallet()

void WalletFrame::addWallet ( WalletModel walletModel)

◆ backupWallet

void WalletFrame::backupWallet ( )
slot

Backup the wallet

◆ changePassphrase

void WalletFrame::changePassphrase ( )
slot

Change encrypted wallet passphrase

◆ currentWalletModel()

WalletModel * WalletFrame::currentWalletModel ( ) const

◆ currentWalletView()

WalletView * WalletFrame::currentWalletView ( ) const

◆ encryptWallet

void WalletFrame::encryptWallet ( bool  status)
slot

Encrypt the wallet

◆ gotoHistoryPage

void WalletFrame::gotoHistoryPage ( )
slot

Switch to history (transactions) page

◆ gotoOverviewPage

void WalletFrame::gotoOverviewPage ( )
slot

Switch to overview (home) page

◆ gotoReceiveCoinsPage

void WalletFrame::gotoReceiveCoinsPage ( )
slot

Switch to receive coins page

◆ gotoSendCoinsPage

void WalletFrame::gotoSendCoinsPage ( QString  addr = "")
slot

Switch to send coins page

◆ gotoSignMessageTab

void WalletFrame::gotoSignMessageTab ( QString  addr = "")
slot

Show Sign/Verify Message dialog and switch to sign message tab

◆ gotoVerifyMessageTab

void WalletFrame::gotoVerifyMessageTab ( QString  addr = "")
slot

Show Sign/Verify Message dialog and switch to verify message tab

◆ handlePaymentRequest()

bool WalletFrame::handlePaymentRequest ( const SendCoinsRecipient recipient)

◆ outOfSyncWarningClicked

void WalletFrame::outOfSyncWarningClicked ( )
slot

Pass on signal over requested out-of-sync-warning information

◆ removeAllWallets()

void WalletFrame::removeAllWallets ( )

◆ removeWallet()

void WalletFrame::removeWallet ( WalletModel wallet_model)

◆ requestedSyncWarningInfo

void WalletFrame::requestedSyncWarningInfo ( )
signal

Notify that the user has requested more information about the out-of-sync warning

◆ setClientModel()

void WalletFrame::setClientModel ( ClientModel clientModel)

◆ setCurrentWallet()

void WalletFrame::setCurrentWallet ( WalletModel wallet_model)

◆ showOutOfSyncWarning()

void WalletFrame::showOutOfSyncWarning ( bool  fShow)

◆ unlockWallet

void WalletFrame::unlockWallet ( )
slot

Ask for passphrase to unlock wallet temporarily

◆ usedReceivingAddresses

void WalletFrame::usedReceivingAddresses ( )
slot

Show used receiving addresses

◆ usedSendingAddresses

void WalletFrame::usedSendingAddresses ( )
slot

Show used sending addresses

Member Data Documentation

◆ bOutOfSync

bool WalletFrame::bOutOfSync
private

◆ clientModel

ClientModel* WalletFrame::clientModel
private

◆ gui

BitcoinGUI* WalletFrame::gui
private

◆ mapWalletViews

QMap<WalletModel*, WalletView*> WalletFrame::mapWalletViews
private

◆ platformStyle

const PlatformStyle* WalletFrame::platformStyle
private

◆ walletStack

QStackedWidget* WalletFrame::walletStack
private

The documentation for this class was generated from the following files: