kdeconnect-kde/plugins/findthisdevice/findthisdeviceplugin.h

25 lines
697 B
C
Raw Normal View History

/**
* 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;
};