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