KD Reports API Documentation
2.2
src
KDReports
KDReportsErrorDetails.h
Go to the documentation of this file.
1
/****************************************************************************
2
**
3
** This file is part of the KD Reports library.
4
**
5
** SPDX-FileCopyrightText: 2007 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6
**
7
** SPDX-License-Identifier: MIT
8
**
9
****************************************************************************/
10
11
#ifndef KDREPORTSERRORDETAILS_H
12
#define KDREPORTSERRORDETAILS_H
13
14
#include "
KDReportsGlobal.h
"
15
#include <QtAlgorithms>
16
#include <memory>
17
18
namespace
KDReports
{
19
class
ErrorDetailsPrivate;
20
class
XmlElementHandler;
21
25
class
KDREPORTS_EXPORT
ErrorDetails
26
{
27
public
:
28
ErrorDetails
();
29
explicit
ErrorDetails
(
const
QString &message);
30
ErrorDetails
(
const
ErrorDetails
&other);
31
32
~
ErrorDetails
();
33
ErrorDetails
&operator=(
const
ErrorDetails
&other);
34
38
QString message()
const
;
39
40
void
setLine(
int
line);
41
void
setColumn(
int
column);
42
46
void
setDriverMessage(
const
QString &message);
47
48
int
line()
const
;
49
int
column()
const
;
50
54
QString driverMessage()
const
;
55
56
bool
hasError()
const
;
57
58
void
swap(
ErrorDetails
&other);
// krazy:exclude=inline
59
private
:
60
friend
class
XmlElementHandler
;
61
std::unique_ptr<ErrorDetailsPrivate> d;
62
};
63
64
}
// namespace KDReports
65
66
QT_BEGIN_NAMESPACE
67
template
<>
68
inline
void
qSwap
(
KDReports::ErrorDetails
&lhs,
KDReports::ErrorDetails
&rhs)
69
{
70
lhs.
swap
(rhs);
71
}
72
QT_END_NAMESPACE
73
74
#endif
/* KDREPORTSERRORDETAILS_H */
qSwap
QT_BEGIN_NAMESPACE void qSwap(KDReports::ErrorDetails &lhs, KDReports::ErrorDetails &rhs)
Definition:
KDReportsErrorDetails.h:68
KDReportsGlobal.h
KDREPORTS_EXPORT
#define KDREPORTS_EXPORT
Definition:
KDReportsGlobal.h:23
KDReports::ErrorDetails
Definition:
KDReportsErrorDetails.h:26
KDReports::ErrorDetails::swap
void swap(ErrorDetails &other)
Definition:
KDReportsErrorDetails.cpp:93
KDReports::XmlElementHandler
Definition:
KDReportsXmlElementHandler.h:79
KDReports
Definition:
KDReportsAbstractReportLayout_p.h:24
© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-reports/
Generated by doxygen 1.9.1