File indexing completed on 2024-04-21 04:56:48
0001 /** 0002 * SPDX-FileCopyrightText: 2013 Albert Vaca <albertvaka@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 #include "kdeconnectpluginkcm.h" 0008 0009 KdeConnectPluginKcm::KdeConnectPluginKcm(QObject *parent, const KPluginMetaData &data, const QVariantList &args) 0010 #if QT_VERSION_MAJOR < 6 0011 : KCModule(qobject_cast<QWidget *>(parent), args) 0012 #else 0013 : KCModule(parent) 0014 #endif 0015 , m_deviceId(args.at(0).toString()) 0016 // The plugin name is the KCMs ID with the postfix removed 0017 , m_config(new KdeConnectPluginConfig(m_deviceId, data.pluginId().remove(QLatin1String("_config")), this)) 0018 { 0019 Q_ASSERT(data.isValid()); // Even if we have empty metadata, it should be valid! 0020 } 0021 0022 #include "moc_kdeconnectpluginkcm.cpp"