PRCYCoin  2.0.0.7rc1
P2P Digital Currency
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 {
  Mode::Encrypt, Mode::UnlockStaking, Mode::Unlock, Mode::ChangePass,
  Mode::Decrypt
}
 
enum  Context {
  Context::Unlock_Menu, Context::Unlock_Full, Context::Encrypt, Context::ToggleLock,
  Context::ChangePass, Context::Send, Context::BIP_38, Context::Multi_Sig,
  Context::Sign_Message
}
 

Public Member Functions

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

Protected Member Functions

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

Private Slots

void textChanged ()
 
void on_showPassphraseCheckBox_clicked ()
 

Private Attributes

Ui::AskPassphraseDialog * ui
 
Mode mode
 
WalletModelmodel
 
Context context
 
bool fCapsLock
 

Detailed Description

Multifunctional dialog to ask for passphrases.

Used for encryption, unlocking, and changing the passphrase.

Definition at line 19 of file askpassphrasedialog.h.

Member Enumeration Documentation

◆ Context

Enumerator
Unlock_Menu 
Unlock_Full 

Unlock wallet from menu

Encrypt 

Wallet needs to be fully unlocked.

ToggleLock 

Encrypt unencrypted wallet.

ChangePass 

Toggle wallet lock state.

Send 

Change passphrase.

BIP_38 

Send PRCY.

Multi_Sig 

BIP38 menu.

Sign_Message 

Multi-Signature dialog.

Sign/verify message dialog

Definition at line 34 of file askpassphrasedialog.h.

◆ Mode

Enumerator
Encrypt 

Ask passphrase twice and encrypt.

UnlockStaking 

Ask passphrase and unlock only for staking.

Unlock 

Ask passphrase and unlock.

ChangePass 

Ask old passphrase + new passphrase twice.

Decrypt 

Ask passphrase and decrypt wallet.

Definition at line 24 of file askpassphrasedialog.h.

Constructor & Destructor Documentation

◆ AskPassphraseDialog()

AskPassphraseDialog::AskPassphraseDialog ( Mode  mode,
QWidget *  parent,
WalletModel model,
Context  context 
)
explicit

Definition at line 20 of file askpassphrasedialog.cpp.

◆ ~AskPassphraseDialog()

AskPassphraseDialog::~AskPassphraseDialog ( )

Definition at line 97 of file askpassphrasedialog.cpp.

Member Function Documentation

◆ accept()

void AskPassphraseDialog::accept ( )
Todo:
: get rid of this .c_str() by implementing SecureString::operator=(std::string)

Definition at line 106 of file askpassphrasedialog.cpp.

◆ event()

bool AskPassphraseDialog::event ( QEvent *  event)
protected

Definition at line 241 of file askpassphrasedialog.cpp.

Here is the caller graph for this function:

◆ eventFilter()

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

Definition at line 258 of file askpassphrasedialog.cpp.

Here is the call graph for this function:

◆ on_showPassphraseCheckBox_clicked

void AskPassphraseDialog::on_showPassphraseCheckBox_clicked ( )
privateslot

Definition at line 284 of file askpassphrasedialog.cpp.

◆ textChanged

void AskPassphraseDialog::textChanged ( )
privateslot

Definition at line 221 of file askpassphrasedialog.cpp.

Member Data Documentation

◆ context

Context AskPassphraseDialog::context
private

Definition at line 55 of file askpassphrasedialog.h.

◆ fCapsLock

bool AskPassphraseDialog::fCapsLock
private

Definition at line 56 of file askpassphrasedialog.h.

◆ mode

Mode AskPassphraseDialog::mode
private

Definition at line 53 of file askpassphrasedialog.h.

◆ model

WalletModel* AskPassphraseDialog::model
private

Definition at line 54 of file askpassphrasedialog.h.

◆ ui

Ui::AskPassphraseDialog* AskPassphraseDialog::ui
private

Definition at line 52 of file askpassphrasedialog.h.


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