QGIS API Documentation
3.14.0-Pi (9f7028fd23)
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
qgis_sip.h
SIP_TRANSFER
#define SIP_TRANSFER
Definition:
qgis_sip.h:36
QgsProviderGuiRegistry
Definition:
qgsproviderguiregistry.h:49
QgsProjectStorageGuiProvider
Definition:
qgsprojectstorageguiprovider.h:31
QgsProjectStorageGuiRegistry
Definition:
qgsprojectstorageguiregistry.h:44
Generated on Mon Jun 22 2020 05:14:09 for QGIS API Documentation by
1.8.17