Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F10615201
askpassphrasedialog.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1021 B
Subscribers
None
askpassphrasedialog.h
View Options
#ifndef ASKPASSPHRASEDIALOG_H
#define ASKPASSPHRASEDIALOG_H
#include
<QDialog>
namespace
Ui
{
class
AskPassphraseDialog
;
}
class
WalletModel
;
/** Multifunctional dialog to ask for passphrases. Used for encryption, unlocking, and changing the passphrase.
*/
class
AskPassphraseDialog
:
public
QDialog
{
Q_OBJECT
public
:
enum
Mode
{
Encrypt
,
/**< Ask passphrase twice and encrypt */
Unlock
,
/**< Ask passphrase and unlock */
ChangePass
,
/**< Ask old passphrase + new passphrase twice */
Decrypt
/**< Ask passphrase and decrypt wallet */
};
explicit
AskPassphraseDialog
(
Mode
mode
,
QWidget
*
parent
=
0
);
~
AskPassphraseDialog
();
void
accept
();
void
setModel
(
WalletModel
*
model
);
private
:
Ui
::
AskPassphraseDialog
*
ui
;
Mode
mode
;
WalletModel
*
model
;
bool
fCapsLock
;
private
slots
:
void
textChanged
();
bool
event
(
QEvent
*
event
);
bool
eventFilter
(
QObject
*
object
,
QEvent
*
event
);
};
#endif
// ASKPASSPHRASEDIALOG_H
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sat, Nov 23, 10:01 (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4513277
Default Alt Text
askpassphrasedialog.h (1021 B)
Attached To
rSTAGING Bitcoin ABC staging
Event Timeline
Log In to Comment