[OpenDocString] kdeconnect-kde (cpp)
sendnotificationsplugin.cpp
SendNotificationsPlugin::SendNotificationsPlugin(QObject *parent, const QVariantList &args)
    : KdeConnectPlugin(parent, args)
{
    notificationsListener = new NotificationsListener(this);
}
This constructor builds a KdeConnectPlugin object and its notifications listener. It takes the parent object, the args of the plugin and creates a NotificationsListener object.
SendNotificationsPlugin::~SendNotificationsPlugin()
{
    delete notificationsListener;
}
This removes the notification listener upon destruction.
bool SendNotificationsPlugin::receivePacket(const NetworkPacket &np)
{
    Q_UNUSED(np);
    return true;
}
This sends a network packet, if possible.
void SendNotificationsPlugin::connected()
{
}
This sends the connected notification to all plugins.