Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qsqldriverplugin.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QSQLDRIVERPLUGIN_H
5#define QSQLDRIVERPLUGIN_H
6
7#include <QtSql/qtsqlglobal.h>
8#include <QtCore/qplugin.h>
9#include <QtCore/qfactoryinterface.h>
10
11QT_BEGIN_NAMESPACE
12
13
14class QSqlDriver;
15
16#define QSqlDriverFactoryInterface_iid "org.qt-project.Qt.QSqlDriverFactoryInterface"
17
18class Q_SQL_EXPORT QSqlDriverPlugin : public QObject
19{
20 Q_OBJECT
21public:
22 explicit QSqlDriverPlugin(QObject *parent = nullptr);
23 ~QSqlDriverPlugin();
24
25 virtual QSqlDriver *create(const QString &key) = 0;
26
27};
28
29QT_END_NAMESPACE
30
31#endif // QSQLDRIVERPLUGIN_H
QSqlDriver * create(const QString &)
Creates and returns a QSqlDriver object for the driver called key.
Definition main.cpp:28
The QSqlDriverPlugin class provides an abstract base for custom QSqlDriver plugins.
Combined button and popup list for selecting options.