19 #ifndef QGSPROVIDERREGISTRY_H
20 #define QGSPROVIDERREGISTRY_H
52 QString library(
const QString & providerKey )
const;
55 QString pluginList(
bool asHtml =
false )
const;
58 const QDir & libraryDirectory()
const;
61 void setLibraryDirectory(
const QDir & path );
69 const QString & dataSource );
75 int providerCapabilities(
const QString& providerKey )
const;
77 QWidget *selectWidget(
const QString & providerKey,
78 QWidget * parent = 0, Qt::WindowFlags fl = 0 );
80 #if QT_VERSION >= 0x050000
86 QFunctionPointer
function(
const QString & providerKey,
87 const QString & functionName );
94 void *
function(
const QString & providerKey,
95 const QString & functionName );
98 QLibrary *providerLibrary(
const QString & providerKey )
const;
101 QStringList providerList()
const;
118 virtual QString fileVectorFilters()
const;
129 virtual QString fileRasterFilters()
const;
131 virtual QString databaseDrivers()
const;
133 virtual QString directoryDrivers()
const;
135 virtual QString protocolDrivers()
const;
137 void registerGuis( QWidget *widget );
164 typedef std::map<QString, QgsProviderMetadata*>
Providers;
174 QDir mLibraryDirectory;
184 QString mVectorFileFilters;
187 QString mRasterFileFilters;
193 QString mDatabaseDrivers;
199 QString mDirectoryDrivers;
205 QString mProtocolDrivers;
209 #endif //QGSPROVIDERREGISTRY_H