[OpenDocString] kdeconnect-kde (cpp)
bigscreenplugin.cpp
BigscreenPlugin::BigscreenPlugin(QObject *parent, const QVariantList &args)
    : KdeConnectPlugin(parent, args)
{
}
Constructs a bigscreen plugin object and binds it to its parent object.
BigscreenPlugin::~BigscreenPlugin() = default;
Sets the default configuration for the BigscreenPlugin object.
bool BigscreenPlugin::receivePacket(const NetworkPacket &np)
{
    QString message = np.get(QStringLiteral("content"));
    /* Emit a signal that will be consumed by Plasma BigScreen:
     * https://invent.kde.org/plasma/plasma-bigscreen/-/blob/master/containments/homescreen/package/contents/ui/indicators/KdeConnect.qml
     */
    Q_EMIT messageReceived(message);
    return true;
}
It receives a network packet and emits a signal.
QString BigscreenPlugin::dbusPath() const
{
    return QStringLiteral("/modules/kdeconnect/devices/") + device()->id() + QStringLiteral("/bigscreen");
}
Returns the dbus path as a QString.