QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
Loading...
Searching...
No Matches
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
32
45{
46 public:
49
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
77#endif
78
79 QHash<QString, QgsProjectStorageGuiProvider *> mBackends;
80};
81
82#endif // QGSPROJECTSTORAGEGUIREGISTRY_H
Abstract interface for project storage GUI - to be implemented by various backends and registered in ...
A registry / canonical manager of GUI parts of project storage backends.
QgsProjectStorageGuiRegistry(const QgsProjectStorageGuiRegistry &rh)=delete
QgsProjectStorageGuiRegistry & operator=(const QgsProjectStorageGuiRegistry &rh)=delete
A registry / canonical manager of GUI parts of data providers.
#define SIP_TRANSFER
Definition qgis_sip.h:36