2015-12-05 22:11:57 +00:00
|
|
|
/**
|
2020-08-17 10:48:10 +01:00
|
|
|
* SPDX-FileCopyrightText: 2015 Holger Kaelberer <holger.k@elberer.de>
|
2015-12-05 22:11:57 +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-12-05 22:11:57 +00:00
|
|
|
*/
|
|
|
|
|
2016-05-25 19:49:13 +01:00
|
|
|
#ifndef SENDNOTIFICATIONS_CONFIG_H
|
|
|
|
#define SENDNOTIFICATIONS_CONFIG_H
|
2015-12-05 22:11:57 +00:00
|
|
|
|
|
|
|
#include "kcmplugin/kdeconnectpluginkcm.h"
|
|
|
|
|
|
|
|
namespace Ui {
|
2016-05-25 19:49:13 +01:00
|
|
|
class SendNotificationsConfigUi;
|
2015-12-05 22:11:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class NotifyingApplicationModel;
|
|
|
|
|
2016-05-25 19:49:13 +01:00
|
|
|
class SendNotificationsConfig
|
2015-12-05 22:11:57 +00:00
|
|
|
: public KdeConnectPluginKcm
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2017-09-03 20:39:44 +01:00
|
|
|
SendNotificationsConfig(QWidget* parent, const QVariantList&);
|
2016-06-20 08:05:02 +01:00
|
|
|
~SendNotificationsConfig() override;
|
2015-12-05 22:11:57 +00:00
|
|
|
|
|
|
|
public Q_SLOTS:
|
2016-06-20 08:05:02 +01:00
|
|
|
void save() override;
|
|
|
|
void load() override;
|
|
|
|
void defaults() override;
|
2015-12-05 22:11:57 +00:00
|
|
|
|
|
|
|
private Q_SLOTS:
|
|
|
|
void loadApplications();
|
|
|
|
|
|
|
|
private:
|
2016-05-25 19:49:13 +01:00
|
|
|
Ui::SendNotificationsConfigUi* m_ui;
|
2015-12-05 22:11:57 +00:00
|
|
|
NotifyingApplicationModel* appModel;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|