File indexing completed on 2024-10-13 13:17:55
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 #include "vaultapplet.h" 0008 0009 #include <QSortFilterProxyModel> 0010 0011 #include <KActivities/Consumer> 0012 #include <klocalizedstring.h> 0013 0014 #include "vaultsmodel.h" 0015 0016 VaultApplet::VaultApplet(QObject *parent, const KPluginMetaData &data, const QVariantList &args) 0017 : Plasma::Applet(parent, data, args) 0018 { 0019 } 0020 0021 VaultApplet::~VaultApplet() 0022 { 0023 } 0024 0025 QObject *VaultApplet::vaultsModel() 0026 { 0027 if (!m_vaultsModel) { 0028 m_vaultsModel = new SortedVaultsModelProxy(this); 0029 } 0030 0031 return m_vaultsModel; 0032 } 0033 0034 K_PLUGIN_CLASS_WITH_JSON(VaultApplet, "metadata.json") 0035 0036 #include "vaultapplet.moc"