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
|
|
|
|
|
|
|
SendNotificationsPlugin::SendNotificationsPlugin(QObject* parent, const QVariantList& args)
|
|
|
|
: KdeConnectPlugin(parent, args)
|
|
|
|
{
|
|
|
|
notificationsListener = new NotificationsListener(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
SendNotificationsPlugin::~SendNotificationsPlugin()
|
|
|
|
{
|
|
|
|
delete notificationsListener;
|
|
|
|
}
|
|
|
|
|
2018-03-04 19:48:51 +00: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"
|