KD Reports API Documentation  2.2
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 
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<>
69 {
70  lhs.swap(rhs);
71 }
72 QT_END_NAMESPACE
73 
74 #endif /* KDREPORTSERRORDETAILS_H */
QT_BEGIN_NAMESPACE void qSwap(KDReports::ErrorDetails &lhs, KDReports::ErrorDetails &rhs)
#define KDREPORTS_EXPORT
void swap(ErrorDetails &other)

© 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