Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Member Functions | Private Slots | Private Attributes | List of all members
AskPassphraseDialog Class Reference

Multifunctional dialog to ask for passphrases. More...

#include <askpassphrasedialog.h>

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

Public Types

enum  Mode { Encrypt , Unlock , ChangePass }
 

Public Member Functions

 AskPassphraseDialog (Mode mode, QWidget *parent, SecureString *passphrase_out=nullptr)
 
 ~AskPassphraseDialog ()
 
void accept () override
 
void setModel (WalletModel *model)
 

Protected Member Functions

bool event (QEvent *event) override
 
bool eventFilter (QObject *object, QEvent *event) override
 

Private Slots

void textChanged ()
 
void secureClearPassFields ()
 
void toggleShowPassword (bool)
 

Private Attributes

Ui::AskPassphraseDialog * ui
 
Mode mode
 
WalletModelmodel
 
bool fCapsLock
 
SecureStringm_passphrase_out
 

Detailed Description

Multifunctional dialog to ask for passphrases.

Used for encryption, unlocking, and changing the passphrase.

Definition at line 21 of file askpassphrasedialog.h.

Member Enumeration Documentation

◆ Mode

Enumerator
Encrypt 

Ask passphrase twice and encrypt.

Unlock 

Ask passphrase and unlock.

ChangePass 

Ask old passphrase + new passphrase twice.

Definition at line 25 of file askpassphrasedialog.h.

Constructor & Destructor Documentation

◆ AskPassphraseDialog()

AskPassphraseDialog::AskPassphraseDialog ( Mode  mode,
QWidget *  parent,
SecureString passphrase_out = nullptr 
)
explicit

Definition at line 21 of file askpassphrasedialog.cpp.

Here is the call graph for this function:

◆ ~AskPassphraseDialog()

AskPassphraseDialog::~AskPassphraseDialog ( )

Definition at line 78 of file askpassphrasedialog.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ accept()

void AskPassphraseDialog::accept ( )
override

Definition at line 87 of file askpassphrasedialog.cpp.

Here is the call graph for this function:

◆ event()

bool AskPassphraseDialog::event ( QEvent event)
overrideprotected

Definition at line 222 of file askpassphrasedialog.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ eventFilter()

bool AskPassphraseDialog::eventFilter ( QObject *  object,
QEvent event 
)
overrideprotected

Definition at line 246 of file askpassphrasedialog.cpp.

Here is the call graph for this function:

◆ secureClearPassFields

void AskPassphraseDialog::secureClearPassFields ( )
privateslot

Definition at line 278 of file askpassphrasedialog.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setModel()

void AskPassphraseDialog::setModel ( WalletModel model)

Definition at line 83 of file askpassphrasedialog.cpp.

Here is the call graph for this function:

◆ textChanged

void AskPassphraseDialog::textChanged ( )
privateslot

Definition at line 202 of file askpassphrasedialog.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toggleShowPassword

void AskPassphraseDialog::toggleShowPassword ( bool  show)
privateslot

Definition at line 238 of file askpassphrasedialog.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ fCapsLock

bool AskPassphraseDialog::fCapsLock
private

Definition at line 43 of file askpassphrasedialog.h.

◆ m_passphrase_out

SecureString* AskPassphraseDialog::m_passphrase_out
private

Definition at line 44 of file askpassphrasedialog.h.

◆ mode

Mode AskPassphraseDialog::mode
private

Definition at line 41 of file askpassphrasedialog.h.

◆ model

WalletModel* AskPassphraseDialog::model
private

Definition at line 42 of file askpassphrasedialog.h.

◆ ui

Ui::AskPassphraseDialog* AskPassphraseDialog::ui
private

Definition at line 40 of file askpassphrasedialog.h.


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