File indexing completed on 2024-04-28 09:25:25

0001 /*
0002     SPDX-FileCopyrightText: 2020 Michail Vourlakos <mvourlakos@gmail.com>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 #ifndef LAYOUTCOLORDATA_H
0007 #define LAYOUTCOLORDATA_H
0008 
0009 //local
0010 #include "genericdata.h"
0011 
0012 //Qt
0013 #include <QMetaType>
0014 #include <QString>
0015 
0016 namespace Latte {
0017 namespace Data {
0018 
0019 class LayoutColor : public Generic
0020 {
0021 public:
0022     LayoutColor();
0023     LayoutColor(LayoutColor &&o);
0024     LayoutColor(const LayoutColor &o);
0025 
0026     //! Color data
0027     QString path;
0028     QString textColor;
0029 
0030     //! Operators
0031     LayoutColor &operator=(const LayoutColor &rhs);
0032     LayoutColor &operator=(LayoutColor &&rhs);
0033     bool operator==(const LayoutColor &rhs) const;
0034     bool operator!=(const LayoutColor &rhs) const;
0035 
0036     void setData(const QString &newid, const QString &newname, const QString &newpath, const QString &newtextcolor);
0037 };
0038 
0039 }
0040 }
0041 
0042 Q_DECLARE_METATYPE(Latte::Data::LayoutColor)
0043 
0044 #endif