File indexing completed on 2024-05-12 16:59:53

0001 /*
0002  * SPDX-FileCopyrightText: 2001 Alexander Neundorf <neundorf@kde.org>
0003  * SPDX-FileCopyrightText: 2020 Carl Schwan <carl@carlschwan.eu>
0004  *
0005  * SPDX-License-Identifier: GPL-2.0-or-later
0006  */
0007 
0008 #include "nic.h"
0009 
0010 #include <KAboutData>
0011 #include <KLocalizedString>
0012 #include <KPluginFactory>
0013 
0014 #include "networkmodel.h"
0015 
0016 K_PLUGIN_CLASS_WITH_JSON(KCMNic, "kcm_nic.json")
0017 
0018 KCMNic::KCMNic(QObject *parent, const KPluginMetaData &data, const QVariantList &list)
0019     : KQuickAddons::ConfigModule(parent, data, list)
0020 {
0021     KAboutData *about = new KAboutData(i18n("kcm_nic"),
0022                                        i18nc("@title:window", "Network Interfaces"),
0023                                        QString(),
0024                                        QString(),
0025                                        KAboutLicense::GPL,
0026                                        i18nc("@info", "(c) 2001 - 2002 Alexander Neundorf"));
0027 
0028     about->addAuthor(i18nc("@info:credit", "Alexander Neundorf"), i18nc("@info:credit", "creator"), QStringLiteral("neundorf@kde.org"));
0029     about->addAuthor(i18nc("@info:credit", "Carl Schwan"), i18nc("@info:credit", "developer"), QStringLiteral("carl@carlschwan.eu"));
0030     setAboutData(about);
0031 
0032     qmlRegisterType<NetworkModel>("org.kde.kinfocenter.nic.private", 1, 0, "NetworkModel");
0033 }
0034 
0035 #include "nic.moc"