X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2FUserInterface%2FUtils%2FPasswordDialog.h;h=c62223c81d14ed3ce8005b4ebedc944da0e27c3c;hb=eb6ca54521e6bef025029bab59bea3b76f7daa40;hp=686523b40f13dea99dcefaf977cca03f326be9e2;hpb=b590c3398df1f43323753e222ce78b8b57de5264;p=qtmeetings diff --git a/src/UserInterface/Utils/PasswordDialog.h b/src/UserInterface/Utils/PasswordDialog.h index 686523b..c62223c 100644 --- a/src/UserInterface/Utils/PasswordDialog.h +++ b/src/UserInterface/Utils/PasswordDialog.h @@ -4,6 +4,7 @@ #include class QLineEdit; +class QLabel; class QByteArray; //! UserInterface class. Responsible for poping-up password query on the screen. @@ -26,6 +27,22 @@ public: 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. @@ -39,18 +56,9 @@ private slots: 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; };