1 /* 2 SPDX-FileCopyrightText: 2020 Michail Vourlakos <mvourlakos@gmail.com> 3 SPDX-License-Identifier: GPL-2.0-or-later 4 5 */ 6 7 #ifndef APPLETDATA_H 8 #define APPLETDATA_H 9 10 //! local 11 #include "genericdata.h" 12 #include "generictable.h" 13 14 //! Qt 15 #include <QMetaType> 16 #include <QString> 17 18 namespace Latte { 19 namespace Data { 20 21 class Applet : public Generic 22 { 23 public: 24 Applet(); 25 Applet(Applet &&o); 26 Applet(const Applet &o); 27 28 //! Layout data 29 bool isSelected; 30 QString description; 31 QString icon; 32 QString storageId; 33 QString subcontainmentId; 34 35 bool isInstalled() const; 36 bool isValid() const; 37 38 QString visibleName() const; 39 40 //! Operators 41 Applet &operator=(const Applet &rhs); 42 Applet &operator=(Applet &&rhs); 43 bool operator==(const Applet &rhs) const; 44 bool operator!=(const Applet &rhs) const; 45 }; 46 47 typedef GenericTable<Applet> AppletsTable; 48 49 } 50 } 51 52 Q_DECLARE_METATYPE(Latte::Data::Applet) 53 54 #endif 55