[OpenDocString] kdeconnect-kde (cpp)
findmyphoneplugin.cpp
FindMyPhonePlugin::FindMyPhonePlugin(QObject *parent, const QVariantList &args)
    : KdeConnectPlugin(parent, args)
{
}
This constructs a KdeConnectPlugin object and assigns it to the parent object. The args are the arguments of the plugin and the function returns a pointer to a QObject object.
FindMyPhonePlugin::~FindMyPhonePlugin()
{
}
This implements the findMyPhonePlugin method of the class FindMyPhonePlugin.
bool FindMyPhonePlugin::receivePacket(const NetworkPacket &np)
{
    Q_UNUSED(np);
    return false;
}
This retrieves a pointer to a NetworkPacket object, and returns true on success.
void FindMyPhonePlugin::ring()
{
    NetworkPacket np(PACKET_TYPE_FINDMYPHONE_REQUEST);
    sendPacket(np);
}
This sends a findmyphone request to the network layer.
QString FindMyPhonePlugin::dbusPath() const
{
    return QString::fromLatin1("/modules/kdeconnect/devices/") + device()->id() + QString::fromLatin1("/findmyphone");
}
Returns the dbus path as a QString.