19 #ifndef QGSPROVIDERREGISTRY_H 20 #define QGSPROVIDERREGISTRY_H 28 #include "qgis_core.h" 79 QString library(
const QString &providerKey )
const;
82 QString pluginList(
bool asHtml =
false )
const;
87 QDir libraryDirectory()
const;
90 void setLibraryDirectory(
const QDir &path );
106 int providerCapabilities(
const QString &providerKey )
const;
113 QWidget *createSelectionWidget(
const QString &providerKey,
114 QWidget *parent =
nullptr,
115 Qt::WindowFlags fl = Qt::WindowFlags(),
125 QFunctionPointer
function(
const QString &providerKey,
126 const QString &functionName );
135 QLibrary *createProviderLibrary(
const QString &providerKey )
const SIP_FACTORY;
138 QStringList providerList()
const;
156 virtual QString fileVectorFilters()
const;
169 virtual QString fileRasterFilters()
const;
171 virtual QString databaseDrivers()
const;
173 virtual QString directoryDrivers()
const;
175 virtual QString protocolDrivers()
const;
177 void registerGuis( QWidget *widget );
218 Providers mProviders;
221 QDir mLibraryDirectory;
232 QString mVectorFileFilters;
237 QString mRasterFileFilters;
245 QString mDatabaseDrivers;
252 QString mDirectoryDrivers;
260 QString mProtocolDrivers;
264 #endif //QGSPROVIDERREGISTRY_H WidgetMode
Different ways a source select dialog can be used (embedded is for the data source manager dialog) ...
Abstract base class for spatial data provider implementations.
A registry / canonical manager of data providers.
std::map< QString, QgsProviderMetadata * > Providers
Open the given vector data source.
This class represents a coordinate reference system (CRS).
Represents a vector layer which manages a vector based data sets.