blob: 9d894ecb02b6112ca0ba991138f7a4f5ace4e445 (
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
49
50
51
52
|
#ifndef PASSWORDDIALOG_H
#define PASSWORDDIALOG_H
#include <QAbstractButton>
#include <QDebug>
#include <QDialog>
#include <QString>
namespace Ui {
class PasswordDialog;
}
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;
};
#endif // PASSWORDDIALOG_H
|