QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
src
gui
qgsprojectstorageguiregistry.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsprojectstorageguiregistry.h
3
-------------------------------
4
begin : June 2019
5
copyright : (C) 2019 by Peter Petrik
6
email : zilolv at google 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 QGSPROJECTSTORAGEGUIREGISTRY_H
19
#define QGSPROJECTSTORAGEGUIREGISTRY_H
20
21
#include <map>
22
23
#include <QString>
24
#include <QList>
25
#include <QHash>
26
27
#include "qgis_gui.h"
28
#include "
qgis_sip.h
"
29
30
class
QgsProjectStorageGuiProvider
;
31
class
QgsProviderGuiRegistry
;
32
44
class
GUI_EXPORT
QgsProjectStorageGuiRegistry
45
{
46
public
:
47
QgsProjectStorageGuiRegistry
();
48
~
QgsProjectStorageGuiRegistry
();
49
51
QgsProjectStorageGuiRegistry
(
const
QgsProjectStorageGuiRegistry
&rh ) =
delete
;
53
QgsProjectStorageGuiRegistry
&
operator=
(
const
QgsProjectStorageGuiRegistry
&rh ) =
delete
;
54
56
QgsProjectStorageGuiProvider
*projectStorageFromType(
const
QString &type );
57
59
QgsProjectStorageGuiProvider
*projectStorageFromUri(
const
QString &uri );
60
62
QList<QgsProjectStorageGuiProvider *> projectStorages()
const
;
63
65
void
registerProjectStorage(
QgsProjectStorageGuiProvider
*storage
SIP_TRANSFER
);
66
68
void
unregisterProjectStorage(
QgsProjectStorageGuiProvider
*storage );
69
74
void
initializeFromProviderGuiRegistry(
QgsProviderGuiRegistry
*providerGuiRegistry );
75
76
private
:
77
#ifdef SIP_RUN
78
QgsProjectStorageGuiRegistry
(
const
QgsProjectStorageGuiRegistry
&rh );
79
#endif
80
81
QHash<QString, QgsProjectStorageGuiProvider *> mBackends;
82
};
83
84
#endif // QGSPROJECTSTORAGEGUIREGISTRY_H
QgsProjectStorageGuiRegistry::operator=
QgsProjectStorageGuiRegistry & operator=(const QgsProjectStorageGuiRegistry &rh)=delete
QgsProjectStorageGuiRegistry cannot be copied.
QgsProjectStorageGuiRegistry::QgsProjectStorageGuiRegistry
QgsProjectStorageGuiRegistry()
QgsProjectStorageGuiRegistry::QgsProjectStorageGuiRegistry
QgsProjectStorageGuiRegistry(const QgsProjectStorageGuiRegistry &rh)=delete
QgsProjectStorageGuiRegistry cannot be copied.
qgis_sip.h
SIP_TRANSFER
#define SIP_TRANSFER
Definition:
qgis_sip.h:36
QgsProviderGuiRegistry
A registry / canonical manager of GUI parts of data providers.
Definition:
qgsproviderguiregistry.h:50
QgsProjectStorageGuiProvider
Abstract interface for project storage GUI - to be implemented by various backends and registered in ...
Definition:
qgsprojectstorageguiprovider.h:32
QgsProjectStorageGuiRegistry
A registry / canonical manager of GUI parts of project storage backends.
Definition:
qgsprojectstorageguiregistry.h:45
Generated on Sat Oct 24 2020 17:43:09 for QGIS API Documentation by
1.8.20