You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.2 KiB

// Copyright (c) 2011-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or
#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
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);
void accept();
void setModel(WalletModel *model);
Ui::AskPassphraseDialog *ui;
Mode mode;
WalletModel *model;
bool fCapsLock;
private slots:
void textChanged();
bool event(QEvent *event);
bool eventFilter(QObject *object, QEvent *event);