File indexing completed on 2025-01-18 10:09:18
0001
0002
0003
0004 #ifndef QSQLDRIVERPLUGIN_H
0005 #define QSQLDRIVERPLUGIN_H
0006
0007 #include <QtSql/qtsqlglobal.h>
0008 #include <QtCore/qplugin.h>
0009 #include <QtCore/qfactoryinterface.h>
0010
0011 QT_BEGIN_NAMESPACE
0012
0013
0014 class QSqlDriver;
0015
0016 #define QSqlDriverFactoryInterface_iid "org.qt-project.Qt.QSqlDriverFactoryInterface"
0017
0018 class Q_SQL_EXPORT QSqlDriverPlugin : public QObject
0019 {
0020 Q_OBJECT
0021 public:
0022 explicit QSqlDriverPlugin(QObject *parent = nullptr);
0023 ~QSqlDriverPlugin();
0024
0025 virtual QSqlDriver *create(const QString &key) = 0;
0026
0027 };
0028
0029 QT_END_NAMESPACE
0030
0031 #endif