summaryrefslogtreecommitdiffstats
path: root/passworddialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'passworddialog.h')
-rw-r--r--passworddialog.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/passworddialog.h b/passworddialog.h
index 3db9b1f..9d894ec 100644
--- a/passworddialog.h
+++ b/passworddialog.h
@@ -1,7 +1,10 @@
#ifndef PASSWORDDIALOG_H
#define PASSWORDDIALOG_H
+#include <QAbstractButton>
+#include <QDebug>
#include <QDialog>
+#include <QString>
namespace Ui {
class PasswordDialog;
@@ -12,9 +15,36 @@ class PasswordDialog : public QDialog
Q_OBJECT
public:
+ /**
+ * @brief PasswordDialog
+ * Öffnent ein Neues Fenster zur Passwortapfrage.
+ * @param parent
+ * Zeiger auf das Aufrufende widget.
+ */
explicit PasswordDialog(QWidget *parent = 0);
+
+ /**
+ * @brief PasswordDialog
+ * Löscht das User Interface.
+ */
~PasswordDialog();
+ /**
+ * @brief getPassword
+ * Gibt die Eingabe aus dem Passwortfeld zurück.
+ * @return Das eingebenes Passwort.
+ */
+ QString getPassword();
+
+private slots:
+ /**
+ * @brief on_buttonBox_clicked
+ * Setz das Passwortfeld Zurück wenn der Zurücksetzen Butten gefrückt wurde.
+ * @param button
+ * Der Gedrückt Button.
+ */
+ void on_buttonBox_clicked(QAbstractButton *button);
+
private:
Ui::PasswordDialog *ui;
};