Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
main.cpp
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#include <qsqldriverplugin.h>
5#include <qstringlist.h>
6#include "qsql_oci_p.h"
7
9
10using namespace Qt::StringLiterals;
11
13{
15 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QSqlDriverFactoryInterface" FILE "oci.json")
16
17public:
19
20 QSqlDriver* create(const QString &) override;
21};
22
27
29{
30 if (name == "QOCI"_L1) {
31 QOCIDriver* driver = new QOCIDriver();
32 return driver;
33 }
34 return 0;
35}
36
38
39#include "main.moc"
QSqlDriver * create(const QString &) override
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.
The QSqlDriver class is an abstract base class for accessing specific SQL databases.
Definition qsqldriver.h:26
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
GLuint name
#define Q_OBJECT
#define Q_PLUGIN_METADATA(x)
view create()