File indexing completed on 2024-04-14 05:24:20

0001 /*
0002     SPDX-FileCopyrightText: 2020 Michail Vourlakos <mvourlakos@gmail.com>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 
0005 */
0006 
0007 #ifndef APPLETDATA_H
0008 #define APPLETDATA_H
0009 
0010 //! local
0011 #include "genericdata.h"
0012 #include "generictable.h"
0013 
0014 //! Qt
0015 #include <QMetaType>
0016 #include <QString>
0017 
0018 namespace Latte {
0019 namespace Data {
0020 
0021 class Applet : public Generic
0022 {
0023 public:
0024     Applet();
0025     Applet(Applet &&o);
0026     Applet(const Applet &o);
0027 
0028     //! Layout data
0029     bool isSelected;
0030     QString description;
0031     QString icon;
0032     QString storageId;
0033     QString subcontainmentId;
0034 
0035     bool isInstalled() const;
0036     bool isValid() const;
0037 
0038     QString visibleName() const;
0039 
0040     //! Operators
0041     Applet &operator=(const Applet &rhs);
0042     Applet &operator=(Applet &&rhs);
0043     bool operator==(const Applet &rhs) const;
0044     bool operator!=(const Applet &rhs) const;
0045 };
0046 
0047 typedef GenericTable<Applet> AppletsTable;
0048 
0049 }
0050 }
0051 
0052 Q_DECLARE_METATYPE(Latte::Data::Applet)
0053 
0054 #endif