QGIS/python/core/qgsprovidermetadata.sip.in

73 lines
2.5 KiB
Plaintext
Raw Normal View History

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsprovidermetadata.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsProviderMetadata
{
%Docstring
2017-12-15 10:36:55 -04:00
Holds data provider key, description, and associated shared library file or function pointer information.
Provider metadata refers either to providers which are loaded via libraries or
which are native providers that are included in the core QGIS installation
and accessed through function pointers.
For library based providers, the metadata class is used in a lazy load
implementation in QgsProviderRegistry. To save memory, data providers
are only actually loaded via QLibrary calls if they're to be used. (Though they're all
iteratively loaded once to get their metadata information, and then
unloaded when the QgsProviderRegistry is created.) QgsProviderMetadata
supplies enough information to be able to later load the associated shared
library object.
%End
%TypeHeaderCode
#include "qgsprovidermetadata.h"
%End
public:
QgsProviderMetadata( const QString &_key, const QString &_description, const QString &_library );
QString key() const;
%Docstring
2017-12-15 10:36:55 -04:00
This returns the unique key associated with the provider
2017-12-19 11:43:52 -04:00
This key string is used for the associative container in :py:class:`QgsProviderRegistry`
%End
QString description() const;
%Docstring
2017-12-15 10:36:55 -04:00
This returns descriptive text for the provider
This is used to provide a descriptive list of available data providers.
%End
QString library() const;
%Docstring
2017-12-15 10:36:55 -04:00
This returns the library file name
This is used to QLibrary calls to load the data provider.
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsprovidermetadata.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/