2018-03-29 00:46:12 +01:00
|
|
|
/**
|
2020-08-17 10:48:10 +01:00
|
|
|
* SPDX-FileCopyrightText: 2018 Friedrich W. H. Kossebau <kossebau@kde.org>
|
|
|
|
* SPDX-FileCopyrightText: 2019 Piyush Aggarwal <piyushaggarwal002@gmail.com>
|
2018-03-29 00:46:12 +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
|
2018-03-29 00:46:12 +01:00
|
|
|
*/
|
|
|
|
|
2023-07-21 19:22:59 +01:00
|
|
|
#pragma once
|
2018-03-29 00:46:12 +01:00
|
|
|
|
|
|
|
#include <core/kdeconnectplugin.h>
|
2019-09-19 23:45:39 +01:00
|
|
|
|
2018-03-29 00:46:12 +01:00
|
|
|
#define PACKET_TYPE_FINDMYPHONE_REQUEST QStringLiteral("kdeconnect.findmyphone.request")
|
|
|
|
|
2022-09-10 22:23:52 +01:00
|
|
|
class FindThisDevicePlugin : public KdeConnectPlugin
|
2018-03-29 00:46:12 +01:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
Q_CLASSINFO("D-Bus Interface", "org.kde.kdeconnect.device.findthisdevice")
|
|
|
|
|
|
|
|
public:
|
2023-07-28 09:36:48 +01:00
|
|
|
using KdeConnectPlugin::KdeConnectPlugin;
|
2018-03-29 00:46:12 +01:00
|
|
|
|
|
|
|
QString dbusPath() const override;
|
2023-07-31 08:25:45 +01:00
|
|
|
void receivePacket(const NetworkPacket &np) override;
|
2018-03-29 00:46:12 +01:00
|
|
|
};
|