QGIS API Documentation  3.18.1-Zürich (202f1bf7e5)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
qgsproviderguimetadata.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsproviderguimetadata.h
3  -------------------
4  begin : June 4th 2019
5  copyright : (C) 2019 by Peter Petrik
6  email : zilolv at gmail 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 QGSPROVIDERGUIMETADATA_H
19 #define QGSPROVIDERGUIMETADATA_H
20 
21 #include <QList>
22 #include <QMainWindow>
23 
24 #include "qgis_gui.h"
25 #include "qgis_sip.h"
26 
32 
39 class GUI_EXPORT QgsProviderGuiMetadata
40 {
41  public:
42 
46  explicit QgsProviderGuiMetadata( const QString &key );
47 
49 
54  virtual void registerGui( QMainWindow *widget );
55 
60  virtual QList<QgsDataItemGuiProvider *> dataItemGuiProviders() SIP_FACTORY;
61 
66  virtual QList<QgsProjectStorageGuiProvider *> projectStorageGuiProviders() SIP_FACTORY;
67 
72  virtual QList<QgsSourceSelectProvider *> sourceSelectProviders() SIP_FACTORY;
73 
79  virtual QList<QgsSubsetStringEditorProvider *> subsetStringEditorProviders() SIP_FACTORY;
80 
86  virtual QList<QgsProviderSourceWidgetProvider *> sourceWidgetProviders() SIP_FACTORY;
87 
89  QString key() const;
90 
91  private:
93  QString mKey;
94 };
95 
96 #endif //QGSPROVIDERGUIMETADATA_H
97 
Abstract base class for providers which affect how QgsDataItem items behave within the application GU...
Abstract interface for project storage GUI - to be implemented by various backends and registered in ...
Holds data for GUI part of the data providers.
virtual ~QgsProviderGuiMetadata()
An interface for providers of widgets designed to configure a data provider's source.
This is the interface for those who want to add entries to the QgsDataSourceManagerDialog.
This is the interface for those who want to provide a dialog to edit a subset string.
#define SIP_FACTORY
Definition: qgis_sip.h:76