1 /*
2     SPDX-FileCopyrightText: 2021 Michail Vourlakos <mvourlakos@gmail.com>
3     SPDX-License-Identifier: GPL-2.0-or-later
4 */
5 
6 #ifndef ERRORINFORMATIONDATA_H
7 #define ERRORINFORMATIONDATA_H
8 
9 //! local
10 #include "genericdata.h"
11 #include "appletdata.h"
12 
13 //! Qt
14 #include <QMetaType>
15 #include <QString>
16 
17 namespace Latte {
18 namespace Data {
19 
20 class ErrorInformation : public Generic
21 {
22 public:
23     ErrorInformation();
24     ErrorInformation(ErrorInformation &&o);
25     ErrorInformation(const ErrorInformation &o);
26 
27     //! error data
28     Data::Applet containment;
29     Data::Applet applet;
30 
31     bool isValid() const;
32 
33     //! Operators
34     ErrorInformation &operator=(const ErrorInformation &rhs);
35     ErrorInformation &operator=(ErrorInformation &&rhs);
36     bool operator==(const ErrorInformation &rhs) const;
37     bool operator!=(const ErrorInformation &rhs) const;
38 };
39 
40 typedef ErrorInformation WarningInformation;
41 
42 }
43 }
44 
45 Q_DECLARE_METATYPE(Latte::Data::ErrorInformation)
46 
47 #endif
48