File indexing completed on 2024-05-19 05:38:00
0001 /* 0002 SPDX-FileCopyrightText: 2006-2007 Stephen Leaf <smileaf@gmail.com> 0003 SPDX-FileCopyrightText: 2008 Montel Laurent <montel@kde.org> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #include "autostart.h" 0009 #include "unit.h" 0010 #include <KPluginFactory> 0011 0012 K_PLUGIN_CLASS_WITH_JSON(Autostart, "kcm_autostart.json") 0013 0014 Autostart::Autostart(QObject *parent, const KPluginMetaData &data) 0015 : KQuickConfigModule(parent, data) 0016 , m_model(new AutostartModel(this)) 0017 { 0018 setButtons(Help); 0019 0020 qmlRegisterUncreatableType<AutostartModel>("org.kde.plasma.kcm.autostart", 1, 0, "AutostartModel", QStringLiteral("Only for enums")); 0021 qmlRegisterUncreatableType<Unit>("org.kde.plasma.kcm.autostart", 1, 0, "Unit", QStringLiteral("Unit object is not creatable")); 0022 } 0023 0024 Autostart::~Autostart() 0025 { 0026 } 0027 0028 AutostartModel *Autostart::model() const 0029 { 0030 return m_model; 0031 } 0032 0033 void Autostart::load() 0034 { 0035 m_model->load(); 0036 } 0037 0038 void Autostart::defaults() 0039 { 0040 } 0041 0042 void Autostart::save() 0043 { 0044 } 0045 0046 #include "autostart.moc"