kdeconnect-kde/plugins/findthisdevice/findthisdeviceplugin.h
Carl Schwan 20bba74b0b findthisdevice: Fix getting defaultSounds in the QML app
Now use the same code as the C++ kcm
2024-10-13 19:40:34 +00:00

24 lines
697 B
C++

/**
* SPDX-FileCopyrightText: 2018 Friedrich W. H. Kossebau <kossebau@kde.org>
* SPDX-FileCopyrightText: 2019 Piyush Aggarwal <piyushaggarwal002@gmail.com>
*
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#pragma once
#include <core/kdeconnectplugin.h>
#define PACKET_TYPE_FINDMYPHONE_REQUEST QStringLiteral("kdeconnect.findmyphone.request")
class FindThisDevicePlugin : public KdeConnectPlugin
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.kde.kdeconnect.device.findthisdevice")
public:
using KdeConnectPlugin::KdeConnectPlugin;
QString dbusPath() const override;
void receivePacket(const NetworkPacket &np) override;
};