kdeconnect-kde/plugins/notifications/notificationsplugin.h

41 lines
1.1 KiB
C
Raw Normal View History

2013-08-13 23:09:46 +01:00
/**
* SPDX-FileCopyrightText: 2013 Albert Vaca <albertvaka@gmail.com>
2013-08-13 23:09:46 +01:00
*
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
2013-08-13 23:09:46 +01:00
*/
#ifndef NOTIFICATIONSPLUGIN_H
#define NOTIFICATIONSPLUGIN_H
2013-08-13 23:09:46 +01:00
#include <core/kdeconnectplugin.h>
#define PACKET_TYPE_NOTIFICATION_REQUEST QStringLiteral("kdeconnect.notification.request")
#define PACKET_TYPE_NOTIFICATION_REPLY QStringLiteral("kdeconnect.notification.reply")
#define PACKET_TYPE_NOTIFICATION_ACTION QStringLiteral("kdeconnect.notification.action")
2013-08-13 23:09:46 +01:00
/*
* This class is just a proxy for NotificationsDbusInterface
* because it can not inherit from QDBusAbstractAdaptor and
* KdeConnectPlugin at the same time (both are QObject)
*/
class NotificationsDbusInterface;
2013-08-13 23:09:46 +01:00
2013-08-13 23:18:32 +01:00
class NotificationsPlugin
2013-08-13 23:09:46 +01:00
: public KdeConnectPlugin
{
Q_OBJECT
public:
explicit NotificationsPlugin(QObject* parent, const QVariantList& args);
~NotificationsPlugin() override;
bool receivePacket(const NetworkPacket& np) override;
void connected() override;
2013-08-13 23:09:46 +01:00
protected:
NotificationsDbusInterface* notificationsDbusInterface;
2013-08-13 23:09:46 +01:00
};
#endif