QGIS API Documentation  3.20.0-Odense (decaadbb31)
qgsnewogrconnection.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsnewogrconnection.h - description
3  -------------------
4  begin : Mon Jan 2 2009
5  copyright : (C) 2009 by Godofredo Contreras Nava
6  email : frdcn at hotmail.com
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 
18 #ifndef QGSNEWOGRCONNECTION_H
19 #define QGSNEWOGRCONNECTION_H
20 
21 #define SIP_NO_FILE
22 
23 #include "ui_qgsnewogrconnectionbase.h"
24 #include "qgsguiutils.h"
25 #include "qgis_gui.h"
26 
27 
36 class GUI_EXPORT QgsNewOgrConnection : public QDialog, private Ui::QgsNewOgrConnectionBase
37 {
38  Q_OBJECT
39 
40  public:
42  QgsNewOgrConnection( QWidget *parent = nullptr, const QString &connType = QString(), const QString &connName = QString(), Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags );
43 
45  void testConnection();
46 
51  Q_DECL_DEPRECATED void showHelp() SIP_DEPRECATED;
52 
53  public slots:
54  void accept() override;
55 
56  private slots:
57  void btnConnect_clicked();
59  void updateOkButtonState();
60 
61  private:
62  QString mOriginalConnName;
63 };
64 
65 #endif // QGSNEWOGRCONNECTIONBASE_H
Dialog to allow the user to define, test and save connection information for OGR databases.
#define SIP_DEPRECATED
Definition: qgis_sip.h:106