File indexing completed on 2024-04-21 04:56:49

0001 /**
0002  * SPDX-FileCopyrightText: 2014 Apoorv Parle <apparle@gmail.com>
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_FINDMYPHONE_REQUEST QStringLiteral("kdeconnect.findmyphone.request")
0014 
0015 class FindMyPhonePlugin : public KdeConnectPlugin
0016 {
0017     Q_OBJECT
0018     Q_CLASSINFO("D-Bus Interface", "org.kde.kdeconnect.device.findmyphone")
0019 
0020 public:
0021     using KdeConnectPlugin::KdeConnectPlugin;
0022 
0023     Q_SCRIPTABLE void ring();
0024 
0025     QString dbusPath() const override;
0026 };