2016-05-25 19:49:13 +01:00
|
|
|
/**
|
2020-08-17 10:48:10 +01:00
|
|
|
* SPDX-FileCopyrightText: 2013 Albert Vaca <albertvaka@gmail.com>
|
2016-05-25 19:49:13 +01: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
|
2016-05-25 19:49:13 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "sendnotificationsplugin.h"
|
|
|
|
|
|
|
|
#include "notificationslistener.h"
|
2020-05-26 17:55:47 +01:00
|
|
|
#include "plugin_sendnotification_debug.h"
|
2016-05-25 19:49:13 +01:00
|
|
|
|
|
|
|
#include <KPluginFactory>
|
|
|
|
|
2019-06-12 21:16:54 +01:00
|
|
|
K_PLUGIN_CLASS_WITH_JSON(SendNotificationsPlugin, "kdeconnect_sendnotifications.json")
|
2016-05-25 19:49:13 +01:00
|
|
|
|
2022-09-10 22:23:52 +01:00
|
|
|
SendNotificationsPlugin::SendNotificationsPlugin(QObject *parent, const QVariantList &args)
|
2016-05-25 19:49:13 +01:00
|
|
|
: KdeConnectPlugin(parent, args)
|
|
|
|
{
|
|
|
|
notificationsListener = new NotificationsListener(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
SendNotificationsPlugin::~SendNotificationsPlugin()
|
|
|
|
{
|
|
|
|
delete notificationsListener;
|
|
|
|
}
|
|
|
|
|
2022-09-10 22:23:52 +01:00
|
|
|
bool SendNotificationsPlugin::receivePacket(const NetworkPacket &np)
|
2016-05-25 19:49:13 +01:00
|
|
|
{
|
|
|
|
Q_UNUSED(np);
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void SendNotificationsPlugin::connected()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
#include "sendnotificationsplugin.moc"
|