Akonadi

dbtype.h
1 /*
2  SPDX-FileCopyrightText: 2012 Volker Krause <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef DBTYPE_H
8 #define DBTYPE_H
9 
10 #include <QSqlDatabase>
11 
12 namespace Akonadi
13 {
14 namespace Server
15 {
16 
18 namespace DbType
19 {
20 
22 enum Type {
23  Unknown,
24  Sqlite,
25  MySQL,
26  PostgreSQL
27 };
28 
30 Type type(const QSqlDatabase &db);
31 
33 Type typeForDriverName(const QString &driverName);
34 
36 bool isSystemSQLite(const QSqlDatabase &db);
37 
38 } // namespace DbType
39 } // namespace Server
40 } // namespace Akonadi
41 
42 #endif // DBTYPE_H
Type
Supported database types.
Definition: dbtype.h:22
bool isSystemSQLite(const QSqlDatabase &db)
Returns true when using QSQLITE driver shipped with Qt, FALSE otherwise.
Definition: dbtype.cpp:30
Type type(const QSqlDatabase &db)
Returns the type of the given database object.
Definition: dbtype.cpp:11
Type typeForDriverName(const QString &driverName)
Returns the type for the given driver name.
Definition: dbtype.cpp:16
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Jul 9 2020 23:15:22 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.