QGIS API Documentation  3.2.0-Bonn (bc43194)
qgssourceselectproviderregistry.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgssourceselectproviderregistry.h - QgsSourceSelectProviderRegistry
3 
4  ---------------------
5  begin : 1.9.2017
6  copyright : (C) 2017 by Alessandro Pasotti
7  email : apasotti at boundlessgeo dot com
8  ***************************************************************************
9  * *
10  * This program is free software; you can redistribute it and/or modify *
11  * it under the terms of the GNU General Public License as published by *
12  * the Free Software Foundation; either version 2 of the License, or *
13  * (at your option) any later version. *
14  * *
15  ***************************************************************************/
16 #ifndef QGSSOURCESELECTPROVIDERREGISTRY_H
17 #define QGSSOURCESELECTPROVIDERREGISTRY_H
18 
19 #include "qgis_gui.h"
20 #include "qgis.h"
21 
23 
39 {
40  public:
41 
46 
48 
53 
55  QList< QgsSourceSelectProvider *> providers();
56 
58  void addProvider( QgsSourceSelectProvider *provider SIP_TRANSFER );
59 
64  bool removeProvider( QgsSourceSelectProvider *provider SIP_TRANSFER );
65 
67  QgsSourceSelectProvider *providerByName( const QString &name );
68 
70  QList<QgsSourceSelectProvider *> providersByKey( const QString &providerKey );
71 
72 
73  private:
74 
79  void init();
80  bool mInitialized = false;
81 #ifdef SIP_RUN
83 #endif
84 
86  QList<QgsSourceSelectProvider *> mProviders;
87 
88 };
89 
90 #endif // QGSSOURCESELECTPROVIDERREGISTRY_H
#define SIP_TRANSFER
Definition: qgis_sip.h:36
This class keeps a list of source select providers that may add items to the QgsDataSourceManagerDial...
This is the interface for those who want to add entries to the QgsDataSourceManagerDialog.