mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
These providers will be used to control how the browser data items behave within GUI, and to allow separation of GUI related properties of browser items from the core code. A new registry QgsDataItemGuiProviderRegistry has been created (modeled off QgsDataItemProviderRegistry), with an application wide instance available from QgsGui::instance()->dataItemGuiProviderRegistry()
63 lines
2.1 KiB
Plaintext
63 lines
2.1 KiB
Plaintext
/************************************************************************
|
|
* 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
|
|
{
|
|
%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
|
|
:py:func:`QgsApplication.dataItemProviderRegistry()`
|
|
|
|
.. versionadded:: 2.10
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsdataitemproviderregistry.h"
|
|
%End
|
|
public:
|
|
|
|
QgsDataItemProviderRegistry();
|
|
|
|
~QgsDataItemProviderRegistry();
|
|
|
|
|
|
QList<QgsDataItemProvider *> providers() const;
|
|
%Docstring
|
|
Returns the list of available providers.
|
|
%End
|
|
|
|
void addProvider( QgsDataItemProvider *provider /Transfer/ );
|
|
%Docstring
|
|
Adds a ``provider`` implementation to the registry. Ownership of the provider
|
|
is transferred to the registry.
|
|
%End
|
|
|
|
void removeProvider( QgsDataItemProvider *provider );
|
|
%Docstring
|
|
Removes a ``provider`` implementation from the registry.
|
|
The provider object is automatically deleted.
|
|
%End
|
|
|
|
private:
|
|
QgsDataItemProviderRegistry( const QgsDataItemProviderRegistry &rh );
|
|
};
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/qgsdataitemproviderregistry.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|