2014-06-27 14:41:47 +01:00
|
|
|
/**
|
2020-08-17 10:48:10 +01:00
|
|
|
* SPDX-FileCopyrightText: 2018 Albert Vaca Cintora <albertvaka@gmail.com>
|
|
|
|
* SPDX-FileCopyrightText: 2015 Martin Gräßlin <mgraesslin@kde.org>
|
|
|
|
* SPDX-FileCopyrightText: 2014 Ahmed I. Khalil <ahmedibrahimkhali@gmail.com>
|
2014-06-27 14:41:47 +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
|
2014-06-27 14:41:47 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MOUSEPADPLUGIN_H
|
|
|
|
#define MOUSEPADPLUGIN_H
|
|
|
|
|
2015-07-03 08:25:34 +01:00
|
|
|
#include <config-mousepad.h>
|
2022-09-10 22:23:52 +01:00
|
|
|
#include <core/kdeconnectplugin.h>
|
2014-06-27 14:41:47 +01:00
|
|
|
|
2018-04-02 19:20:24 +01:00
|
|
|
#include "abstractremoteinput.h"
|
2015-07-03 08:25:34 +01:00
|
|
|
|
2018-05-12 16:51:55 +01:00
|
|
|
#define PACKET_TYPE_MOUSEPAD_KEYBOARDSTATE QLatin1String("kdeconnect.mousepad.keyboardstate")
|
|
|
|
|
2022-09-10 22:23:52 +01:00
|
|
|
class MousepadPlugin : public KdeConnectPlugin
|
2014-06-27 14:41:47 +01:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2022-09-10 22:23:52 +01:00
|
|
|
explicit MousepadPlugin(QObject *parent, const QVariantList &args);
|
2016-06-20 08:05:02 +01:00
|
|
|
~MousepadPlugin() override;
|
2014-06-27 14:41:47 +01:00
|
|
|
|
2022-09-10 22:23:52 +01:00
|
|
|
bool receivePacket(const NetworkPacket &np) override;
|
2018-05-12 16:51:55 +01:00
|
|
|
void connected() override;
|
2014-06-29 16:21:54 +01:00
|
|
|
|
|
|
|
private:
|
2022-09-10 22:23:52 +01:00
|
|
|
AbstractRemoteInput *m_impl;
|
2014-06-27 14:41:47 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|