Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Slots | Public Member Functions | Private Member Functions | Private Attributes | List of all members
WalletFrame Class Reference

#include <walletframe.h>

+ Inheritance diagram for WalletFrame:
+ Collaboration diagram for WalletFrame:

Public Slots

void gotoOverviewPage ()
 Switch to overview (home) page. More...
 
void gotoBalancesPage ()
 Switch to balances page. More...
 
void gotoHistoryPage ()
 Switch to history (transactions) page. More...
 
void gotoReceiveCoinsPage ()
 Switch to receive coins page. More...
 
void gotoSendCoinsPage (QString addr="")
 Switch to send coins page. More...
 
void gotoSignMessageTab (QString addr="")
 Show Sign/Verify Message dialog and switch to sign message tab. More...
 
void gotoVerifyMessageTab (QString addr="")
 Show Sign/Verify Message dialog and switch to verify message tab. More...
 
void encryptWallet (bool status)
 Encrypt the wallet. More...
 
void backupWallet ()
 Backup the wallet. More...
 
void changePassphrase ()
 Change encrypted wallet passphrase. More...
 
void unlockWallet ()
 Ask for passphrase to unlock wallet temporarily. More...
 
void usedSendingAddresses ()
 Show used sending addresses. More...
 
void usedReceivingAddresses ()
 Show used receiving addresses. More...
 

Public Member Functions

 WalletFrame (BitcoinGUI *_gui=0)
 
 ~WalletFrame ()
 
void setClientModel (ClientModel *clientModel)
 
bool addWallet (const QString &name, WalletModel *walletModel)
 
bool setCurrentWallet (const QString &name)
 
bool removeWallet (const QString &name)
 
void removeAllWallets ()
 
bool handlePaymentRequest (const SendCoinsRecipient &recipient)
 
void showOutOfSyncWarning (bool fShow)
 

Private Member Functions

WalletViewcurrentWalletView ()
 

Private Attributes

QStackedWidgetwalletStack
 
BitcoinGUIgui
 
ClientModelclientModel
 
QMap< QString, WalletView * > mapWalletViews
 
bool bOutOfSync
 

Detailed Description

Definition at line 21 of file walletframe.h.

Constructor & Destructor Documentation

WalletFrame::WalletFrame ( BitcoinGUI _gui = 0)
explicit

Definition at line 15 of file walletframe.cpp.

References walletStack.

WalletFrame::~WalletFrame ( )

Definition at line 31 of file walletframe.cpp.

Member Function Documentation

bool WalletFrame::addWallet ( const QString &  name,
WalletModel walletModel 
)

Definition at line 40 of file walletframe.cpp.

References bOutOfSync, clientModel, WalletView::gotoOverviewPage(), gui, mapWalletViews, WalletView::setBitcoinGUI(), WalletView::setClientModel(), WalletView::setWalletModel(), WalletView::showOutOfSyncWarning(), and walletStack.

+ Here is the call graph for this function:

void WalletFrame::backupWallet ( )
slot

Backup the wallet.

Definition at line 164 of file walletframe.cpp.

References WalletView::backupWallet(), and currentWalletView().

+ Here is the call graph for this function:

void WalletFrame::changePassphrase ( )
slot

Change encrypted wallet passphrase.

Definition at line 171 of file walletframe.cpp.

References WalletView::changePassphrase(), and currentWalletView().

+ Here is the call graph for this function:

WalletView * WalletFrame::currentWalletView ( )
private

Definition at line 199 of file walletframe.cpp.

References walletStack.

Referenced by backupWallet(), changePassphrase(), encryptWallet(), gotoSignMessageTab(), gotoVerifyMessageTab(), handlePaymentRequest(), unlockWallet(), usedReceivingAddresses(), and usedSendingAddresses().

+ Here is the caller graph for this function:

void WalletFrame::encryptWallet ( bool  status)
slot

Encrypt the wallet.

Definition at line 157 of file walletframe.cpp.

References currentWalletView(), and WalletView::encryptWallet().

+ Here is the call graph for this function:

void WalletFrame::gotoBalancesPage ( )
slot

Switch to balances page.

Definition at line 115 of file walletframe.cpp.

References mapWalletViews.

void WalletFrame::gotoHistoryPage ( )
slot

Switch to history (transactions) page.

Definition at line 122 of file walletframe.cpp.

References mapWalletViews.

void WalletFrame::gotoOverviewPage ( )
slot

Switch to overview (home) page.

Definition at line 108 of file walletframe.cpp.

References mapWalletViews.

void WalletFrame::gotoReceiveCoinsPage ( )
slot

Switch to receive coins page.

Definition at line 129 of file walletframe.cpp.

References mapWalletViews.

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

Switch to send coins page.

Definition at line 136 of file walletframe.cpp.

References mapWalletViews.

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

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

Definition at line 143 of file walletframe.cpp.

References currentWalletView(), and WalletView::gotoSignMessageTab().

+ Here is the call graph for this function:

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

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

Definition at line 150 of file walletframe.cpp.

References currentWalletView(), and WalletView::gotoVerifyMessageTab().

+ Here is the call graph for this function:

bool WalletFrame::handlePaymentRequest ( const SendCoinsRecipient recipient)

Definition at line 91 of file walletframe.cpp.

References currentWalletView(), and WalletView::handlePaymentRequest().

+ Here is the call graph for this function:

void WalletFrame::removeAllWallets ( )

Definition at line 83 of file walletframe.cpp.

References mapWalletViews, and walletStack.

bool WalletFrame::removeWallet ( const QString &  name)

Definition at line 73 of file walletframe.cpp.

References mapWalletViews, and walletStack.

void WalletFrame::setClientModel ( ClientModel clientModel)

Definition at line 35 of file walletframe.cpp.

References clientModel.

Referenced by BitcoinGUI::setClientModel().

+ Here is the caller graph for this function:

bool WalletFrame::setCurrentWallet ( const QString &  name)

Definition at line 62 of file walletframe.cpp.

References mapWalletViews, WalletView::updateEncryptionStatus(), and walletStack.

+ Here is the call graph for this function:

void WalletFrame::showOutOfSyncWarning ( bool  fShow)

Definition at line 100 of file walletframe.cpp.

References bOutOfSync, and mapWalletViews.

Referenced by BitcoinGUI::setNumBlocks().

+ Here is the caller graph for this function:

void WalletFrame::unlockWallet ( )
slot

Ask for passphrase to unlock wallet temporarily.

Definition at line 178 of file walletframe.cpp.

References currentWalletView(), and WalletView::unlockWallet().

+ Here is the call graph for this function:

void WalletFrame::usedReceivingAddresses ( )
slot

Show used receiving addresses.

Definition at line 192 of file walletframe.cpp.

References currentWalletView(), and WalletView::usedReceivingAddresses().

+ Here is the call graph for this function:

void WalletFrame::usedSendingAddresses ( )
slot

Show used sending addresses.

Definition at line 185 of file walletframe.cpp.

References currentWalletView(), and WalletView::usedSendingAddresses().

+ Here is the call graph for this function:

Member Data Documentation

bool WalletFrame::bOutOfSync
private

Definition at line 46 of file walletframe.h.

Referenced by addWallet(), and showOutOfSyncWarning().

ClientModel* WalletFrame::clientModel
private

Definition at line 43 of file walletframe.h.

Referenced by addWallet(), and setClientModel().

BitcoinGUI* WalletFrame::gui
private

Definition at line 42 of file walletframe.h.

Referenced by addWallet().

QMap<QString, WalletView*> WalletFrame::mapWalletViews
private
QStackedWidget* WalletFrame::walletStack
private

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