QGIS/python/core/qgsdataitemproviderregistry.sip

62 lines
2.1 KiB
Plaintext
Raw Normal View History

2017-05-14 09:48:41 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsdataitemproviderregistry.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsDataItemProviderRegistry
{
2017-05-14 09:48:41 +02:00
%Docstring
This class keeps a list of data item providers that may add items to the browser tree.
When created, it automatically adds providers from provider plugins (e.g. PostGIS, WMS, ...)
QgsDataItemProviderRegistry is not usually directly created, but rather accessed through
QgsApplication.dataItemProviderRegistry().
.. versionadded:: 2.10
%End
%TypeHeaderCode
2017-05-14 09:48:41 +02:00
#include "qgsdataitemproviderregistry.h"
%End
public:
2017-05-14 09:48:41 +02:00
QgsDataItemProviderRegistry();
2017-05-14 09:48:41 +02:00
~QgsDataItemProviderRegistry();
2017-05-14 09:48:41 +02:00
QList<QgsDataItemProvider *> providers() const;
%Docstring
Get list of available providers
:rtype: list of QgsDataItemProvider
%End
void addProvider( QgsDataItemProvider *provider /Transfer/ );
2017-05-14 09:48:41 +02:00
%Docstring
Add a provider implementation. Takes ownership of the object.
%End
void removeProvider( QgsDataItemProvider *provider );
2017-05-14 09:48:41 +02:00
%Docstring
Remove provider implementation from the list (provider object is deleted)
%End
2017-05-14 10:50:30 +02:00
private:
QgsDataItemProviderRegistry( const QgsDataItemProviderRegistry &rh );
};
2017-05-14 09:48:41 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsdataitemproviderregistry.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/