41d474b1a5
Having a clear button and then emitting a warning if an enabled button is clicked doesn't really make sense.
36 lines
733 B
C++
36 lines
733 B
C++
/**
|
|
* SPDX-FileCopyrightText: 2018 Friedrich W. H. Kossebau <kossebau@kde.org>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
|
*/
|
|
|
|
#ifndef FINDTHISDEVICE_CONFIG_H
|
|
#define FINDTHISDEVICE_CONFIG_H
|
|
|
|
#include <kcmplugin/kdeconnectpluginkcm.h>
|
|
|
|
namespace Ui
|
|
{
|
|
class FindThisDeviceConfigUi;
|
|
}
|
|
|
|
class FindThisDeviceConfig : public KdeConnectPluginKcm
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
FindThisDeviceConfig(QObject *parent, const QVariantList &);
|
|
~FindThisDeviceConfig() override;
|
|
|
|
public Q_SLOTS:
|
|
void save() override;
|
|
void load() override;
|
|
void defaults() override;
|
|
|
|
private Q_SLOTS:
|
|
void playSound(const QUrl &soundUrl);
|
|
|
|
private:
|
|
Ui::FindThisDeviceConfigUi *m_ui;
|
|
};
|
|
|
|
#endif
|