kdeconnect-kde/kcmplugin/kdeconnectpluginkcm.h

45 lines
1 KiB
C
Raw Permalink Normal View History

/**
* SPDX-FileCopyrightText: 2015 Albert Vaca <albertvaka@gmail.com>
*
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#ifndef KDECONNECTPLUGINKCM_H
#define KDECONNECTPLUGINKCM_H
#include <KCModule>
#include "core/kdeconnectpluginconfig.h"
2015-09-10 14:51:38 +01:00
#include "kdeconnectpluginkcm_export.h"
struct KdeConnectPluginKcmPrivate;
/**
* Inheriting your plugin's KCM from this class gets you a easy way to share
* configuration values between the KCM and the plugin.
*/
2015-09-10 14:51:38 +01:00
class KDECONNECTPLUGINKCM_EXPORT KdeConnectPluginKcm
: public KCModule
{
Q_OBJECT
public:
KdeConnectPluginKcm(QWidget* parent, const QVariantList& args, const QString& componentName);
~KdeConnectPluginKcm() override;
/**
* The device this kcm is instantiated for
*/
QString deviceId() const;
/**
* The object where to save the config, so the plugin can access it
*/
KdeConnectPluginConfig* config() const;
private:
QScopedPointer<KdeConnectPluginKcmPrivate> d;
};
#endif