File indexing completed on 2023-12-10 12:47:36
0001 /* 0002 * SPDX-FileCopyrightText: 2017 Ivan Cukic <ivan.cukic (at) kde.org> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 #ifndef PLASMAVAULT_PLASMA_VAULT_APPLET_H 0008 #define PLASMAVAULT_PLASMA_VAULT_APPLET_H 0009 0010 #include <QObject> 0011 0012 #include <Plasma/Applet> 0013 0014 class VaultsModel; 0015 0016 class VaultApplet : public Plasma::Applet 0017 { 0018 Q_OBJECT 0019 Q_PROPERTY(QObject *vaultsModel READ vaultsModel CONSTANT) 0020 0021 public: 0022 explicit VaultApplet(QObject *parent, const KPluginMetaData &data, const QVariantList &args); 0023 ~VaultApplet() override; 0024 0025 QObject *vaultsModel(); 0026 0027 private: 0028 // Applet will be the parent of this object 0029 QObject *m_vaultsModel = nullptr; 0030 }; 0031 0032 #endif // include guard