GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
PinEntryDialog Class Reference
Inheritance diagram for PinEntryDialog:
Inheritance graph
Collaboration diagram for PinEntryDialog:
Collaboration graph

Classes

struct  ConstraintsOptions
 
struct  FormattedPassphraseOptions
 

Public Member Functions

 PinEntryDialog (QWidget *parent=0, const char *name=0, int timeout=0, bool modal=false, bool enable_quality_bar=false, const QString &repeatString=QString(), const QString &visibiltyTT=QString(), const QString &hideTT=QString())
 
void setDescription (const QString &)
 
QString description () const
 
void setError (const QString &)
 
QString error () const
 
void setPin (const QString &)
 
QString pin () const
 
QString repeatedPin () const
 
void setRepeatErrorText (const QString &)
 
void setPrompt (const QString &)
 
QString prompt () const
 
void setOkText (const QString &)
 
void setCancelText (const QString &)
 
void setQualityBar (const QString &)
 
void setQualityBarTT (const QString &)
 
void setGenpinLabel (const QString &)
 
void setGenpinTT (const QString &)
 
void setCapsLockHint (const QString &)
 
void setFormattedPassphrase (const FormattedPassphraseOptions &options)
 
void setConstraintsOptions (const ConstraintsOptions &options)
 
void setPinentryInfo (struct pinentry)
 
bool timedOut () const
 

Protected Slots

void updateQuality (const QString &)
 
void slotTimeout ()
 
void textChanged (const QString &)
 
void focusChanged (QWidget *old, QWidget *now)
 
void toggleVisibility ()
 
void onBackspace ()
 
void generatePin ()
 
void toggleFormattedPassphrase ()
 

Protected Member Functions

void keyPressEvent (QKeyEvent *event) override
 
void keyReleaseEvent (QKeyEvent *event) override
 
void showEvent (QShowEvent *event) override
 

Properties

QString description
 
QString error
 
QString pin
 
QString prompt
 

Private Types

enum  PassphraseCheckResult { PassphraseNotChecked = -1 , PassphraseNotOk = 0 , PassphraseOk }
 

Private Slots

void cancelTimeout ()
 
void checkCapsLock ()
 
void onAccept ()
 

Private Attributes

QLabel * _icon = nullptr
 
QLabel * _desc = nullptr
 
QLabel * _error = nullptr
 
QLabel * _prompt = nullptr
 
QLabel * _quality_bar_label = nullptr
 
QProgressBar * _quality_bar = nullptr
 
PinLineEdit_edit = nullptr
 
PinLineEditmRepeat = nullptr
 
QLabel * mRepeatError = nullptr
 
QPushButton * _ok = nullptr
 
QPushButton * _cancel = nullptr
 
bool _grabbed = false
 
bool _have_quality_bar = false
 
bool _timed_out = false
 
bool _disable_echo_allowed = true
 
bool mEnforceConstraints = false
 
bool mFormatPassphrase = false
 
GpgFrontend::SecureUniquePtr< struct pinentry_pinentry_info = nullptr
 
QTimer * _timer = nullptr
 
QString mVisibilityTT
 
QString mHideTT
 
QAction * mVisiActionEdit = nullptr
 
QPushButton * mGenerateButton = nullptr
 
QCheckBox * mVisiCB = nullptr
 
QLabel * mFormattedPassphraseHint = nullptr
 
QLabel * mFormattedPassphraseHintSpacer = nullptr
 
QLabel * mCapsLockHint = nullptr
 
QLabel * mConstraintsHint = nullptr
 
QString mConstraintsErrorTitle
 

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