blob: cf8088b4c22ccc8efce798f53ecc61edcd081ace (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#ifndef PASSWORDDIALOG_H
#define PASSWORDDIALOG_H
#include <QAbstractButton>
#include <QDebug>
#include <QDialog>
#include <QString>
namespace Ui {
class PasswordDialog;
}
/**
* @brief Fragt den Benutzer nach einem Passwort.
*/
class PasswordDialog : public QDialog
{
Q_OBJECT
public:
/**
* @brief Öffnet ein neues Fenster zur Passwortabfrage.
* @param parent Zeiger auf das aufrufende Widget.
*/
explicit PasswordDialog(QWidget *parent = 0);
/**
* @brief Löscht das User Interface.
*/
~PasswordDialog();
/**
* @brief Gibt die Eingabe aus dem Passwortfeld zurück.
* @return Das eingegebene Passwort.
*/
QString getPassword();
private slots:
/**
* @brief Setzt das Passwortfeld zurück, wenn der Zurücksetzen Butten gedrückt wurde.
* @param button Der Gedrückt Button.
*/
void on_buttonBox_clicked(QAbstractButton *button);
private:
Ui::PasswordDialog *ui;
};
#endif // PASSWORDDIALOG_H
|