digiKam
dbenginesqlquery.h
Go to the documentation of this file.
1
/* ============================================================
2
*
3
* This file is a part of digiKam project
4
* https://www.digikam.org
5
*
6
* Date : 2009-09-27
7
* Description : Database engine SQL query
8
*
9
* Copyright (C) 2009-2010 by Holger Foerster <Hamsi2k at freenet dot de>
10
*
11
* This program is free software; you can redistribute it
12
* and/or modify it under the terms of the GNU General
13
* Public License as published by the Free Software Foundation;
14
* either version 2, or (at your option)
15
* any later version.
16
*
17
* This program is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
* GNU General Public License for more details.
21
*
22
* ============================================================ */
23
24
#ifndef DIGIKAM_DB_ENGINE_SQL_QUERY_H
25
#define DIGIKAM_DB_ENGINE_SQL_QUERY_H
26
27
// Qt includes
28
29
#include <QMetaType>
30
#include <QString>
31
#include <QSqlQuery>
32
33
// Local includes
34
35
#include "
digikam_export.h
"
36
37
namespace
Digikam
38
{
39
40
class
DIGIKAM_EXPORT
DbEngineSqlQuery
:
public
QSqlQuery
41
{
42
43
public
:
44
45
explicit
DbEngineSqlQuery
(
const
QSqlQuery& other);
46
explicit
DbEngineSqlQuery
(
const
QSqlDatabase& db);
47
~DbEngineSqlQuery
() =
default
;
48
49
DbEngineSqlQuery
& operator=(
const
DbEngineSqlQuery
& other);
50
51
bool
prepare(
const
QString& query);
52
QString lastQuery()
const
;
53
54
private
:
55
56
QString m_query;
57
};
58
59
}
// namespace Digikam
60
61
#endif
// DIGIKAM_DB_ENGINE_SQL_QUERY_H
Digikam::DbEngineSqlQuery
Definition:
dbenginesqlquery.h:41
Digikam::DbEngineSqlQuery::~DbEngineSqlQuery
~DbEngineSqlQuery()=default
digikam_export.h
Digikam
Definition:
datefolderview.cpp:43
core
libs
database
engine
dbenginesqlquery.h
Generated by
1.9.1