2015-03-14 04:19:39 +00:00
|
|
|
/**
|
2020-08-17 10:48:10 +01:00
|
|
|
* SPDX-FileCopyrightText: 2013 Albert Vaca <albertvaka@gmail.com>
|
2015-03-14 04:19:39 +00:00
|
|
|
*
|
2020-08-17 10:48:10 +01:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
2015-03-14 04:19:39 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "kdeconnectpluginkcm.h"
|
|
|
|
|
2023-07-21 11:26:19 +01:00
|
|
|
KdeConnectPluginKcm::KdeConnectPluginKcm(QObject *parent, const KPluginMetaData &data, const QVariantList &args)
|
2023-04-17 18:10:08 +01:00
|
|
|
#if QT_VERSION_MAJOR < 6
|
|
|
|
: KCModule(qobject_cast<QWidget *>(parent), args)
|
|
|
|
#else
|
|
|
|
: KCModule(parent)
|
|
|
|
#endif
|
2023-08-12 12:56:19 +01:00
|
|
|
, m_deviceId(args.at(0).toString())
|
|
|
|
// The plugin name is the KCMs ID with the postfix removed
|
|
|
|
, m_config(new KdeConnectPluginConfig(m_deviceId, args.at(1).toString().remove(QLatin1String("_config")), this))
|
2015-03-14 04:19:39 +00:00
|
|
|
{
|
2023-07-21 11:26:19 +01:00
|
|
|
Q_ASSERT(data.isValid()); // Even if we have empty metadata, it should be valid!
|
2015-03-14 04:19:39 +00:00
|
|
|
}
|
2023-07-26 09:15:11 +01:00
|
|
|
|
|
|
|
#include "moc_kdeconnectpluginkcm.cpp"
|