MagicSmoke  $VERSION$
passwdchg.h
Go to the documentation of this file.
1 //
2 // C++ Interface: overview
3 //
4 // Description:
5 //
6 //
7 // Author: Konrad Rosenbaum <konrad@silmor.de>, (C) 2007-2011
8 //
9 // Copyright: See README/COPYING.GPL files that come with this distribution
10 //
11 //
12 
13 #ifndef MAGICSMOKE_PASSWDCHG_H
14 #define MAGICSMOKE_PASSWDCHG_H
15 
16 #include <QDialog>
17 
18 class QLabel;
19 class QLineEdit;
20 class QPushButton;
21 
23 class MPasswordChange:public QDialog
24 {
25  Q_OBJECT
26  public:
28  MPasswordChange(QWidget*parent,QString user=QString());
29 
31  QString oldPassword();
33  QString newPassword();
34  private:
35  QLineEdit *oldpwd,*newpwd1,*newpwd2;
36 };
37 
38 #endif
Helper dialog for changing passwords.
Definition: passwdchg.h:23
QString newPassword()
returns new password, or empty if the two lines don't match
Definition: passwdchg.cpp:59
QString oldPassword()
if own password: return old password
Definition: passwdchg.cpp:53
MPasswordChange(QWidget *parent, QString user=QString())
creates a password change dialog, if user is empty it is presumed to change own password ...
Definition: passwdchg.cpp:21