- Re-factored the code so that Engine is now the main class that owns WindowManager...
[qtmeetings] / src / UserInterface / Utils / PasswordDialog.h
index 5bf8c62..686523b 100644 (file)
@@ -27,18 +27,6 @@ public:
                Canceled
        };
 
-       //! Creates a new PasswordDialog instance and shows the dialog on the screen.
-       /*!
-        * Creates a new Password query dialog.
-        * \param aParent The parent object.
-        * \param aPassword The password.
-        * \param aText Optional. Text displayed in the dialog.
-        * \param aTitle Optional. Dialog title, defaults to "Enter password".
-        * \return The instance which was created.
-        */
-       static PasswordDialog * query( QWidget *aParent, const QString &aPassword,
-                                                const QString &aText = 0, const QString &aTitle = 0 );
-
 signals:
        //! Signals the authenticity of the password when the uuser dismisses the dialog.
        /*!
@@ -51,14 +39,14 @@ private slots:
        void okButtonPressed();
        void cancelButtonPressed();
 
-private:
+public:
        //! Constructor.
        /*!
         * Constructor to initialize a PasswordDialog instance.
         * \param aParent The parent object.
         * \param aPassword The password.
         */
-       PasswordDialog( QWidget *aParent, const QString &aPassword, const QString &aText, const QString &aTitle );
+       PasswordDialog( const QString &aPassword, const QString &aText, const QString &aTitle = "", QWidget *aParent = 0 );
        //! Destructor.
        virtual ~PasswordDialog();