QGIS API Documentation
3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
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
50
QgsProjectStorageGuiRegistry
(
const
QgsProjectStorageGuiRegistry
&rh ) =
delete
;
51
QgsProjectStorageGuiRegistry
&
operator=
(
const
QgsProjectStorageGuiRegistry
&rh ) =
delete
;
52
54
QgsProjectStorageGuiProvider
*projectStorageFromType(
const
QString &type );
55
57
QgsProjectStorageGuiProvider
*projectStorageFromUri(
const
QString &uri );
58
60
QList<QgsProjectStorageGuiProvider *> projectStorages()
const
;
61
63
void
registerProjectStorage(
QgsProjectStorageGuiProvider
*storage
SIP_TRANSFER
);
64
66
void
unregisterProjectStorage(
QgsProjectStorageGuiProvider
*storage );
67
72
void
initializeFromProviderGuiRegistry(
QgsProviderGuiRegistry
*providerGuiRegistry );
73
74
private
:
75
#ifdef SIP_RUN
76
QgsProjectStorageGuiRegistry
(
const
QgsProjectStorageGuiRegistry
&rh );
77
#endif
78
79
QHash<QString, QgsProjectStorageGuiProvider *> mBackends;
80
};
81
82
#endif
// QGSPROJECTSTORAGEGUIREGISTRY_H
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
QgsProjectStorageGuiRegistry::QgsProjectStorageGuiRegistry
QgsProjectStorageGuiRegistry(const QgsProjectStorageGuiRegistry &rh)=delete
QgsProjectStorageGuiRegistry::operator=
QgsProjectStorageGuiRegistry & operator=(const QgsProjectStorageGuiRegistry &rh)=delete
QgsProjectStorageGuiRegistry::QgsProjectStorageGuiRegistry
QgsProjectStorageGuiRegistry()
QgsProviderGuiRegistry
A registry / canonical manager of GUI parts of data providers.
Definition
qgsproviderguiregistry.h:54
qgis_sip.h
SIP_TRANSFER
#define SIP_TRANSFER
Definition
qgis_sip.h:36
Generated on Thu Dec 26 2024 02:19:01 for QGIS API Documentation by
1.9.8