19 #ifndef QGSPROVIDERMETADATA_H 20 #define QGSPROVIDERMETADATA_H 26 #include "qgis_core.h" 56 QgsProviderMetadata(
const QString &_key,
const QString &_description,
const QString &_library );
66 QgsProviderMetadata(
const QString &key,
const QString &description, SIP_PYCALLABLE / AllowNone / );
73 Py_BEGIN_ALLOW_THREADS
82 sipResObj = sipCallMethod(
nullptr, a2,
"DD",
new QString( dataSource ), sipType_QString,
nullptr,
new QgsDataProvider::ProviderOptions( providerOptions ), sipType_QgsDataProvider_ProviderOptions, NULL );
86 if ( sipCanConvertToType( sipResObj, sipType_QgsDataProvider, SIP_NOT_NONE ) )
90 provider =
reinterpret_cast<QgsDataProvider *
>( sipConvertToType( sipResObj, sipType_QgsDataProvider,
nullptr, SIP_NOT_NONE, &state0, &sipIsErr ) );
93 sipReleaseType( provider, sipType_QgsDataProvider, state0 );
119 QString description()
const;
126 QString library()
const;
134 SIP_SKIP CreateDataProviderFunction createFunction()
const;
142 QString description_;
147 CreateDataProviderFunction mCreateFunc =
nullptr;
151 #endif //QGSPROVIDERMETADATA_H Abstract base class for spatial data provider implementations.
Setting options for creating vector data providers.