QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
src
gui
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
28
class
GUI_EXPORT
QgsManageConnectionsDialog
:
public
QDialog
,
private
Ui::QgsManageConnectionsDialogBase
29
{
30
Q_OBJECT
31
32
public
:
33
enum
Mode
34
{
35
Export
,
36
Import
37
};
38
39
enum
Type
40
{
41
WMS
,
42
PostGIS
,
43
WFS
,
44
MSSQL
,
45
DB2
,
46
WCS
,
47
Oracle
,
48
};
49
50
// constructor
51
// mode argument must be 0 for export and 1 for import
52
// type argument must be 0 for WMS and 1 for PostGIS
53
QgsManageConnectionsDialog
(
QWidget
*parent =
nullptr
,
Mode
mode = Export,
Type
type = WMS,
const
QString
& fileName =
""
);
54
55
public
slots:
56
void
doExportImport();
57
void
selectAll();
58
void
clearSelection();
59
void
selectionChanged();
60
61
private
:
62
bool
populateConnections();
63
64
QDomDocument
saveOWSConnections(
const
QStringList
&connections,
const
QString
&service );
65
QDomDocument
saveWFSConnections(
const
QStringList
&connections );
66
QDomDocument
savePgConnections(
const
QStringList
& connections );
67
QDomDocument
saveMssqlConnections(
const
QStringList
& connections );
68
QDomDocument
saveOracleConnections(
const
QStringList
& connections );
69
QDomDocument
saveDb2Connections(
const
QStringList
& connections );
70
71
void
loadOWSConnections(
const
QDomDocument
&doc,
const
QStringList
&items,
const
QString
&service );
72
void
loadWFSConnections(
const
QDomDocument
&doc,
const
QStringList
&items );
73
void
loadPgConnections(
const
QDomDocument
&doc,
const
QStringList
&items );
74
void
loadMssqlConnections(
const
QDomDocument
&doc,
const
QStringList
&items );
75
void
loadOracleConnections(
const
QDomDocument
&doc,
const
QStringList
&items );
76
void
loadDb2Connections(
const
QDomDocument
&doc,
const
QStringList
&items );
77
78
QString
mFileName;
79
Mode
mDialogMode;
80
Type
mConnectionType;
81
};
82
83
#endif // QGSMANAGECONNECTIONSDIALOG_H
84
QgsManageConnectionsDialog::Oracle
Definition:
qgsmanageconnectionsdialog.h:47
QWidget
QgsManageConnectionsDialog::WCS
Definition:
qgsmanageconnectionsdialog.h:46
QgsManageConnectionsDialog::WMS
Definition:
qgsmanageconnectionsdialog.h:41
QgsManageConnectionsDialog::MSSQL
Definition:
qgsmanageconnectionsdialog.h:44
QgsManageConnectionsDialog::DB2
Definition:
qgsmanageconnectionsdialog.h:45
QgsManageConnectionsDialog::WFS
Definition:
qgsmanageconnectionsdialog.h:43
QgsManageConnectionsDialog::Export
Definition:
qgsmanageconnectionsdialog.h:35
QgsManageConnectionsDialog::PostGIS
Definition:
qgsmanageconnectionsdialog.h:42
QgsManageConnectionsDialog
Definition:
qgsmanageconnectionsdialog.h:28
QString
QStringList
QDomDocument
QDialog
QgsManageConnectionsDialog::Type
Type
Definition:
qgsmanageconnectionsdialog.h:39
QgsManageConnectionsDialog::Mode
Mode
Definition:
qgsmanageconnectionsdialog.h:33
Generated on Sun Jun 24 2018 11:42:48 for QGIS API Documentation by
1.8.13