#include <QDialog>
class QLineEdit;
+class QLabel;
class QByteArray;
//! UserInterface class. Responsible for poping-up password query on the screen.
Incorrect, /*!< Incorrect password. */
Canceled
};
+
+ //! Constructor.
+ /*!
+ * Constructor to initialize a PasswordDialog instance.
+ * \param aParent The parent object.
+ * \param aPassword The password.
+ */
+ PasswordDialog( const QString &aPassword, const QString &aText, const QString &aTitle = "", QWidget *aParent = 0 );
+ //! Destructor.
+ virtual ~PasswordDialog();
+ //! Updates the text of the password dialog label.
+ /*!
+ * Updates the text of the password dialog label.
+ * \param aText The text for the label.
+ */
+ void update( const QString &aText );
signals:
//! Signals the authenticity of the password when the uuser dismisses the dialog.
void okButtonPressed();
void cancelButtonPressed();
-public:
- //! Constructor.
- /*!
- * Constructor to initialize a PasswordDialog instance.
- * \param aParent The parent object.
- * \param aPassword The password.
- */
- PasswordDialog( const QString &aPassword, const QString &aText, const QString &aTitle = "", QWidget *aParent = 0 );
- //! Destructor.
- virtual ~PasswordDialog();
-
+private:
QLineEdit *iPasswordEdit;
+ QLabel *iText;
QByteArray iPasswordHash;
};