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
main.cpp
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// Copyright (C) 2022 Mimer Information Technology
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4// Qt-Security score:significant reason:default
5
6#include "qsql_mimer.h"
7
8#include <qsqldriverplugin.h>
9#include <qstringlist.h>
10
12
13using namespace Qt::StringLiterals;
14
16{
17 Q_OBJECT
18 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QSqlDriverFactoryInterface" FILE "mimer.json")
19public:
21 QSqlDriver *create(const QString &) override;
22};
23
24QMimerSQLDriverPlugin::QMimerSQLDriverPlugin() : QSqlDriverPlugin() { }
25
26QSqlDriver *QMimerSQLDriverPlugin::create(const QString &name)
27{
28 if (name == "QMIMER"_L1)
29 return new QMimerSQLDriver;
30 return nullptr;
31}
32
33QT_END_NAMESPACE
34
35#include "main.moc"
QSqlDriver * create(const QString &) override
Creates and returns a QSqlDriver object for the driver called key.
Definition main.cpp:26