File indexing completed on 2025-02-09 05:51:27
0001 /** 0002 * SPDX-FileCopyrightText: 2015 Aleix Pol Gonzalez <aleixpol@kde.org> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 #pragma once 0008 0009 #include <QObject> 0010 0011 #include <core/kdeconnectplugin.h> 0012 0013 #define PACKET_TYPE_MOUSEPAD_REQUEST QStringLiteral("kdeconnect.mousepad.request") 0014 0015 class RemoteControlPlugin : public KdeConnectPlugin 0016 { 0017 Q_OBJECT 0018 Q_CLASSINFO("D-Bus Interface", "org.kde.kdeconnect.device.remotecontrol") 0019 0020 public: 0021 using KdeConnectPlugin::KdeConnectPlugin; 0022 0023 QString dbusPath() const override; 0024 0025 Q_SCRIPTABLE void moveCursor(const QPoint &p); 0026 Q_SCRIPTABLE void sendCommand(const QVariantMap &body); 0027 };