File indexing completed on 2024-04-28 05:33:26

0001 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0002 // SPDX-FileCopyrightText: 2020 Harald Sitter <sitter@kde.org>
0003 
0004 #include <KQuickConfigModule>
0005 
0006 #include "devicemodel.h"
0007 #include "servicerunner.h"
0008 #include "version.h"
0009 #include <KPluginFactory>
0010 
0011 class Module : public KQuickConfigModule
0012 {
0013     Q_OBJECT
0014 public:
0015     explicit Module(QObject *parent, const KPluginMetaData &data)
0016         : KQuickConfigModule(parent, data)
0017     {
0018         // We have no help so remove the button from the buttons.
0019         setButtons(buttons() ^ Help ^ Default ^ Apply);
0020 
0021         qmlRegisterType<DeviceModel>("SMART", 1, 0, "DeviceModel");
0022         qmlRegisterType<ServiceRunner>("SMART", 1, 0, "ServiceRunner");
0023     }
0024 };
0025 
0026 K_PLUGIN_CLASS_WITH_JSON(Module, "kcm_disks.json")
0027 
0028 #include "module.moc"