-
-
Notifications
You must be signed in to change notification settings - Fork 3k
/
qgsgeonodenewconnection.h
49 lines (40 loc) · 1.97 KB
/
qgsgeonodenewconnection.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/***************************************************************************
qgsgeonodenewconnection.h
-------------------
begin : Feb 2017
copyright : (C) 2017 by Muhammad Yarjuna Rohmat, Ismail Sunni
email : rohmat at kartoza dot com, ismail at kartoza dot com
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef QGSGEONODENEWCONNECTION_H
#define QGSGEONODENEWCONNECTION_H
#include "ui_qgsnewgeonodeconnectionbase.h"
#include "qgsguiutils.h"
#include "qgsauthconfigselect.h"
class QgsGeoNodeNewConnection : public QDialog, private Ui::QgsNewGeoNodeConnectionBase
{
Q_OBJECT
public:
//! Constructor
QgsGeoNodeNewConnection( QWidget *parent = nullptr, const QString &connName = QString::null, Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags );
//! Returns the new connection name
QString name() const;
public slots:
void accept() override;
void okButtonBehavior( const QString & );
//! Test the connection using the parameters supplied
void testConnection();
private:
QString mBaseKey;
QString mCredentialsBaseKey;
QString mOriginalConnName; //store initial name to delete entry in case of rename
QgsAuthConfigSelect *mAuthConfigSelect = nullptr;
};
#endif //QGSGEONODENEWCONNECTION_H