QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
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 
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
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
A registry / canonical manager of GUI parts of data providers.
Definition: qgsproviderguiregistry.h:53
QgsProjectStorageGuiProvider
Abstract interface for project storage GUI - to be implemented by various backends and registered in ...
Definition: qgsprojectstorageguiprovider.h:31
QgsProjectStorageGuiRegistry
A registry / canonical manager of GUI parts of project storage backends.
Definition: qgsprojectstorageguiregistry.h:44