KD Reports API Documentation 2.2
Loading...
Searching...
No Matches
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
18namespace KDReports {
19class ErrorDetailsPrivate;
20class XmlElementHandler;
21
26{
27public:
29 explicit ErrorDetails(const QString &message);
30 ErrorDetails(const ErrorDetails &other);
31
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
59private:
60 friend class XmlElementHandler;
61 std::unique_ptr<ErrorDetailsPrivate> d;
62};
63
64} // namespace KDReports
65
66QT_BEGIN_NAMESPACE
67template<>
69{
70 lhs.swap(rhs);
71}
72QT_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 on Sun Apr 14 2024 00:04:57 for KD Reports API Documentation by doxygen 1.9.8