Dash Core  0.12.2.1
P2P Digital Currency
WalletView Class Reference

#include <walletview.h>

+ Inheritance diagram for WalletView:

Public Slots

void gotoOverviewPage ()
 
void gotoHistoryPage ()
 
void gotoMasternodePage ()
 
void gotoReceiveCoinsPage ()
 
void gotoSendCoinsPage (QString addr="")
 
void gotoSignMessageTab (QString addr="")
 
void gotoVerifyMessageTab (QString addr="")
 
void processNewTransaction (const QModelIndex &parent, int start, int)
 
void encryptWallet (bool status)
 
void backupWallet ()
 
void changePassphrase ()
 
void unlockWallet (bool fAnonymizeOnly=false)
 
void lockWallet ()
 
void usedSendingAddresses ()
 
void usedReceivingAddresses ()
 
void updateEncryptionStatus ()
 
void showProgress (const QString &title, int nProgress)
 
void requestedSyncWarningInfo ()
 
void trxAmount (QString amount)
 

Signals

void showNormalIfMinimized ()
 
void message (const QString &title, const QString &message, unsigned int style)
 
void encryptionStatusChanged (int status)
 
void hdEnabledStatusChanged (int hdEnabled)
 
void incomingTransaction (const QString &date, int unit, const CAmount &amount, const QString &type, const QString &address, const QString &label)
 
void outOfSyncWarningClicked ()
 

Public Member Functions

 WalletView (const PlatformStyle *platformStyle, QWidget *parent)
 
 ~WalletView ()
 
void setBitcoinGUI (BitcoinGUI *gui)
 
void setClientModel (ClientModel *clientModel)
 
void setWalletModel (WalletModel *walletModel)
 
bool handlePaymentRequest (const SendCoinsRecipient &recipient)
 
void showOutOfSyncWarning (bool fShow)
 

Private Attributes

ClientModelclientModel
 
WalletModelwalletModel
 
OverviewPageoverviewPage
 
QWidget * transactionsPage
 
ReceiveCoinsDialogreceiveCoinsPage
 
SendCoinsDialogsendCoinsPage
 
AddressBookPageusedSendingAddressesPage
 
AddressBookPageusedReceivingAddressesPage
 
MasternodeListmasternodeListPage
 
TransactionViewtransactionView
 
QProgressDialog * progressDialog
 
QLabel * transactionSum
 
const PlatformStyleplatformStyle
 

Detailed Description

Definition at line 36 of file walletview.h.

Constructor & Destructor Documentation

◆ WalletView()

WalletView::WalletView ( const PlatformStyle platformStyle,
QWidget *  parent 
)
explicit

Definition at line 35 of file walletview.cpp.

◆ ~WalletView()

WalletView::~WalletView ( )

Definition at line 110 of file walletview.cpp.

Member Function Documentation

◆ backupWallet

void WalletView::backupWallet ( )
slot

Backup the wallet

Definition at line 288 of file walletview.cpp.

Referenced by WalletFrame::backupWallet().

◆ changePassphrase

void WalletView::changePassphrase ( )
slot

Change encrypted wallet passphrase

Definition at line 307 of file walletview.cpp.

Referenced by WalletFrame::changePassphrase().

◆ encryptionStatusChanged

void WalletView::encryptionStatusChanged ( int  status)
signal

Encryption status of wallet changed

Definition at line 306 of file moc_walletview.cpp.

Referenced by setBitcoinGUI(), setWalletModel(), and updateEncryptionStatus().

◆ encryptWallet

void WalletView::encryptWallet ( bool  status)
slot

Encrypt the wallet

Definition at line 277 of file walletview.cpp.

Referenced by WalletFrame::encryptWallet().

◆ gotoHistoryPage

void WalletView::gotoHistoryPage ( )
slot

Switch to history (transactions) page

Definition at line 212 of file walletview.cpp.

Referenced by setBitcoinGUI().

◆ gotoMasternodePage

void WalletView::gotoMasternodePage ( )
slot

Switch to masternode page

Definition at line 217 of file walletview.cpp.

◆ gotoOverviewPage

void WalletView::gotoOverviewPage ( )
slot

Switch to overview (home) page

Definition at line 207 of file walletview.cpp.

Referenced by WalletFrame::addWallet().

◆ gotoReceiveCoinsPage

void WalletView::gotoReceiveCoinsPage ( )
slot

Switch to receive coins page

Definition at line 225 of file walletview.cpp.

◆ gotoSendCoinsPage

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

Switch to send coins page

Definition at line 230 of file walletview.cpp.

◆ gotoSignMessageTab

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

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

Definition at line 238 of file walletview.cpp.

Referenced by WalletFrame::gotoSignMessageTab().

◆ gotoVerifyMessageTab

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

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

Definition at line 250 of file walletview.cpp.

Referenced by WalletFrame::gotoVerifyMessageTab().

◆ handlePaymentRequest()

bool WalletView::handlePaymentRequest ( const SendCoinsRecipient recipient)

Definition at line 262 of file walletview.cpp.

Referenced by WalletFrame::handlePaymentRequest().

◆ hdEnabledStatusChanged

void WalletView::hdEnabledStatusChanged ( int  hdEnabled)
signal

HD-Enabled status of wallet changed (only possible during startup)

Definition at line 313 of file moc_walletview.cpp.

Referenced by setBitcoinGUI(), and setWalletModel().

◆ incomingTransaction

void WalletView::incomingTransaction ( const QString &  date,
int  unit,
const CAmount amount,
const QString &  type,
const QString &  address,
const QString &  label 
)
signal

Notify that a new transaction appeared

Definition at line 320 of file moc_walletview.cpp.

Referenced by processNewTransaction(), and setBitcoinGUI().

◆ lockWallet

void WalletView::lockWallet ( )
slot

Lock wallet

Definition at line 328 of file walletview.cpp.

Referenced by WalletFrame::lockWallet().

◆ message

void WalletView::message ( const QString &  title,
const QString &  message,
unsigned int  style 
)
signal

Fired when a message should be reported to the user

Definition at line 299 of file moc_walletview.cpp.

Referenced by backupWallet(), setBitcoinGUI(), setWalletModel(), and WalletView().

◆ outOfSyncWarningClicked

void WalletView::outOfSyncWarningClicked ( )
signal

Notify that the out of sync warning icon has been pressed

Definition at line 327 of file moc_walletview.cpp.

Referenced by requestedSyncWarningInfo(), and WalletView().

◆ processNewTransaction

void WalletView::processNewTransaction ( const QModelIndex &  parent,
int  start,
int   
)
slot

Show incoming transaction notification for new transactions.

The new items are those between start and end inclusive, under the given parent item.

Definition at line 187 of file walletview.cpp.

Referenced by setWalletModel().

◆ requestedSyncWarningInfo

void WalletView::requestedSyncWarningInfo ( )
slot

User has requested more information about the out of sync state

Definition at line 379 of file walletview.cpp.

Referenced by WalletView().

◆ setBitcoinGUI()

void WalletView::setBitcoinGUI ( BitcoinGUI gui)

Definition at line 114 of file walletview.cpp.

Referenced by WalletFrame::addWallet().

◆ setClientModel()

void WalletView::setClientModel ( ClientModel clientModel)

Set the client model. The client model represents the part of the core that communicates with the P2P network, and is wallet-agnostic.

Definition at line 135 of file walletview.cpp.

Referenced by WalletFrame::addWallet().

◆ setWalletModel()

void WalletView::setWalletModel ( WalletModel walletModel)

Set the wallet model. The wallet model represents a bitcoin wallet, and offers access to the list of transactions, address book and sending functionality.

Definition at line 147 of file walletview.cpp.

Referenced by WalletFrame::addWallet().

◆ showNormalIfMinimized

void WalletView::showNormalIfMinimized ( )
signal

Signal that we want to show the main window

Definition at line 293 of file moc_walletview.cpp.

◆ showOutOfSyncWarning()

void WalletView::showOutOfSyncWarning ( bool  fShow)

Definition at line 267 of file walletview.cpp.

Referenced by WalletFrame::addWallet().

◆ showProgress

void WalletView::showProgress ( const QString &  title,
int  nProgress 
)
slot

Show progress dialog e.g. for rescan

Definition at line 356 of file walletview.cpp.

Referenced by setWalletModel().

◆ trxAmount

void WalletView::trxAmount ( QString  amount)
slot

Update selected DASH amount from transactionview

Update wallet with the sum of the selected transactions

Definition at line 385 of file walletview.cpp.

Referenced by WalletView().

◆ unlockWallet

void WalletView::unlockWallet ( bool  fAnonymizeOnly = false)
slot

Ask for passphrase to unlock wallet temporarily

Definition at line 314 of file walletview.cpp.

Referenced by setWalletModel(), and WalletFrame::unlockWallet().

◆ updateEncryptionStatus

void WalletView::updateEncryptionStatus ( )
slot

Re-emit encryption status signal

Definition at line 272 of file walletview.cpp.

Referenced by encryptWallet(), WalletFrame::setCurrentWallet(), and setWalletModel().

◆ usedReceivingAddresses

void WalletView::usedReceivingAddresses ( )
slot

Show used receiving addresses

Definition at line 346 of file walletview.cpp.

Referenced by WalletFrame::usedReceivingAddresses().

◆ usedSendingAddresses

void WalletView::usedSendingAddresses ( )
slot

Show used sending addresses

Definition at line 336 of file walletview.cpp.

Referenced by WalletFrame::usedSendingAddresses().

Member Data Documentation

◆ clientModel

ClientModel* WalletView::clientModel
private

Definition at line 60 of file walletview.h.

Referenced by processNewTransaction(), and setClientModel().

◆ masternodeListPage

MasternodeList* WalletView::masternodeListPage
private

Definition at line 69 of file walletview.h.

Referenced by gotoMasternodePage(), setClientModel(), setWalletModel(), and WalletView().

◆ overviewPage

OverviewPage* WalletView::overviewPage
private

◆ platformStyle

const PlatformStyle* WalletView::platformStyle
private

Definition at line 75 of file walletview.h.

Referenced by gotoSignMessageTab(), gotoVerifyMessageTab(), and WalletView().

◆ progressDialog

QProgressDialog* WalletView::progressDialog
private

Definition at line 73 of file walletview.h.

Referenced by showProgress().

◆ receiveCoinsPage

ReceiveCoinsDialog* WalletView::receiveCoinsPage
private

Definition at line 65 of file walletview.h.

Referenced by gotoReceiveCoinsPage(), setWalletModel(), and WalletView().

◆ sendCoinsPage

SendCoinsDialog* WalletView::sendCoinsPage
private

◆ transactionsPage

QWidget* WalletView::transactionsPage
private

Definition at line 64 of file walletview.h.

Referenced by gotoHistoryPage(), and WalletView().

◆ transactionSum

QLabel* WalletView::transactionSum
private

Definition at line 74 of file walletview.h.

Referenced by trxAmount(), and WalletView().

◆ transactionView

TransactionView* WalletView::transactionView
private

Definition at line 71 of file walletview.h.

Referenced by setWalletModel(), and WalletView().

◆ usedReceivingAddressesPage

AddressBookPage* WalletView::usedReceivingAddressesPage
private

Definition at line 68 of file walletview.h.

Referenced by setWalletModel(), usedReceivingAddresses(), and WalletView().

◆ usedSendingAddressesPage

AddressBookPage* WalletView::usedSendingAddressesPage
private

Definition at line 67 of file walletview.h.

Referenced by setWalletModel(), usedSendingAddresses(), and WalletView().

◆ walletModel


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