2017-06-29 00:57:46 +01:00
|
|
|
/**
|
2020-08-17 10:48:10 +01:00
|
|
|
* SPDX-FileCopyrightText: 2018 Albert Vaca Cintora <albertvaka@gmail.com>
|
2017-06-29 00:57:46 +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
|
2017-06-29 00:57:46 +01:00
|
|
|
*/
|
|
|
|
|
2018-04-02 19:20:24 +01:00
|
|
|
#ifndef ABSTRACTREMOTEINPUT_H
|
|
|
|
#define ABSTRACTREMOTEINPUT_H
|
2017-06-29 00:57:46 +01:00
|
|
|
|
2020-01-23 15:57:08 +00:00
|
|
|
#include <QLoggingCategory>
|
2017-06-29 00:57:46 +01:00
|
|
|
#include <QObject>
|
|
|
|
|
2018-04-02 19:20:24 +01:00
|
|
|
#include <core/networkpacket.h>
|
2017-06-29 00:57:46 +01:00
|
|
|
|
2020-01-23 15:57:08 +00:00
|
|
|
Q_DECLARE_LOGGING_CATEGORY(KDECONNECT_PLUGIN_MOUSEPAD)
|
|
|
|
|
2022-09-10 22:23:52 +01:00
|
|
|
class AbstractRemoteInput : public QObject
|
2017-06-29 00:57:46 +01:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2022-09-10 22:23:52 +01:00
|
|
|
explicit AbstractRemoteInput(QObject *parent = nullptr);
|
2017-06-29 00:57:46 +01:00
|
|
|
|
2022-09-10 22:23:52 +01:00
|
|
|
virtual bool handlePacket(const NetworkPacket &np) = 0;
|
|
|
|
virtual bool hasKeyboardSupport()
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
};
|
2017-06-29 00:57:46 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|