1 #ifndef PASSWORDDIALOG_H_
2 #define PASSWORDDIALOG_H_
9 //! UserInterface class. Responsible for poping-up password query on the screen.
11 * UserInterface class. Responsible for poping-up password query on the screen. The class is used
12 * through static method, just like the QMessageBox in the standard Qt library.
14 class PasswordDialog : public QDialog
19 //! Enumeration of password authenticity.
21 * Password authenticity.
25 Correct, /*!< Correct password. */
26 Incorrect, /*!< Incorrect password. */
31 //! Signals the authenticity of the password when the uuser dismisses the dialog.
33 * The signal is emitted if user presses a key available for the dialog.
34 * \param aStatus Password authenticity.
36 void passwordEntered( PasswordDialog::PasswordStatus aStatus );
39 void okButtonPressed();
40 void cancelButtonPressed();
45 * Constructor to initialize a PasswordDialog instance.
46 * \param aParent The parent object.
47 * \param aPassword The password.
49 PasswordDialog( const QString &aPassword, const QString &aText, const QString &aTitle = "", QWidget *aParent = 0 );
51 virtual ~PasswordDialog();
53 QLineEdit *iPasswordEdit;
54 QByteArray iPasswordHash;
57 #endif /*PASSWORDDIALOG_H_*/