Qt
6.x
The Qt SDK
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Related Symbols
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
#include "
qsql_mimer.h
"
5
6
#include <
qsqldriverplugin.h
>
7
#include <
qstringlist.h
>
8
9
QT_BEGIN_NAMESPACE
10
11
using namespace
Qt::StringLiterals
;
12
13
class
QMimerSQLDriverPlugin
:
public
QSqlDriverPlugin
14
{
15
Q_OBJECT
16
Q_PLUGIN_METADATA
(
IID
"org.qt-project.Qt.QSqlDriverFactoryInterface"
FILE
"mimer.json"
)
17
public
:
18
QMimerSQLDriverPlugin
();
19
QSqlDriver
*
create
(
const
QString
&)
override
;
20
};
21
22
QMimerSQLDriverPlugin::QMimerSQLDriverPlugin
() :
QSqlDriverPlugin
() { }
23
24
QSqlDriver
*
QMimerSQLDriverPlugin::create
(
const
QString
&
name
)
25
{
26
if
(
name
==
"QMIMER"
_L1)
27
return
new
QMimerSQLDriver
;
28
return
nullptr
;
29
}
30
31
QT_END_NAMESPACE
32
33
#include "main.moc"
QMimerSQLDriverPlugin
Definition
main.cpp:14
QMimerSQLDriverPlugin::QMimerSQLDriverPlugin
QMimerSQLDriverPlugin()
Definition
main.cpp:22
QMimerSQLDriverPlugin::create
QSqlDriver * create(const QString &) override
Creates and returns a QSqlDriver object for the driver called key.
Definition
main.cpp:24
QMimerSQLDriver
Definition
qsql_mimer.h:22
QSqlDriverPlugin
The QSqlDriverPlugin class provides an abstract base for custom QSqlDriver plugins.
Definition
qsqldriverplugin.h:19
QSqlDriver
The QSqlDriver class is an abstract base class for accessing specific SQL databases.
Definition
qsqldriver.h:25
QString
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition
qstring.h:127
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
Qt::StringLiterals
Definition
qbytearray.h:716
name
GLuint name
Definition
qopengles2ext.h:156
QtPluginMetaDataKeys::IID
@ IID
qsql_mimer.h
qsqldriverplugin.h
qstringlist.h
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:117
Q_PLUGIN_METADATA
#define Q_PLUGIN_METADATA(x)
Definition
qtmetamacros.h:54
create
view create()
qtbase
src
plugins
sqldrivers
mimer
main.cpp
Generated by
1.9.7