KD Reports API Documentation  2.1
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-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6 **
7 ** SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDAB-KDReports OR LicenseRef-KDAB-KDReports-US
8 **
9 ** Licensees holding valid commercial KD Reports licenses may use this file in
10 ** accordance with the KD Reports Commercial License Agreement provided with
11 ** the Software.
12 **
13 ** Contact info@kdab.com if any conditions of this licensing are not clear to you.
14 **
15 ****************************************************************************/
16 
17 #ifndef KDREPORTSERRORDETAILS_H
18 #define KDREPORTSERRORDETAILS_H
19 
20 #include "KDReportsGlobal.h"
21 #include <QtAlgorithms>
22 #include <memory>
23 
24 namespace KDReports {
25 class ErrorDetailsPrivate;
26 class XmlElementHandler;
27 
32 {
33 public:
34  ErrorDetails();
35  explicit ErrorDetails(const QString &message);
36  ErrorDetails(const ErrorDetails &other);
37 
38  ~ErrorDetails();
39  ErrorDetails &operator=(const ErrorDetails &other);
40 
44  QString message() const;
45 
46  void setLine(int line);
47  void setColumn(int column);
48 
52  void setDriverMessage(const QString &message);
53 
54  int line() const;
55  int column() const;
56 
60  QString driverMessage() const;
61 
62  bool hasError() const;
63 
64  void swap(ErrorDetails &other); // krazy:exclude=inline
65 private:
66  friend class XmlElementHandler;
67  std::unique_ptr<ErrorDetailsPrivate> d;
68 };
69 
70 } // namespace KDReports
71 
72 QT_BEGIN_NAMESPACE
73 template <>
75 {
76  lhs.swap(rhs);
77 }
78 QT_END_NAMESPACE
79 
80 #endif /* KDREPORTSERRORDETAILS_H */
KDReports::ErrorDetails::swap
void swap(ErrorDetails &other)
Definition: KDReportsErrorDetails.cpp:99
KDReports::XmlElementHandler
Definition: KDReportsXmlElementHandler.h:85
QString
KDReportsGlobal.h
qSwap
QT_BEGIN_NAMESPACE void qSwap(KDReports::ErrorDetails &lhs, KDReports::ErrorDetails &rhs)
Definition: KDReportsErrorDetails.h:74
KDReports::ErrorDetails
Definition: KDReportsErrorDetails.h:32
KDREPORTS_EXPORT
#define KDREPORTS_EXPORT
Definition: KDReportsGlobal.h:29
KDReports
Definition: KDReportsAbstractReportLayout_p.h:30

© 2007-2021 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 on Fri Jul 15 2022 13:09:06 for KD Reports API Documentation by doxygen 1.8.20