Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

Multifunctional dialog to ask for passphrases. More...

#include <askpassphrasedialog.h>

+ Inheritance diagram for AskPassphraseDialog:
+ Collaboration diagram for AskPassphraseDialog:

Public Types

enum  Mode {
  Encrypt, UnlockMixing, Unlock, ChangePass,
  Decrypt
}
 

Public Member Functions

 AskPassphraseDialog (Mode mode, QWidget *parent)
 
 ~AskPassphraseDialog ()
 
void accept ()
 
void setModel (WalletModel *model)
 

Protected Member Functions

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

Private Slots

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

Private Attributes

Ui::AskPassphraseDialog * ui
 
Mode mode
 
WalletModelmodel
 
bool fCapsLock
 

Detailed Description

Multifunctional dialog to ask for passphrases.

Used for encryption, unlocking, and changing the passphrase.

Definition at line 18 of file askpassphrasedialog.h.

Member Enumeration Documentation

◆ Mode

Enumerator
Encrypt 

Ask passphrase twice and encrypt.

UnlockMixing 

Ask passphrase and unlock only for mixing.

Unlock 

Ask passphrase and unlock.

ChangePass 

Ask old passphrase + new passphrase twice.

Decrypt 

Ask passphrase and decrypt wallet.

Definition at line 23 of file askpassphrasedialog.h.

Constructor & Destructor Documentation

◆ AskPassphraseDialog()

AskPassphraseDialog::AskPassphraseDialog ( Mode  mode,
QWidget *  parent 
)
explicit

◆ ~AskPassphraseDialog()

AskPassphraseDialog::~AskPassphraseDialog ( )

Definition at line 95 of file askpassphrasedialog.cpp.

References secureClearPassFields(), and ui.

Member Function Documentation

◆ accept()

◆ event()

bool AskPassphraseDialog::event ( QEvent *  event)
protected

Definition at line 253 of file askpassphrasedialog.cpp.

References fCapsLock, and ui.

Referenced by eventFilter().

◆ eventFilter()

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

Definition at line 279 of file askpassphrasedialog.cpp.

References event(), fCapsLock, and ui.

◆ secureClearPassFields

void AskPassphraseDialog::secureClearPassFields ( )
privateslot

Definition at line 312 of file askpassphrasedialog.cpp.

References SecureClearQLineEdit(), and ui.

Referenced by accept(), and ~AskPassphraseDialog().

◆ setModel()

void AskPassphraseDialog::setModel ( WalletModel model)

◆ textChanged

void AskPassphraseDialog::textChanged ( )
privateslot

Definition at line 232 of file askpassphrasedialog.cpp.

References ChangePass, Decrypt, Encrypt, mode, ui, Unlock, and UnlockMixing.

Referenced by AskPassphraseDialog().

◆ toggleShowPassword

void AskPassphraseDialog::toggleShowPassword ( bool  show)
privateslot

Definition at line 270 of file askpassphrasedialog.cpp.

References mode, and ui.

Referenced by AskPassphraseDialog().

Member Data Documentation

◆ fCapsLock

bool AskPassphraseDialog::fCapsLock
private

Definition at line 42 of file askpassphrasedialog.h.

Referenced by event(), and eventFilter().

◆ mode

Mode AskPassphraseDialog::mode
private

Definition at line 40 of file askpassphrasedialog.h.

Referenced by accept(), AskPassphraseDialog(), textChanged(), and toggleShowPassword().

◆ model

WalletModel* AskPassphraseDialog::model
private

Definition at line 41 of file askpassphrasedialog.h.

Referenced by accept(), and setModel().

◆ ui

Ui::AskPassphraseDialog* AskPassphraseDialog::ui
private

The documentation for this class was generated from the following files:
Released under the MIT license