|
| 1 | +/************************************************************************ |
| 2 | + * This file has been generated automatically from * |
| 3 | + * * |
| 4 | + * src/gui/qgssourceselectproviderregistry.h * |
| 5 | + * * |
| 6 | + * Do not edit manually ! Edit header and run scripts/sipify.pl again * |
| 7 | + ************************************************************************/ |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | +class QgsSourceSelectProviderRegistry |
| 12 | +{ |
| 13 | +%Docstring |
| 14 | + This class keeps a list of source select providers that may add items to the QgsDataSourceManagerDialog |
| 15 | + When created, it automatically adds providers from data provider plugins (e.g. PostGIS, WMS, ...) |
| 16 | + |
| 17 | + QgsSourceSelectProviderRegistry is not usually directly created, but rather accessed through |
| 18 | + QgsGui.sourceSelectProviderRegistry(). |
| 19 | + |
| 20 | +.. note:: |
| 21 | + |
| 22 | + This class access to QgsProviderRegistry instance to initialize, but QgsProviderRegistry is |
| 23 | + typically initialized after QgsGui is constructed, for this reason a delayed initialization has been |
| 24 | + implemented in the class. |
| 25 | + |
| 26 | +.. versionadded:: 3.0 |
| 27 | +%End |
| 28 | + |
| 29 | +%TypeHeaderCode |
| 30 | +#include "qgssourceselectproviderregistry.h" |
| 31 | +%End |
| 32 | + public: |
| 33 | + QgsSourceSelectProviderRegistry(); |
| 34 | + |
| 35 | + ~QgsSourceSelectProviderRegistry(); |
| 36 | + |
| 37 | + |
| 38 | + QList< QgsSourceSelectProvider *> providers(); |
| 39 | +%Docstring |
| 40 | +Get list of available providers |
| 41 | + :rtype: list of QgsSourceSelectProvider |
| 42 | +%End |
| 43 | + |
| 44 | + void addProvider( QgsSourceSelectProvider *provider /Transfer/ ); |
| 45 | +%Docstring |
| 46 | +Add a ``provider`` implementation. Takes ownership of the object. |
| 47 | +%End |
| 48 | + |
| 49 | + bool removeProvider( QgsSourceSelectProvider *provider /Transfer/ ); |
| 50 | +%Docstring |
| 51 | +:return: true if the provider was actually removed and deleted |
| 52 | + :rtype: bool |
| 53 | +%End |
| 54 | + |
| 55 | + QgsSourceSelectProvider *providerByName( const QString &name ); |
| 56 | +%Docstring |
| 57 | +Return a provider by ``name`` or None if not found |
| 58 | + :rtype: QgsSourceSelectProvider |
| 59 | +%End |
| 60 | + |
| 61 | + QList<QgsSourceSelectProvider *> providersByKey( const QString &providerKey ); |
| 62 | +%Docstring |
| 63 | +Return a (possibly empty) list of providers by data ``providerkey`` |
| 64 | + :rtype: list of QgsSourceSelectProvider |
| 65 | +%End |
| 66 | + |
| 67 | + |
| 68 | + private: |
| 69 | + QgsSourceSelectProviderRegistry( const QgsSourceSelectProviderRegistry &rh ); |
| 70 | +}; |
| 71 | + |
| 72 | +/************************************************************************ |
| 73 | + * This file has been generated automatically from * |
| 74 | + * * |
| 75 | + * src/gui/qgssourceselectproviderregistry.h * |
| 76 | + * * |
| 77 | + * Do not edit manually ! Edit header and run scripts/sipify.pl again * |
| 78 | + ************************************************************************/ |
0 commit comments