Fabcoin Core  0.16.2
P2P Digital Currency
Public Slots | Signals | Public Member Functions | Private Attributes | List of all members
WalletView Class Reference

#include <walletview.h>

Inheritance diagram for WalletView:
[legend]
Collaboration diagram for WalletView:
[legend]

Public Slots

void gotoOverviewPage ()
 Switch to overview (home) 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 gotoCreateContractPage ()
 Switch to create contract page. More...
 
void gotoSendToContractPage ()
 Switch to send contract page. More...
 
void gotoCallContractPage ()
 Switch to call contract page. More...
 
void gotoSendTokenPage ()
 Switch to Send Token page. More...
 
void gotoReceiveTokenPage ()
 Switch to Receive Token page. More...
 
void gotoAddTokenPage ()
 Switch to Add Token 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 processNewTransaction (const QModelIndex &parent, int start, int)
 Show incoming transaction notification for new transactions. More...
 
void processNewTokenTransaction (const QModelIndex &parent, int start, int)
 Show incoming token transaction notification for new token transactions. More...
 
void encryptWallet (bool status)
 Encrypt the wallet. More...
 
void backupWallet ()
 Backup the wallet. More...
 
void restoreWallet ()
 Restore the wallet. More...
 
void changePassphrase ()
 Change encrypted wallet passphrase. More...
 
void unlockWallet (bool fromMenu=false)
 Ask for passphrase to unlock wallet temporarily. More...
 
void lockWallet ()
 Lock the wallet. More...
 
void usedSendingAddresses ()
 Show used sending addresses. More...
 
void usedReceivingAddresses ()
 Show used receiving addresses. More...
 
void updateEncryptionStatus ()
 Re-emit encryption status signal. More...
 
void showProgress (const QString &title, int nProgress)
 Show progress dialog e.g. More...
 
void requestedSyncWarningInfo ()
 User has requested more information about the out of sync state. More...
 

Signals

void showNormalIfMinimized ()
 Signal that we want to show the main window. More...
 
void message (const QString &title, const QString &message, unsigned int style)
 Fired when a message should be reported to the user. More...
 
void encryptionStatusChanged (int status)
 Encryption status of wallet changed. More...
 
void hdEnabledStatusChanged (int hdEnabled)
 HD-Enabled status of wallet changed (only possible during startup) More...
 
void incomingTransaction (const QString &date, int unit, const CAmount &amount, const QString &type, const QString &address, const QString &label)
 Notify that a new transaction appeared. More...
 
void incomingTokenTransaction (const QString &date, const QString &amount, const QString &type, const QString &address, const QString &label, const QString &title)
 Notify that a new token transaction appeared. More...
 
void outOfSyncWarningClicked ()
 Notify that the out of sync warning icon has been pressed. More...
 

Public Member Functions

 WalletView (const PlatformStyle *platformStyle, QWidget *parent)
 
 ~WalletView ()
 
void setFabcoinGUI (FabcoinGUI *gui)
 
void setClientModel (ClientModel *clientModel)
 Set the client model. More...
 
void setWalletModel (WalletModel *walletModel)
 Set the wallet model. More...
 
bool handlePaymentRequest (const SendCoinsRecipient &recipient)
 
void showOutOfSyncWarning (bool fShow)
 

Private Attributes

ClientModelclientModel
 
WalletModelwalletModel
 
OverviewPageoverviewPage
 
QWidget * transactionsPage
 
ReceiveCoinsDialogreceiveCoinsPage
 
SendCoinsDialogsendCoinsPage
 
AddressBookPageusedSendingAddressesPage
 
AddressBookPageusedReceivingAddressesPage
 
CreateContractcreateContractPage
 
SendToContractsendToContractPage
 
CallContractcallContractPage
 
QRCTokenQRCTokenPage
 
TransactionViewtransactionView
 
QProgressDialog * progressDialog
 
const PlatformStyleplatformStyle
 

Detailed Description

Definition at line 38 of file walletview.h.

Constructor & Destructor Documentation

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

Definition at line 39 of file walletview.cpp.

Here is the call graph for this function:

WalletView::~WalletView ( )

Definition at line 98 of file walletview.cpp.

Member Function Documentation

void WalletView::backupWallet ( )
slot

Backup the wallet.

Definition at line 342 of file walletview.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void WalletView::changePassphrase ( )
slot

Change encrypted wallet passphrase.

Definition at line 368 of file walletview.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void WalletView::encryptionStatusChanged ( int  status)
signal

Encryption status of wallet changed.

Definition at line 343 of file moc_walletview.cpp.

Here is the caller graph for this function:

void WalletView::encryptWallet ( bool  status)
slot

Encrypt the wallet.

Definition at line 331 of file walletview.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void WalletView::gotoAddTokenPage ( )
slot

Switch to Add Token page.

Definition at line 286 of file walletview.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void WalletView::gotoCallContractPage ( )
slot

Switch to call contract page.

Definition at line 269 of file walletview.cpp.

void WalletView::gotoCreateContractPage ( )
slot

Switch to create contract page.

Definition at line 259 of file walletview.cpp.

void WalletView::gotoHistoryPage ( )
slot

Switch to history (transactions) page.

Definition at line 241 of file walletview.cpp.

Here is the caller graph for this function:

void WalletView::gotoOverviewPage ( )
slot

Switch to overview (home) page.

Definition at line 236 of file walletview.cpp.

Here is the caller graph for this function:

void WalletView::gotoReceiveCoinsPage ( )
slot

Switch to receive coins page.

Definition at line 246 of file walletview.cpp.

void WalletView::gotoReceiveTokenPage ( )
slot

Switch to Receive Token page.

Definition at line 280 of file walletview.cpp.

Here is the call graph for this function:

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

Switch to send coins page.

Definition at line 251 of file walletview.cpp.

Here is the call graph for this function:

void WalletView::gotoSendToContractPage ( )
slot

Switch to send contract page.

Definition at line 264 of file walletview.cpp.

void WalletView::gotoSendTokenPage ( )
slot

Switch to Send Token page.

Definition at line 274 of file walletview.cpp.

Here is the call graph for this function:

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

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

Definition at line 292 of file walletview.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

Definition at line 304 of file walletview.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool WalletView::handlePaymentRequest ( const SendCoinsRecipient recipient)

Definition at line 316 of file walletview.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void WalletView::hdEnabledStatusChanged ( int  hdEnabled)
signal

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

Definition at line 350 of file moc_walletview.cpp.

Here is the caller graph for this function:

void WalletView::incomingTokenTransaction ( const QString &  date,
const QString &  amount,
const QString &  type,
const QString &  address,
const QString &  label,
const QString &  title 
)
signal

Notify that a new token transaction appeared.

Definition at line 364 of file moc_walletview.cpp.

Here is the caller graph for this function:

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 357 of file moc_walletview.cpp.

Here is the caller graph for this function:

void WalletView::lockWallet ( )
slot

Lock the wallet.

Definition at line 390 of file walletview.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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 336 of file moc_walletview.cpp.

Here is the caller graph for this function:

void WalletView::outOfSyncWarningClicked ( )
signal

Notify that the out of sync warning icon has been pressed.

Definition at line 371 of file moc_walletview.cpp.

Here is the caller graph for this function:

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

Show incoming token transaction notification for new token transactions.

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

Definition at line 205 of file walletview.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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 185 of file walletview.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void WalletView::requestedSyncWarningInfo ( )
slot

User has requested more information about the out of sync state.

Definition at line 441 of file walletview.cpp.

Here is the caller graph for this function:

void WalletView::restoreWallet ( )
slot

Restore the wallet.

Definition at line 361 of file walletview.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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 129 of file walletview.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void WalletView::setFabcoinGUI ( FabcoinGUI gui)

Definition at line 102 of file walletview.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void WalletView::setWalletModel ( WalletModel walletModel)

Set the wallet model.

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

Definition at line 141 of file walletview.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void WalletView::showNormalIfMinimized ( )
signal

Signal that we want to show the main window.

Definition at line 330 of file moc_walletview.cpp.

void WalletView::showOutOfSyncWarning ( bool  fShow)

Definition at line 321 of file walletview.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Show progress dialog e.g.

for rescan

Definition at line 418 of file walletview.cpp.

Here is the caller graph for this function:

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

Ask for passphrase to unlock wallet temporarily.

Definition at line 375 of file walletview.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void WalletView::updateEncryptionStatus ( )
slot

Re-emit encryption status signal.

Definition at line 326 of file walletview.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void WalletView::usedReceivingAddresses ( )
slot

Show used receiving addresses.

Definition at line 408 of file walletview.cpp.

Here is the caller graph for this function:

void WalletView::usedSendingAddresses ( )
slot

Show used sending addresses.

Definition at line 398 of file walletview.cpp.

Here is the caller graph for this function:

Member Data Documentation

CallContract* WalletView::callContractPage
private

Definition at line 73 of file walletview.h.

ClientModel* WalletView::clientModel
private

Definition at line 62 of file walletview.h.

CreateContract* WalletView::createContractPage
private

Definition at line 71 of file walletview.h.

OverviewPage* WalletView::overviewPage
private

Definition at line 65 of file walletview.h.

const PlatformStyle* WalletView::platformStyle
private

Definition at line 79 of file walletview.h.

QProgressDialog* WalletView::progressDialog
private

Definition at line 78 of file walletview.h.

QRCToken* WalletView::QRCTokenPage
private

Definition at line 74 of file walletview.h.

ReceiveCoinsDialog* WalletView::receiveCoinsPage
private

Definition at line 67 of file walletview.h.

SendCoinsDialog* WalletView::sendCoinsPage
private

Definition at line 68 of file walletview.h.

SendToContract* WalletView::sendToContractPage
private

Definition at line 72 of file walletview.h.

QWidget* WalletView::transactionsPage
private

Definition at line 66 of file walletview.h.

TransactionView* WalletView::transactionView
private

Definition at line 76 of file walletview.h.

AddressBookPage* WalletView::usedReceivingAddressesPage
private

Definition at line 70 of file walletview.h.

AddressBookPage* WalletView::usedSendingAddressesPage
private

Definition at line 69 of file walletview.h.

WalletModel* WalletView::walletModel
private

Definition at line 63 of file walletview.h.


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