QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
qgscredentialdialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgscredentialdialog.h - description
3  -------------------
4  begin : February 2010
5  copyright : (C) 2010 by Juergen E. Fischer
6  email : jef at norbit dot de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 #ifndef QGSCREDENTIALDIALOG_H
18 #define QGSCREDENTIALDIALOG_H
19 
20 #include <ui_qgscredentialdialog.h>
21 #include <qgisgui.h>
22 #include "qgscredentials.h"
23 
24 #include <QString>
25 
26 
30 class GUI_EXPORT QgsCredentialDialog : public QDialog, public QgsCredentials, private Ui_QgsCredentialDialog
31 {
32  Q_OBJECT
33  public:
34  QgsCredentialDialog( QWidget *parent = 0, Qt::WindowFlags fl = QgisGui::ModalDialogFlags );
36 
37  signals:
38  void credentialsRequested( QString, QString *, QString *, QString, bool * );
39 
40  private slots:
41  void requestCredentials( QString, QString *, QString *, QString, bool * );
42 
43  protected:
44  virtual bool request( QString realm, QString &username, QString &password, QString message = QString::null ) override;
45 };
46 
47 #endif