LibEngsas
esqllogindialog.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2010 - 2013 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Lesser General Public
6  License as published by the Free Software Foundation; either
7  version 2.1 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Lesser General Public License for more details.
13 
14  You should have received a copy of the GNU Lesser General Public
15  License along with this library; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17  MA 02110-1301 USA.
18 */
19 
20 #ifndef ESQLLOGINDIALOG_H
21 #define ESQLLOGINDIALOG_H
22 
23 #include "edialog.h"
24 
25 
26 namespace Ui{
27  class ESqlLoginDialog;
28 }
29 
30 namespace KWallet {
31  class Wallet;
32 }
33 
39 class ESqlLoginDialog : public EDialog
40 {
41  Q_OBJECT
42  public:
43  ESqlLoginDialog ( QWidget *parent = NULL );
44  ESqlLoginDialog ( QString title, QWidget *parent = NULL );
46  void setUsername(QString name);
47  QString username() const;
48  void setPassword(QString password);
49  QString password() const;
50  void displayError ( QString msg );
51  void displayInformation ( QString msg );
52 
53  protected:
54  void changeEvent ( QEvent *e );
55 
56  private slots:
57  void usernameChanged();
58 
59  private:
60  void init();
61 
62  Ui::ESqlLoginDialog *m_ui;
63  KWallet::Wallet *wallet;
64 };
65 
66 #endif // ESQLLOGINDIALOG_H
void setPassword(QString password)
Definition: esqllogindialog.cpp:53
void displayInformation(QString msg)
Definition: esqllogindialog.cpp:68
Definition: esqldatabase.h:27
~ESqlLoginDialog()
Definition: esqllogindialog.cpp:37
ESqlLoginDialog(QWidget *parent=NULL)
Definition: esqllogindialog.cpp:24
Definition: eaboutdialog.h:28
void usernameChanged()
Definition: esqllogindialog.cpp:86
void init()
Definition: esqllogindialog.cpp:106
KWallet::Wallet * wallet
Definition: esqllogindialog.h:63
void setUsername(QString name)
Definition: esqllogindialog.cpp:43
void displayError(QString msg)
Definition: esqllogindialog.cpp:63
void changeEvent(QEvent *e)
Definition: esqllogindialog.cpp:73
Mostly the same as EWidget but for QDialog as base class.
Definition: edialog.h:54
Ui::ESqlLoginDialog * m_ui
Definition: esqllogindialog.h:62
QString password() const
Definition: esqllogindialog.cpp:58
QString username() const
Definition: esqllogindialog.cpp:48
Displays a login dialog for a database.
Definition: esqllogindialog.h:39