QGIS API Documentation 3.99.0-Master (18a1e75d814)
Loading...
Searching...
No Matches
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
22#include "ui_qgsnewogrconnectionbase.h"
23
24#include "qgis_gui.h"
25#include "qgsguiutils.h"
26
27#define SIP_NO_FILE
28
36class 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
void testConnection()
Tests the connection using the parameters supplied.
void accept() override
Autoconnected slots.
Q_DECL_DEPRECATED void showHelp() SIP_DEPRECATED
Show the help.
QgsNewOgrConnection(QWidget *parent=nullptr, const QString &connType=QString(), const QString &connName=QString(), Qt::WindowFlags fl=QgsGuiUtils::ModalDialogFlags)
Constructor.
#define SIP_DEPRECATED
Definition qgis_sip.h:113