QGIS API Documentation 3.41.0-Master (d5b93354e9c)
Loading...
Searching...
No Matches
qgsmanageconnectionsdialog.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsmanageconnectionsdialog.h
3 ---------------------
4 begin : Dec 2009
5 copyright : (C) 2009 by Alexander Bruy
6 email : alexander dot bruy at gmail dot com
7
8 ***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16
17
18#ifndef QGSMANAGECONNECTIONSDIALOG_H
19#define QGSMANAGECONNECTIONSDIALOG_H
20
21#include <QDialog>
22#include <QDomDocument>
23#include "ui_qgsmanageconnectionsdialogbase.h"
24#include "qgis_gui.h"
25#include "qgis_sip.h"
26
31class GUI_EXPORT QgsManageConnectionsDialog : public QDialog, private Ui::QgsManageConnectionsDialogBase
32{
33 Q_OBJECT
34
35 public:
36 enum Mode
37 {
39 Import
40 };
41
60
64 QgsManageConnectionsDialog( QWidget *parent SIP_TRANSFERTHIS = nullptr, Mode mode = Export, Type type = WMS, const QString &fileName = QString() );
65
66 public slots:
67 void doExportImport();
68 void selectAll();
69 void clearSelection();
70 void selectionChanged();
71
72 private:
73 bool populateConnections();
74
75 QDomDocument saveOWSConnections( const QStringList &connections, const QString &service );
76 QDomDocument saveWfsConnections( const QStringList &connections );
77 QDomDocument savePgConnections( const QStringList &connections );
78 QDomDocument saveMssqlConnections( const QStringList &connections );
79 QDomDocument saveOracleConnections( const QStringList &connections );
80 QDomDocument saveHanaConnections( const QStringList &connections );
81 QDomDocument saveXyzTilesConnections( const QStringList &connections );
82 QDomDocument saveArcgisConnections( const QStringList &connections );
83 QDomDocument saveVectorTileConnections( const QStringList &connections );
84 QDomDocument saveTiledSceneConnections( const QStringList &connections );
85 QDomDocument saveSensorThingsConnections( const QStringList &connections );
86 QDomDocument saveCloudStorageConnections( const QStringList &connections );
87 QDomDocument saveStacConnections( const QStringList &connections );
88
89 void loadOWSConnections( const QDomDocument &doc, const QStringList &items, const QString &service );
90 void loadWfsConnections( const QDomDocument &doc, const QStringList &items );
91 void loadPgConnections( const QDomDocument &doc, const QStringList &items );
92 void loadMssqlConnections( const QDomDocument &doc, const QStringList &items );
93 void loadOracleConnections( const QDomDocument &doc, const QStringList &items );
94 void loadHanaConnections( const QDomDocument &doc, const QStringList &items );
95 void loadXyzTilesConnections( const QDomDocument &doc, const QStringList &items );
96 void loadArcgisConnections( const QDomDocument &doc, const QStringList &items, const QString &service );
97 void loadVectorTileConnections( const QDomDocument &doc, const QStringList &items );
98 void loadTiledSceneConnections( const QDomDocument &doc, const QStringList &items );
99 void loadSensorThingsConnections( const QDomDocument &doc, const QStringList &items );
100 void loadCloudStorageConnections( const QDomDocument &doc, const QStringList &items );
101 void loadStacConnections( const QDomDocument &doc, const QStringList &items );
102
103 QString mFileName;
104 Mode mDialogMode;
105 Type mConnectionType;
106};
107
108// clazy:excludeall=qstring-allocations
109
110#endif // QGSMANAGECONNECTIONSDIALOG_H
@ STAC
SpatioTemporal Asset Catalog connections.
@ SensorThings
SensorThings connections.
@ TiledScene
Tiled scene connection.
@ CloudStorage
Cloud storage connections.
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53