b70de1eb21
Also, make this for the most part header only, because it is just a utility class. We could make this entirely header only, but it is not worth it.
22 lines
778 B
C++
22 lines
778 B
C++
/**
|
|
* SPDX-FileCopyrightText: 2013 Albert Vaca <albertvaka@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
|
*/
|
|
|
|
#include "kdeconnectpluginkcm.h"
|
|
|
|
KdeConnectPluginKcm::KdeConnectPluginKcm(QObject *parent, const KPluginMetaData &data, const QVariantList &args)
|
|
#if QT_VERSION_MAJOR < 6
|
|
: KCModule(qobject_cast<QWidget *>(parent), args)
|
|
#else
|
|
: KCModule(parent)
|
|
#endif
|
|
, 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))
|
|
{
|
|
Q_ASSERT(data.isValid()); // Even if we have empty metadata, it should be valid!
|
|
}
|
|
|
|
#include "moc_kdeconnectpluginkcm.cpp"
|