QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
qgsconnectionregistry.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsconnectionregistry.h
3
------------------------
4
begin : March 2020
5
copyright : (C) 2020 by Nyall Dawson
6
email : nyall dot dawson at gmail dot 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 QGSCONNECTIONREGISTRY_H
19
#define QGSCONNECTIONREGISTRY_H
20
21
#include "
qgis.h
"
22
#include "qgis_core.h"
23
24
#include <QObject>
25
26
class
QgsAbstractProviderConnection
;
27
28
39
class
CORE_EXPORT
QgsConnectionRegistry
:
public
QObject
40
{
41
Q_OBJECT
42
43
public
:
47
QgsConnectionRegistry
( QObject *parent
SIP_TRANSFERTHIS
=
nullptr
);
48
49
QgsConnectionRegistry
(
const
QgsConnectionRegistry
&other ) =
delete
;
50
QgsConnectionRegistry
&
operator=
(
const
QgsConnectionRegistry
&other ) =
delete
;
51
62
QgsAbstractProviderConnection
*
createConnection
(
const
QString &name )
SIP_THROW
(
QgsProviderConnectionException
)
SIP_FACTORY
;
63
64
private
:
65
#ifdef SIP_RUN
66
QgsConnectionRegistry
(
const
QgsConnectionRegistry
&other );
67
#endif
68
};
69
70
#endif
// QGSCONNECTIONREGISTRY_H
QgsAbstractProviderConnection
An interface for data provider connections.
Definition
qgsabstractproviderconnection.h:43
QgsConnectionRegistry::operator=
QgsConnectionRegistry & operator=(const QgsConnectionRegistry &other)=delete
QgsConnectionRegistry::createConnection
QgsAbstractProviderConnection * createConnection(const QString &name)
Creates a new connection by loading the connection with the given id from the settings.
Definition
qgsconnectionregistry.cpp:34
QgsConnectionRegistry::QgsConnectionRegistry
QgsConnectionRegistry(QObject *parent=nullptr)
Constructor for QgsConnectionRegistry.
Definition
qgsconnectionregistry.cpp:30
QgsConnectionRegistry::QgsConnectionRegistry
QgsConnectionRegistry(const QgsConnectionRegistry &other)=delete
QgsProviderConnectionException
Custom exception class for provider connection related exceptions.
Definition
qgsexception.h:94
qgis.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:52
SIP_FACTORY
#define SIP_FACTORY
Definition
qgis_sip.h:83
SIP_THROW
#define SIP_THROW(name,...)
Definition
qgis_sip.h:215
Generated on
for QGIS API Documentation by
1.17.0